de.unifreiburg.twodeedoo.scene.test
Class StubTextPuppet

java.lang.Object
  extended by de.unifreiburg.twodeedoo.scene.test.StubTextPuppet
All Implemented Interfaces:
IPuppet, ITextPuppet, IPainter

public class StubTextPuppet
extends java.lang.Object
implements ITextPuppet

Stub impl of ITextPuppet.

Author:
anton

Field Summary
 
Fields inherited from interface de.unifreiburg.twodeedoo.scene.IPuppet
NULL_OBJECT
 
Constructor Summary
StubTextPuppet()
           
 
Method Summary
 java.lang.String getLastText()
           
 int getX()
          X coordinate
 int getY()
          Y coordinate
 void moveAbs(int x, int y)
          Move the reference point to new coordinates.
 void paint(java.awt.Graphics g)
          Paint something on my coordinates on the given graphics context.
 void removeFromScene()
          Not implemented.
 void setContainingScene(IScene scene)
          Not implemented.
 void setText(java.lang.String text)
          Change the text to display.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubTextPuppet

public StubTextPuppet()
Method Detail

setText

public void setText(java.lang.String text)
Description copied from interface: ITextPuppet
Change the text to display.

Specified by:
setText in interface ITextPuppet
Parameters:
text - new text.

getLastText

public java.lang.String getLastText()
Returns:
the lastText

getX

public int getX()
Description copied from interface: IPuppet
X coordinate

Specified by:
getX in interface IPuppet
Returns:
x coordinate in scene units

getY

public int getY()
Description copied from interface: IPuppet
Y coordinate

Specified by:
getY in interface IPuppet
Returns:
y coordinate in scene units

moveAbs

public void moveAbs(int x,
                    int y)
Description copied from interface: IPuppet
Move the reference point to new coordinates.

Specified by:
moveAbs in interface IPuppet
Parameters:
x - x coordinate in the scene of my reference point
y - y coordinate in the scene of my reference point.

paint

public void paint(java.awt.Graphics g)
Description copied from interface: IPainter
Paint something on my coordinates on the given graphics context.

Specified by:
paint in interface IPainter
Parameters:
g - some graphics context.

removeFromScene

public void removeFromScene()
Not implemented.

Specified by:
removeFromScene in interface IPuppet
See Also:
IPuppet.removeFromScene()

setContainingScene

public void setContainingScene(IScene scene)
Not implemented.

Specified by:
setContainingScene in interface IPuppet
Parameters:
scene - the new scene. Could be a non-displaying scene.
See Also:
IPuppet.setContainingScene(de.unifreiburg.twodeedoo.scene.IScene)