VASSAL.configure
Class ColorConfigurer
java.lang.Object
|
+--VASSAL.configure.Configurer
|
+--VASSAL.configure.ColorConfigurer
- public class ColorConfigurer
- extends Configurer
Configurer for Color values
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getValueString
public java.lang.String getValueString()
- Specified by:
getValueString in class 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
- Specified by:
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
- Specified by:
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)