|
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.demo.elements.AbstractDisplayElement
net.leddisplay.demo.elements.StockDisplayElement
This is a sample element that extends AbstractDisplayElement - the abstrat
class that represents a display's text base element.
The purpose of this element is to hold stock quote information: name, last value, trend and percent change. The trend is given by the percent change relative to 0.
| Field Summary |
| Fields inherited from class net.leddisplay.demo.elements.AbstractDisplayElement |
tokens |
| Constructor Summary | |
StockDisplayElement(java.lang.String stock)
Creates a StockDisplayElement with the given name |
|
| Method Summary | |
java.lang.String |
getSymbol()
Gets the name of the stock |
void |
setChangePercent(java.lang.Double change)
Sets the percent change of the stock |
void |
setLast(java.lang.Double lastValue)
Sets the last value of the stock |
void |
setStockDownColor(java.awt.Color c)
Sets the color to use when representing tokens on a downward trend |
void |
setStockNeutralColor(java.awt.Color c)
Sets the color to use when representing tokens on a constant trend |
void |
setStockUpColor(java.awt.Color c)
Sets the color to use when representing tokens on an upward trend |
void |
setSymbolColor(java.awt.Color c)
Sets the color of the symbol |
| Methods inherited from class net.leddisplay.demo.elements.AbstractDisplayElement |
getTokens |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StockDisplayElement(java.lang.String stock)
stock - the stock's name| Method Detail |
public void setLast(java.lang.Double lastValue)
public void setChangePercent(java.lang.Double change)
change - the percent change of the stockpublic java.lang.String getSymbol()
public void setStockUpColor(java.awt.Color c)
c - the new upward trend colorpublic void setStockNeutralColor(java.awt.Color c)
c - the new constant trend colorpublic void setStockDownColor(java.awt.Color c)
c - the new downward trend colorpublic void setSymbolColor(java.awt.Color c)
c - the new symbol color
|
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 | |||||||||