info.bioinfweb.treegraph.document
Class Branch
java.lang.Object
info.bioinfweb.treegraph.document.ConcretePaintableElement
info.bioinfweb.treegraph.document.Branch
- All Implemented Interfaces:
- HiddenDataElement, LineElement, PaintableElement, TreeElement, Cloneable
public class Branch
- extends ConcretePaintableElement
- implements LineElement, HiddenDataElement, TreeElement, Cloneable
The entity for a branch.
- Author:
- Ben Stöver
length
private double length
labels
private Labels labels
targetNode
private Node targetNode
formats
private BranchFormats formats
hiddenDataMap
private HiddenDataMap hiddenDataMap
Branch
public Branch(Node target)
getLineFormats
public LineFormats getLineFormats()
getLength
public double getLength()
setLength
public void setLength(double length)
hasLength
public boolean hasLength()
deleteLength
public void deleteLength()
getLabels
public Labels getLabels()
getTargetNode
public Node getTargetNode()
setTargetNode
public void setTargetNode(Node targetNode)
getFormats
public BranchFormats getFormats()
- Specified by:
getFormats
in interface LineElement
- Specified by:
getFormats
in interface PaintableElement
setFormats
public void setFormats(ElementFormats formats)
- Specified by:
setFormats
in interface PaintableElement
getHiddenDataMap
public HiddenDataMap getHiddenDataMap()
- Specified by:
getHiddenDataMap
in interface HiddenDataElement
getLinkedNode
public Node getLinkedNode()
- Specified by:
getLinkedNode
in interface TreeElement
clone
public Branch clone()
- Clones this
Branch
including its Labels
-object with the
included Label
s. The connected Node
s are the same objects
as in the original Branch
.
- Specified by:
clone
in class ConcretePaintableElement
- Returns:
- the copy of this object