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


Field Summary
private  java.awt.Color color
           
 
Constructor Summary
ColorProperty(PropertySet parent, java.lang.String name, java.awt.Color color)
           
 
Method Summary
private  java.awt.Color decodeColor(java.lang.String name)
           
 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)
           
private  void setColorInternal(java.awt.Color c)
           
 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
 

Field Detail

color

private java.awt.Color color
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)

setColorInternal

private void setColorInternal(java.awt.Color c)

decodeColor

private java.awt.Color decodeColor(java.lang.String name)
                            throws PropertyException
Throws:
PropertyException

toString

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

FOOTER

BOTTOM