info.bioinfweb.treegraph.gui.dialogs.specialformats
Class ColorAdapterListModel
java.lang.Object
javax.swing.AbstractListModel
info.bioinfweb.treegraph.gui.dialogs.specialformats.ColorAdapterListModel
- All Implemented Interfaces:
- Serializable, ListModel
public class ColorAdapterListModel
- extends AbstractListModel
- implements ListModel
- Since:
- 2.0.23
- Author:
- Ben Stöver
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
adapters
private List<ColorAdapter> adapters
ColorAdapterListModel
public ColorAdapterListModel()
setAdapters
public void setAdapters(Node root)
- Creates all color adapters valid for the subtree under
root
.
- Parameters:
root
- the root of the subtree that shall be used to search for label IDs
getElementAt
public ColorAdapter getElementAt(int pos)
- Specified by:
getElementAt
in interface ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface ListModel