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.DefaultComboBoxModelAdapter 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.ObjectgetElementAt(int index)intgetIndexOf(java.lang.Object anObject)intgetSize()-
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:
getSizein interfacejavax.swing.ListModel- Overrides:
getSizein classjavax.swing.DefaultComboBoxModel
-
getIndexOf
public int getIndexOf(java.lang.Object anObject)
- Overrides:
getIndexOfin classjavax.swing.DefaultComboBoxModel
-
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAtin interfacejavax.swing.ListModel- Overrides:
getElementAtin classjavax.swing.DefaultComboBoxModel
-
-