java.lang.Objectgreenfoot.Actor
TextObject
public class TextObject
A simple class to draw text on the screen at the location specified by the addObject() call for the TextObject.
| Constructor Summary | |
|---|---|
TextObject(java.lang.String text)
Place the text specified by input parameter "text" onto the screen |
|
| Method Summary | |
|---|---|
void |
act()
Do nothing, this is a static object with only a chageText method |
void |
changeText(java.lang.String text)
Change the objects text to the new value specified by the method parameter. |
| Methods inherited from class greenfoot.Actor |
|---|
addedToWorld, getHeight, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWidth, getWorld, getX, getY, intersects, setImage, setImage, setLocation, setRotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextObject(java.lang.String text)
| Method Detail |
|---|
public void act()
act in class greenfoot.Actorpublic void changeText(java.lang.String text)