info.bioinfweb.treegraph.graphics.positionpaint
Class PhylogramPositioner
java.lang.Object
info.bioinfweb.treegraph.graphics.positionpaint.RectangularCladogramPositioner
info.bioinfweb.treegraph.graphics.positionpaint.PhylogramPositioner
- All Implemented Interfaces:
- TreePositioner
public class PhylogramPositioner
- extends RectangularCladogramPositioner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
firstInstance
private static PhylogramPositioner firstInstance
PhylogramPositioner
public PhylogramPositioner()
getInstance
public static PhylogramPositioner getInstance()
rescaleNodeWidth
protected float rescaleNodeWidth(Node node,
float width)
- This method is overwritten to ensure that no corner radius in painted.
- Overrides:
rescaleNodeWidth
in class RectangularCladogramPositioner
- Parameters:
node
- the node to be rescaledwidth
- the old width of the node in millimeters
- Returns:
- the new width of the node in millimeters
- See Also:
RectangularCladogramPositioner.rescaleNodeWidth(info.bioinfweb.treegraph.document.Node, float)
rescaleBranchWidth
protected float rescaleBranchWidth(Branch branch,
float width)
- This method is overwritten to regard the stored branch lengths.
- Overrides:
rescaleBranchWidth
in class RectangularCladogramPositioner
- Parameters:
branch
- the branch to be rescaledwidth
- the old width of the branch in millimeters
- Returns:
- the new width of the branch in millimeters
- See Also:
RectangularCladogramPositioner.rescaleBranchWidth(info.bioinfweb.treegraph.document.Branch, float)
calculateCornerRadiusShift
protected float calculateCornerRadiusShift(Node node,
float y)
- This method is overwritten to ensure that no corner radius in painted.
- Overrides:
calculateCornerRadiusShift
in class RectangularCladogramPositioner
y
- the absolute y position (not relative to the top of the node)
- Returns:
- the length in x (between 0 and cornerRadius)
- See Also:
RectangularCladogramPositioner.calculateCornerRadiusShift(info.bioinfweb.treegraph.document.Node, float)
xToHigh
protected boolean xToHigh(float x,
PositionData pd)
- Always returns
false
because label blocks could overlap to the left in a phylogram.
- Overrides:
xToHigh
in class RectangularCladogramPositioner