Class AxisSelectionComboBoxModel
java.lang.Object
javax.swing.AbstractListModel<E>
javax.swing.DefaultComboBoxModel
com.macrofocus.high_d.scatterplot.swing.AxisSelectionComboBoxModel
- All Implemented Interfaces:
Serializable
,ComboBoxModel
,ListModel
,MutableComboBoxModel
Adapter class for interfacing Selection with Swing's ComboBox.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionAxisSelectionComboBoxModel
(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
Modifier and TypeMethodDescriptiongetElementAt
(int index) int
getIndexOf
(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
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 Details
-
getSize
public int getSize()- Specified by:
getSize
in interfaceListModel
- Overrides:
getSize
in classDefaultComboBoxModel
-
getIndexOf
- Overrides:
getIndexOf
in classDefaultComboBoxModel
-
getElementAt
- Specified by:
getElementAt
in interfaceListModel
- Overrides:
getElementAt
in classDefaultComboBoxModel
-