jmathlib.core.graphics.properties
Class ColorProperty

java.lang.Object
  extended by jmathlib.core.graphics.properties.Property
      extended by jmathlib.core.graphics.properties.ColorProperty

public class ColorProperty
extends Property


Constructor Summary
ColorProperty(PropertySet parent, java.lang.String name, java.awt.Color color)
           
 
Method Summary
 java.lang.Object get()
           
 java.awt.Color getColor()
           
 void set(java.lang.Object value)
           
 void setColor(char c)
           
 void setColor(java.awt.Color c)
           
 void setColor(java.lang.String s)
           
 java.lang.String toString()
           
 
Methods inherited from class jmathlib.core.graphics.properties.Property
addPropertyListener, getName, update, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorProperty

public ColorProperty(PropertySet parent,
                     java.lang.String name,
                     java.awt.Color color)
Method Detail

set

public void set(java.lang.Object value)
         throws PropertyException
Specified by:
set in class Property
Throws:
PropertyException

get

public java.lang.Object get()
Specified by:
get in class Property

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color c)

setColor

public void setColor(java.lang.String s)

setColor

public void setColor(char c)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object