Class ColorSwatchConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.gamepieceimage.ColorSwatchConfigurer
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boxprotected ColorConfigurerprotected JPanelprotected JPanelFields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, 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 StringGUI 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, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, 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
-