us.zuercher.gpx2map.gui
Class FontSizeComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
us.zuercher.gpx2map.gui.FontSizeComboBoxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel, MutableComboBoxModel
public class FontSizeComboBoxModel
- extends DefaultComboBoxModel
FontSizeComboBoxModel defines the choices available in the font size 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 |
fontSizeChoices
private static FontSizeComboBoxModel.FontSizeChoice[] fontSizeChoices
- Array of
font sizes choices
initialized once
during the first construction of this class.
defaultIndex
private static int defaultIndex
- Default font size choice.
FontSizeComboBoxModel
public FontSizeComboBoxModel()
- Constructs a new FontSizeComboBoxModel.
getFontSizeChoices
private static FontSizeComboBoxModel.FontSizeChoice[] getFontSizeChoices()
- Generates a list of
FontSizeComboBoxModel.FontSizeChoice
objects. The sizes are
relatively standard and cannot be changed. The list is only generated
once and stored in fontSizeChoices
. In addition,
defaultIndex
is initialized.
- Returns:
- list of FontSizeChoice objectgs.