Led Display Component v1.0
www.LedTicker.net/display

net.leddisplay.demo.tokens
Class TextToken

java.lang.Object
  extended bynet.leddisplay.elements.Token
      extended bynet.leddisplay.demo.tokens.TextToken

public class TextToken
extends Token

A token representing a line of text


Constructor Summary
TextToken()
          Creates a TextToken with no display value
TextToken(java.lang.String text)
           
TextToken(java.lang.String text, ColorModel colorModel)
          Creates a TextToken with a display value and a ColorModel
 
Method Summary
 java.lang.String getDisplayValue()
          Gets the String representation of the token that will be displayed
 void setValue(java.lang.Object value)
          Sets the token's value
 
Methods inherited from class net.leddisplay.elements.Token
getColorModel, setColorModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextToken

public TextToken()
Creates a TextToken with no display value


TextToken

public TextToken(java.lang.String text)
Parameters:
text - the display text of the TextToken

TextToken

public TextToken(java.lang.String text,
                 ColorModel colorModel)
Creates a TextToken with a display value and a ColorModel

Parameters:
text - the display value
colorModel - the ColorModel
Method Detail

getDisplayValue

public java.lang.String getDisplayValue()
Description copied from class: Token
Gets the String representation of the token that will be displayed

Specified by:
getDisplayValue in class Token
Returns:
the token's String representation
See Also:
Token.getDisplayValue()

setValue

public void setValue(java.lang.Object value)
Description copied from class: Token
Sets the token's value

Specified by:
setValue in class Token
Parameters:
value - the token's value
See Also:
Token.setValue(java.lang.Object)

Led Display Component v1.0
www.LedTicker.net/display