|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.blocksworld.Block
public class Block
A block in the blocks-world.
Field Summary | |
---|---|
SimplePropertyChangeSupport |
pcs
The helper object for bean events. |
Constructor Summary | |
---|---|
Block(Color color,
Block lower)
Create a new block. |
|
Block(int number,
Color color,
Block lower)
Create a new block. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
boolean |
equals(Object o)
Check for equality. |
Color |
getColor()
Get the color of the block. |
Block |
getLower()
Get the block where this block is located on. |
boolean |
isClear()
Check if this block is clear. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
stackOn(Block lower)
Move this block on top of another block. |
String |
toString()
Create a string representation of this block. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public SimplePropertyChangeSupport pcs
Constructor Detail |
---|
public Block(Color color, Block lower)
color
- The color of the block.lower
- The block where this block is located on.public Block(int number, Color color, Block lower)
number
- The number of the block.color
- The color of the block.lower
- The block where this block is located on.Method Detail |
---|
public Color getColor()
public Block getLower()
public boolean isClear()
public void stackOn(Block lower)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.