Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## info.bioinfweb.treegraph.gui.dialogs.specialformats
Class DistanceAdapterListModel

    java.lang.Object
      javax.swing.AbstractListModel
          info.bioinfweb.treegraph.gui.dialogs.specialformats.DistanceAdapterListModel

All Implemented Interfaces:
  java.io.Serializable, javax.swing.ListModel

    public class DistanceAdapterListModel

extends javax.swing.AbstractListModel
implements javax.swing.ListModel

Since:
  2.0.23
Author:
  Ben Stöver
See Also:
  Serialized Form

Field Summary
`private java.util.List<DistanceAdapter>` | `adapters`

Fields inherited from class javax.swing.AbstractListModel
`listenerList`

Constructor Summary
`DistanceAdapterListModel()`

Method Summary
`DistanceAdapter` | `getElementAt(int pos)`
`int` | `getSize()`
`void` | `setAdapters(Tree tree, boolean includeLegendFormats)` Creates all distance adapters valid for the whole tree.
`void` | `setAdapters(Tree tree, Node root, boolean includeLegendFormats)` Creates all distance adapters valid for the subtree under `root`.

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`

Field Detail

### adapters

    private java.util.List<DistanceAdapter> adapters

Constructor Detail

### DistanceAdapterListModel

    public DistanceAdapterListModel()

Method Detail

### 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 IDs
    `includeLegendFormats` - - defines whether legend formats should be selectable

### getElementAt

    public DistanceAdapter getElementAt(int pos)

  Specified by:
    `getElementAt` in interface `javax.swing.ListModel`

### getSize

    public int getSize()

  Specified by:
    `getSize` in interface `javax.swing.ListModel`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD