VASSAL.configure
Class ColorConfigurer

java.lang.Object
  |
  +--VASSAL.configure.Configurer
        |
        +--VASSAL.configure.ColorConfigurer

public class ColorConfigurer
extends Configurer

Configurer for Color values


Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
ColorConfigurer(java.lang.String key, java.lang.String name)
           
ColorConfigurer(java.lang.String key, java.lang.String name, java.awt.Color val)
           
 
Method Summary
static java.lang.String colorToString(java.awt.Color c)
           
 java.awt.Component getControls()
          GUI interface for setting the option in an editing window
 java.lang.String getValueString()
           
 void setValue(java.lang.Object o)
          Set the Object value
 void setValue(java.lang.String s)
          Set the Object value from a String
static java.awt.Color stringToColor(java.lang.String s)
           
 
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, setFrozen, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorConfigurer

public ColorConfigurer(java.lang.String key,
                       java.lang.String name)

ColorConfigurer

public ColorConfigurer(java.lang.String key,
                       java.lang.String name,
                       java.awt.Color val)
Method Detail

getValueString

public java.lang.String getValueString()
Overrides:
getValueString in class Configurer
Following copied from class: VASSAL.configure.Configurer
Returns:
a String representation of the Object value

setValue

public void setValue(java.lang.Object o)
Description copied from class: Configurer
Set the Object value
Overrides:
setValue in class Configurer

setValue

public void setValue(java.lang.String s)
Description copied from class: Configurer
Set the Object value from a String
Overrides:
setValue in class Configurer

getControls

public java.awt.Component getControls()
Description copied from class: Configurer
GUI interface for setting the option in an editing window
Overrides:
getControls in class Configurer

colorToString

public static java.lang.String colorToString(java.awt.Color c)

stringToColor

public static java.awt.Color stringToColor(java.lang.String s)