Class FontStyleConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.gamepieceimage.FontStyleConfigurer
public class FontStyleConfigurer extends Configurer
-
Field Summary
Fields Modifier and Type Field Description protected JPanelfontPanelprotected JComboBoxfontsprotected JPanelpFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description FontStyleConfigurer(String key, String name)FontStyleConfigurer(String key, String name, String styleName)FontStyleConfigurer(String key, String name, FontStyle fontStyle) -
Method Summary
Modifier and Type Method Description protected voidbuildFonts()static FontStyledecode(String s)static Stringencode(FontStyle f)ComponentgetControls()GUI interface for setting the option in an editing windowFontgetValueFont()FontStylegetValueFontStyle()StringgetValueString()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
-
fontPanel
-
fonts
-
-
Constructor Details
-
FontStyleConfigurer
-
FontStyleConfigurer
-
FontStyleConfigurer
-
-
Method Details
-
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
getValueFont
-
getValueFontStyle
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
buildFonts
protected void buildFonts() -
updateValue
protected void updateValue() -
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
decode
-
encode
-