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 JPanel
fontPanel
protected JComboBox
fonts
protected JPanel
p
Fields 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 void
buildFonts()
static FontStyle
decode(String s)
static String
encode(FontStyle f)
Component
getControls()
GUI interface for setting the option in an editing windowFont
getValueFont()
FontStyle
getValueFontStyle()
String
getValueString()
void
setValue(String s)
Set the Object value from a Stringprotected void
updateValue()
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:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
getValueFont
-
getValueFontStyle
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
buildFonts
protected void buildFonts() -
updateValue
protected void updateValue() -
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
decode
-
encode
-