Class ColorSwatchConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.gamepieceimage.ColorSwatchConfigurer
public class ColorSwatchConfigurer extends Configurer
-
Field Summary
Fields Modifier and Type Field Description protected BoxcolorBoxprotected ColorConfigurerconfigprotected JPanelpprotected JComboBox<String>swatchesprotected JPanelswatchPanelFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description ColorSwatchConfigurer(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 Type Method Description protected voidbuildSwatches()static ColorSwatchdecode(String s)static Stringencode(ColorSwatch f)ComponentgetControls()GUI interface for setting the option in an editing windowColorgetValueColor()ColorSwatchgetValueColorSwatch()StringgetValueString()protected voidrepack()voidsetValue(String s)Set the Object value from a Stringprotected voidupdateValue()Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, 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() -
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
decode
-
encode
-