java.lang.Objectgreenfoot.Actor
Button
public class Button
This class represents a Button object
| Constructor Summary | |
|---|---|
Button(java.lang.String letter)
Constructor for the objects of class Button. |
|
| Method Summary | |
|---|---|
void |
act()
Act - do whatever the Button wants to do. |
void |
clearButton()
Clears the letter from the button. |
void |
drawSomeLetter(java.lang.String letter,
java.awt.Color color)
Draws a given letter in a specific color in the image that represents the actor. |
| Methods inherited from class greenfoot.Actor |
|---|
addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getX, getY, intersects, isAtEdge, isTouching, move, removeTouching, setImage, setImage, setLocation, setRotation, turn, turnTowards |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Button(java.lang.String letter)
letter(String) - the letter of the button| Method Detail |
|---|
public void act()
act in class greenfoot.Actorpublic void clearButton()
public void drawSomeLetter(java.lang.String letter,
java.awt.Color color)
letter(String) - the letter to be drawn in the ballooncolor(Color) - the color of the letter