|
Led Ticker Component v2.2 www.ledticker.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ledticker.elements.Token
This abstract class represents an item of a net.ledticker.TickerElement.
net.ledticker.TickerElement can contain any number of Tokens and the
data it stores can be changed in real-time. It also contains a
ColorModel that defines the color of the leds
used to represent the data stored in this Token.
| 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 scrolled by the ticker |
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 scrolled by the ticker
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 Ticker Component v2.2 www.ledticker.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||