Led Display Component v2.0
www.SwingLeddisplay.com

com.swingleddisplay.elements
Class DefaultColorModel

java.lang.Object
  extended bycom.swingleddisplay.elements.DefaultColorModel
All Implemented Interfaces:
ColorModel

public class DefaultColorModel
extends java.lang.Object
implements ColorModel

Simple implementation of ColorModel


Constructor Summary
DefaultColorModel()
          default color is white
DefaultColorModel(java.awt.Color color)
          use this constructor to set your own color
 
Method Summary
 java.awt.Color getColor()
          Gets the color of a token
 void setColor(java.awt.Color color)
          Sets the color of a token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultColorModel

public DefaultColorModel()
default color is white


DefaultColorModel

public DefaultColorModel(java.awt.Color color)
use this constructor to set your own color

Parameters:
color -
Method Detail

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
See Also:
ColorModel.getColor()

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
See Also:
com.swingleddisplay.elements.ColorModel#setColor()

Led Display Component v2.0
www.SwingLeddisplay.com