Class TextObject

java.lang.Object
  extended by greenfoot.Actor
      extended by TextObject

public class TextObject
extends greenfoot.Actor

A simple class to draw text on the screen at the location specified by the addObject() call for the TextObject.

Version:
(July 2007)
Author:
(Mohammed and Scott)

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

TextObject

public TextObject(java.lang.String text)
Place the text specified by input parameter "text" onto the screen

Method Detail

act

public void act()
Do nothing, this is a static object with only a chageText method

Overrides:
act in class greenfoot.Actor

changeText

public void changeText(java.lang.String text)
Change the objects text to the new value specified by the method parameter.