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
Modifier and TypeFieldDescriptionprotected Box
protected ColorConfigurer
protected JPanel
protected JPanel
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
ConstructorDescriptionColorSwatchConfigurer
(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 void
static ColorSwatch
static String
GUI interface for setting the option in an editing windowprotected void
repack()
Repack the current configurervoid
Set the Object value from a Stringprotected void
Methods 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:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
getValueColor
-
getValueColorSwatch
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
buildSwatches
protected void buildSwatches() -
updateValue
protected void updateValue() -
repack
protected void repack()Description copied from class:Configurer
Repack the current configurer- Overrides:
repack
in classConfigurer
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
decode
-
encode
-