Class ColorSwatchConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.gamepieceimage.ColorSwatchConfigurer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boxprotected ColorConfigurerprotected JPanelprotected JPanelFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
ConstructorsConstructorDescriptionColorSwatchConfigurer(String key, String name)ColorSwatchConfigurer(String key, String name, Color color)ColorSwatchConfigurer(String key, String name, String swatchName)ColorSwatchConfigurer(String key, String name, ColorSwatch swatch) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic ColorSwatchstatic Stringencode(ColorSwatch f)GUI interface for setting the option in an editing windowprotected voidrepack()Repack the current configurervoidSet the Object value from a Stringprotected voidMethods inherited from class VASSAL.configure.Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getHint, getKey, getName, getScreenSize, getValue, isFrozen, isHighlighted, removeFocusListener, removePropertyChangeListener, repack, requestFocus, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setName, setValue
-
Field Details
-
p
-
swatchPanel
-
swatches
-
colorBox
-
config
-
-
Constructor Details
-
ColorSwatchConfigurer
-
ColorSwatchConfigurer
-
ColorSwatchConfigurer
-
ColorSwatchConfigurer
-
-
Method Details
-
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
getValueColor
-
getValueColorSwatch
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
buildSwatches
protected void buildSwatches() -
updateValue
protected void updateValue() -
repack
protected void repack()Description copied from class:ConfigurerRepack the current configurer- Overrides:
repackin classConfigurer
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
decode
-
encode
-