Class AxisSelectionComboBoxModel
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- javax.swing.DefaultComboBoxModel
-
- com.macrofocus.high_d.scatterplot.swing.AxisSelectionComboBoxModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ComboBoxModel
,javax.swing.ListModel
,javax.swing.MutableComboBoxModel
public class AxisSelectionComboBoxModel extends javax.swing.DefaultComboBoxModel
Adapter class for interfacing Selection with Swing's ComboBox.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AxisSelectionComboBoxModel(MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> selection, com.macrofocus.high_d.axis.group.AxisGroupModel<?,?> root)
AxisSelectionComboBoxModel(MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> selection, com.macrofocus.high_d.axis.group.AxisGroupModel<?,?> root, boolean addNull)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getElementAt(int index)
int
getIndexOf(java.lang.Object anObject)
int
getSize()
-
Methods inherited from class javax.swing.DefaultComboBoxModel
addAll, addAll, addElement, getSelectedItem, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
AxisSelectionComboBoxModel
public AxisSelectionComboBoxModel(MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> selection, com.macrofocus.high_d.axis.group.AxisGroupModel<?,?> root)
-
AxisSelectionComboBoxModel
public AxisSelectionComboBoxModel(MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> selection, com.macrofocus.high_d.axis.group.AxisGroupModel<?,?> root, boolean addNull)
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSize
in interfacejavax.swing.ListModel
- Overrides:
getSize
in classjavax.swing.DefaultComboBoxModel
-
getIndexOf
public int getIndexOf(java.lang.Object anObject)
- Overrides:
getIndexOf
in classjavax.swing.DefaultComboBoxModel
-
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAt
in interfacejavax.swing.ListModel
- Overrides:
getElementAt
in classjavax.swing.DefaultComboBoxModel
-
-