us.zuercher.gpx2map.gui
Class FontComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
us.zuercher.gpx2map.gui.FontComboBoxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel, MutableComboBoxModel
public class FontComboBoxModel
- extends DefaultComboBoxModel
FontComboBoxModel defines the choices available in the font combo box
of the Gpx2Map GUI.
- Author:
- Stephan Zuercher
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fontChoices
private static FontComboBoxModel.FontChoice[] fontChoices
- List of available
font choices
. Only written to
once during the first construction of this class.
defaultIndex
private static int defaultIndex
- The font to select by default.
FontComboBoxModel
public FontComboBoxModel()
- Constructs a new FontComboBoxModel with the available
FontChoices
.
getFontChoices
private static FontComboBoxModel.FontChoice[] getFontChoices()
- Internal method that generates the available list of fonts. The font
list is stored in
fontChoices
and is not regenerated. Also
sets the defaultIndex
field.
- Returns:
- Array of FontChoice representing the available fonts on this
system.