Home /
Development /
Documentation /
2.0.44 /
DistanceAdapterListModel
info.bioinfweb.treegraph.gui.dialogs.specialformats
Class DistanceAdapterListModel
java.lang.Object
javax.swing.AbstractListModel
info.bioinfweb.treegraph.gui.dialogs.specialformats.DistanceAdapterListModel
- All Implemented Interfaces:
- Serializable, ListModel
public class DistanceAdapterListModel
- 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<DistanceAdapter> adapters
DistanceAdapterListModel
public DistanceAdapterListModel()
setAdapters
public void setAdapters(Tree tree,
boolean includeLegendFormats)
- Creates all distance adapters valid for the whole tree.
- Parameters:
tree
- includeLegendFormats
- defines whether legend formats should be selectable
setAdapters
public void setAdapters(Tree tree,
Node root,
boolean includeLegendFormats)
- Creates all distance adapters valid for the subtree under
root
.
- Parameters:
tree
- the tree that contains root
(used to determine whether legends
formats can be selected)root
- the root of the subtree that shall be used to search for label IDsincludeLegendFormats
- defines whether legend formats should be selectable
getElementAt
public DistanceAdapter getElementAt(int pos)
- Specified by:
getElementAt
in interface ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface ListModel