|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unifreiburg.twodeedoo.scene.AbstractPuppet
public abstract class AbstractPuppet
Implementation base for IPuppet
s.
Field Summary |
---|
Fields inherited from interface de.unifreiburg.twodeedoo.scene.IPuppet |
---|
NULL_OBJECT |
Constructor Summary | |
---|---|
AbstractPuppet(int x,
int y)
Initialize coordinates. |
Method Summary | |
---|---|
int |
getX()
X coordinate |
int |
getY()
Y coordinate |
void |
moveAbs(int x,
int y)
Move to a position on scene. |
abstract void |
paint(java.awt.Graphics g)
Paint to this graphics. |
void |
removeFromScene()
Remove me from my containing puppet. |
void |
setContainingScene(IScene scene)
Update my containment |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPuppet(int x, int y)
x
- reference point position's x in scene unitsy
- reference point position's y in scene unitsMethod Detail |
---|
public void moveAbs(int x, int y)
moveAbs
in interface IPuppet
x
- scene x coordinate of reference point, scene unitsy
- scene y coordinate of reference point, scene unitspublic int getX()
IPuppet
getX
in interface IPuppet
IPuppet.getX()
public int getY()
IPuppet
getY
in interface IPuppet
IPuppet.getY()
public abstract void paint(java.awt.Graphics g)
paint
in interface IPainter
g
- some graphics context.public void removeFromScene()
removeFromScene
in interface IPuppet
IPuppet.removeFromScene()
public void setContainingScene(IScene scene)
setContainingScene
in interface IPuppet
scene
- the new scene. Could be a non-displaying scene.IPuppet.setContainingScene(de.unifreiburg.twodeedoo.scene.IScene)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |