|
Led Display Component v1.0 www.LedTicker.net/display |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.leddisplay.elements.Token
This abstract class represents an item of a net.leddisplay.AbstractDisplayElement.
net.leddisplay.AbstractDisplayElement can contain any number of Tokens and the
data it stores can be changed in real-time. Other important property of a token is color.
| Constructor Summary | |
Token()
Creates a token with a DefaultColorModel |
|
Token(ColorModel colorModel)
Creates a token with a custom ColorModel |
|
| Method Summary | |
ColorModel |
getColorModel()
Gets the ColorModel used by this token |
abstract java.lang.String |
getDisplayValue()
Gets the String representation of the token that will
be displayed |
void |
setColorModel(ColorModel colorModel)
Sets the color model of this token |
abstract void |
setValue(java.lang.Object value)
Sets the token's value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Token()
public Token(ColorModel colorModel)
colorModel - the custom ColorModel| Method Detail |
public ColorModel getColorModel()
public void setColorModel(ColorModel colorModel)
colorModel - public abstract java.lang.String getDisplayValue()
String representation of the token that will
be displayed
String representationpublic abstract void setValue(java.lang.Object value)
value - the token's value
java.lang.IllegalArgumentException - if the given value's class does not
corresponds to the implementation value's class
|
Led Display Component v1.0 www.LedTicker.net/display |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||