Class FontConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.gamepieceimage.FontConfigurer
public class FontConfigurer extends Configurer
A Configurer for
Font
values-
Field Summary
Fields Modifier and Type Field Description protected BooleanConfigurer
bold
protected JTextField
demo
protected JComboBox
family
protected BooleanConfigurer
italic
protected BooleanConfigurer
outline
protected JPanel
p
protected IntConfigurer
size
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description FontConfigurer(String key, String name)
FontConfigurer(String key, String name, FontStyle f)
FontConfigurer(String key, String name, OutlineFont f)
-
Method Summary
Modifier and Type Method Description static OutlineFont
decode(String s)
static String
encode(OutlineFont f)
Component
getControls()
GUI interface for setting the option in an editing windowprotected OutlineFont
getFontValue()
String
getValueString()
boolean
isBold()
boolean
isItalic()
boolean
isOutline()
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
-
size
-
bold
-
italic
-
outline
-
family
-
demo
-
-
Constructor Details
-
FontConfigurer
-
FontConfigurer
-
FontConfigurer
-
-
Method Details
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
updateValue
protected void updateValue() -
getFontValue
-
decode
-
encode
-
isBold
public boolean isBold() -
isItalic
public boolean isItalic() -
isOutline
public boolean isOutline()
-