Class AxisSelectionComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
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) intgetIndexOf(Object anObject) intgetSize()Methods inherited from class javax.swing.DefaultComboBoxModel
addAll, addAll, addElement, getSelectedItem, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItemMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSizein interfaceListModel- Overrides:
getSizein classDefaultComboBoxModel
-
getIndexOf
- Overrides:
getIndexOfin classDefaultComboBoxModel
-
getElementAt
- Specified by:
getElementAtin interfaceListModel- Overrides:
getElementAtin classDefaultComboBoxModel
-