com.raelity.jvi
Class Option.ColorOption

java.lang.Object
  extended by com.raelity.jvi.Option
      extended by com.raelity.jvi.Option.ColorOption
Enclosing class:
Option

public static class Option.ColorOption
extends Option


Nested Class Summary
static class Option.ColorOption.Validator
           
 
Nested classes/interfaces inherited from class com.raelity.jvi.Option
Option.ColorOption
 
Field Summary
 
Fields inherited from class com.raelity.jvi.Option
defaultValue, desc, displayName, fExpert, fHidden, fPropogate, name, stringValue, tags
 
Constructor Summary
Option.ColorOption(String key, Color defaultValue)
           
Option.ColorOption(String key, Color defaultValue, boolean permitNull, Option.ColorOption.Validator validator)
           
 
Method Summary
 Color decode(String s)
           
 Color getColor()
           
 boolean isPermitNull()
           
 void setColor(Color newValue)
          Set the value of the parameter.
 void setValue(String newValue)
          Set the value as a string.
 void validate(Color val)
           
static String xformToString(Color c)
           
 
Methods inherited from class com.raelity.jvi.Option
getBoolean, getDefault, getDesc, getDisplayName, getInteger, getName, getString, getTags, getValue, initialize, isExpert, isHidden, propogate, setExpert, setHidden, validate, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Option.ColorOption

public Option.ColorOption(String key,
                          Color defaultValue)

Option.ColorOption

public Option.ColorOption(String key,
                          Color defaultValue,
                          boolean permitNull,
                          Option.ColorOption.Validator validator)
Method Detail

getColor

public final Color getColor()
Overrides:
getColor in class Option

isPermitNull

public boolean isPermitNull()

decode

public final Color decode(String s)

xformToString

public static String xformToString(Color c)

setColor

public void setColor(Color newValue)
Set the value of the parameter.


setValue

public void setValue(String newValue)
              throws IllegalArgumentException
Set the value as a string.

Specified by:
setValue in class Option
Throws:
IllegalArgumentException

validate

public void validate(Color val)
              throws PropertyVetoException
Overrides:
validate in class Option
Throws:
PropertyVetoException