|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unifreiburg.twodeedoo.scene.SimpleScene
public class SimpleScene
Simple IScene
as a composite of IPainter
s.
Always paints the whole stage, first-added puppets first.
No coordinate transformations.
Field Summary |
---|
Fields inherited from interface de.unifreiburg.twodeedoo.scene.IScene |
---|
NULL_OBJECT |
Constructor Summary | |
---|---|
SimpleScene()
|
Method Summary | |
---|---|
void |
addPuppet(IPuppet puppet)
Append another IPuppet . |
void |
paint(java.awt.Graphics g)
Paint in order of puppets |
void |
removePuppet(IPuppet puppet)
Remove this IPuppet if it is among the puppets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleScene()
Method Detail |
---|
public void paint(java.awt.Graphics g)
puppets
paint
in interface IPainter
g
- some graphics context.public void addPuppet(IPuppet puppet)
IPuppet
. Will be painted last.
Append only if not yet in this scene.
addPuppet
in interface IScene
puppet
- some puppet not yet in this scene.public void removePuppet(IPuppet puppet)
IPuppet
if it is among the puppets.
removePuppet
in interface IScene
puppet
- some puppet in this IScene
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |