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.treeframe
Class TreeSelection

    java.lang.Object
      info.bioinfweb.treegraph.gui.treeframe.TreeSelection

    public class TreeSelection

extends Object

This class manages the selection of multiple elements in an tree view panel.

Author:
  Ben Stöver

Field Summary
`private boolean` | `branchPresent`
`private Vector<ConcretePaintableElement>` | `elements`
`private boolean` | `iconLabelPresent`
`private boolean` | `legendPresent`
`private boolean` | `nodePresent`
`private TreeViewPanel` | `owner`
`private boolean` | `scaleBarPresent`
`private boolean` | `textLabelPresent`

Constructor Summary
`TreeSelection(TreeViewPanel owner)`

Method Summary
`void` | `add(ConcretePaintableElement element)`
`private void` | `calculateElementFlags()`
`void` | `clear()`
`String[]` | `containedLabelIDs()` Returns a list of the ids of the labels that are currently selected.
`boolean` | `contains(ConcretePaintableElement element)`
`boolean` | `containsBranch()`
`boolean` | `containsEdgeRadiusElement()`
`boolean` | `containsIconLabel()`
`boolean` | `containsLabel()`
`boolean` | `containsLegend()`
`boolean` | `containsLineElement()`
`boolean` | `containsNode()`
`boolean` | `containsOnlyBranches()`
`boolean` | `containsOnlyEdgeRadiusElements()`
`boolean` | `containsOnlyLabels()`
`boolean` | `containsOnlyLegends()`
`boolean` | `containsOnlyLineElements()`
`boolean` | `containsOnlyNodes()`
`boolean` | `containsOnlyScaleBar()`
`boolean` | `containsOnlyTextElements()`
`boolean` | `containsOnlyTreeElements()`
`boolean` | `containsScaleBar()`
`boolean` | `containsTextElement()`
`boolean` | `containsTextLabel()`
`boolean` | `containsTreeElement()`
`ConcretePaintableElement` | `get(int index)`
`Branch` | `getFirstBranch()`
`CornerRadiusElement` | `getFirstEdgeRadiusElement()`
`IconLabel` | `getFirstIconLabel()`
`Label` | `getFirstLabel()`
`Node` | `getFirstLeaf()`
`Legend` | `getFirstLegend()`
`LineElement` | `getFirstLineElement()`
`Node` | `getFirstNode()`
`TextElement` | `getFirstTextElement()`
`TextLabel` | `getFirstTextLabel()`
`TreeElement` | `getFirstTreeElement()`
`ScaleBar` | `getScaleBar()`
`boolean` | `isEmpty()`
`int` | `nodeCount()`
`void` | `remove(ConcretePaintableElement element)`
`void` | `set(ConcretePaintableElement element)` Sets the specified element as the only selected element.
`int` | `size()`
`
`<T> T[]`
` | `toArray(T[] arr)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### owner

    private TreeViewPanel owner

### elements

    private Vector<ConcretePaintableElement> elements

### nodePresent

    private boolean nodePresent

### branchPresent

    private boolean branchPresent

### textLabelPresent

    private boolean textLabelPresent

### iconLabelPresent

    private boolean iconLabelPresent

### legendPresent

    private boolean legendPresent

### scaleBarPresent

    private boolean scaleBarPresent

Constructor Detail

### TreeSelection

    public TreeSelection(TreeViewPanel owner)

Method Detail

### calculateElementFlags

    private void calculateElementFlags()

### get

    public ConcretePaintableElement get(int index)

### toArray

    public <T> T[] toArray(T[] arr)

### set

    public void set(ConcretePaintableElement element)

  Sets the specified element as the only selected element.

  Parameters:
    `element` - - the element to select or `nil` if no element should be# selected

### add

    public void add(ConcretePaintableElement element)

### remove

    public void remove(ConcretePaintableElement element)

### clear

    public void clear()

### size

    public int size()

### isEmpty

    public boolean isEmpty()

### contains

    public boolean contains(ConcretePaintableElement element)

### containsNode

    public boolean containsNode()

### containsOnlyNodes

    public boolean containsOnlyNodes()

### containsBranch

    public boolean containsBranch()

### containsOnlyBranches

    public boolean containsOnlyBranches()

### containsTextLabel

    public boolean containsTextLabel()

### containsIconLabel

    public boolean containsIconLabel()

### containsLabel

    public boolean containsLabel()

### containsLegend

    public boolean containsLegend()

### containsOnlyLegends

    public boolean containsOnlyLegends()

### containsScaleBar

    public boolean containsScaleBar()

### containsOnlyScaleBar

    public boolean containsOnlyScaleBar()

### containsLineElement

    public boolean containsLineElement()

### containsOnlyLineElements

    public boolean containsOnlyLineElements()

### containsTextElement

    public boolean containsTextElement()

### containsOnlyTextElements

    public boolean containsOnlyTextElements()

### containsEdgeRadiusElement

    public boolean containsEdgeRadiusElement()

### containsOnlyEdgeRadiusElements

    public boolean containsOnlyEdgeRadiusElements()

### containsOnlyLabels

    public boolean containsOnlyLabels()

### containsTreeElement

    public boolean containsTreeElement()

### containsOnlyTreeElements

    public boolean containsOnlyTreeElements()

### getFirstTreeElement

    public TreeElement getFirstTreeElement()

### getFirstLineElement

    public LineElement getFirstLineElement()

### getFirstTextElement

    public TextElement getFirstTextElement()

### getFirstEdgeRadiusElement

    public CornerRadiusElement getFirstEdgeRadiusElement()

### getFirstBranch

    public Branch getFirstBranch()

### getFirstNode

    public Node getFirstNode()

### getFirstLeaf

    public Node getFirstLeaf()

### getFirstLabel

    public Label getFirstLabel()

### getFirstTextLabel

    public TextLabel getFirstTextLabel()

### getFirstIconLabel

    public IconLabel getFirstIconLabel()

### getFirstLegend

    public Legend getFirstLegend()

### getScaleBar

    public ScaleBar getScaleBar()

### containedLabelIDs

    public String[] containedLabelIDs()

  Returns a list of the ids of the labels that are currently selected. If a label without an ID is selected `""` ist included in the result.

  Returns:
    the list of IDs (Every ID is included only once.)

### nodeCount

    public int nodeCount()

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