net.leddisplay.demo.elements
Class StockColorModel
java.lang.Object
net.leddisplay.demo.elements.StockColorModel
- All Implemented Interfaces:
- ColorModel
- public class StockColorModel
- extends java.lang.Object
- implements ColorModel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StockColorModel
public StockColorModel()
getColor
public java.awt.Color getColor()
- Description copied from interface:
ColorModel
- Gets the color of a token
- Specified by:
getColor in interface ColorModel
- Returns:
- the color of the token
setColor
public void setColor(java.awt.Color color)
- Description copied from interface:
ColorModel
- Sets the color of a token
- Specified by:
setColor in interface ColorModel
- Parameters:
color - the color of the token
setUpColor
public void setUpColor(java.awt.Color c)
setNeutralColor
public void setNeutralColor(java.awt.Color c)
setDownColor
public void setDownColor(java.awt.Color c)
setChangePercent
public void setChangePercent(double changePercent)