|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeLayout
Nested Class Summary | |
---|---|
static class |
TreeLayout.AxisType
|
Method Summary | |
---|---|
void |
addTreeLayoutListener(TreeLayoutListener listener)
Add a listener for this layout |
Line2D |
getBranchLabelPath(Node node)
|
Shape |
getBranchPath(Node node)
Return the shape that represents the given branch |
Shape |
getCalloutPath(Node node)
|
Shape |
getHeightArea(double height1,
double height2)
Return a shape that defines a particular height interval. |
Line2D |
getHeightLine(double height)
Return a line that defines a particular height. |
double |
getHeightOfPoint(Point2D point)
Return the height (from the youngest tip) for the given 2d point. |
Line2D |
getNodeLabelPath(Node node)
|
Point2D |
getNodePoint(Node node)
Return the point in 2d space of the given node |
Line2D |
getTaxonLabelPath(Node node)
|
TreeLayout.AxisType |
getXAxisType()
Return whether the x axis is continuous or discrete |
TreeLayout.AxisType |
getYAxisType()
Return whether the y axis is continuous or discrete |
void |
invalidate()
Force the layout to re-layout all its components |
boolean |
maintainAspectRatio()
Return whether the two axis scales should be maintained relative to each other |
void |
removeTreeLayoutListener(TreeLayoutListener listener)
Remove a listener from this layout |
void |
setTree(Tree tree)
Set the tree for the layout0 |
Methods inherited from interface org.virion.jam.controlpanels.ControlsProvider |
---|
getControls, getSettings, setControlPalette, setSettings |
Method Detail |
---|
void setTree(Tree tree)
tree
- void addTreeLayoutListener(TreeLayoutListener listener)
listener
- void removeTreeLayoutListener(TreeLayoutListener listener)
listener
- void invalidate()
TreeLayout.AxisType getXAxisType()
TreeLayout.AxisType getYAxisType()
boolean maintainAspectRatio()
double getHeightOfPoint(Point2D point)
point
-
Line2D getHeightLine(double height)
height
-
Shape getHeightArea(double height1, double height2)
height
-
Point2D getNodePoint(Node node)
node
-
Shape getBranchPath(Node node)
node
-
Line2D getTaxonLabelPath(Node node)
Line2D getBranchLabelPath(Node node)
Line2D getNodeLabelPath(Node node)
Shape getCalloutPath(Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |