|
||||||||||
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 |
String |
getBranchColouringAttribute()
|
Line2D |
getBranchLabelPath(Node node)
|
Map<Node,Line2D> |
getBranchLabelPathMap()
|
Shape |
getBranchPath(Node node)
Return the shape that represents the given branch |
Map<Node,Shape> |
getBranchPathMap()
|
Shape |
getCalloutPath(Node node)
|
Map<Node,Shape> |
getCalloutPathMap()
|
Shape |
getCollapsedShape(Node node)
Return the shape that represents this node when collapsed |
Map<Node,Shape> |
getCollapsedShapeMap()
|
Shape |
getHeightArea(double height1,
double height2)
Return a shape that defines a particular height interval. |
Shape |
getHeightLine(double height)
Return a line that defines a particular height. |
double |
getHeightOfPoint(Point2D point)
|
Line2D |
getNodeBarPath(Node node)
|
Map<Node,Line2D> |
getNodeBarPathMap()
|
Line2D |
getNodeLabelPath(Node node)
|
Map<Node,Line2D> |
getNodeLabelPathMap()
|
Point2D |
getNodePoint(Node node)
Return the point in 2d space of the given node |
Line2D |
getTipLabelPath(Node node)
|
Map<Node,Line2D> |
getTipLabelPathMap()
|
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 |
isShowingColouring()
Return whether this layout is showing a branch colouring |
boolean |
isShowingRootBranch()
Return whether this layout displays a root branch |
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 |
setBranchColouringAttribute(String colouringAttributeName)
|
void |
setCollapseAttributeName(String collapseAttributeName)
|
void |
setTree(Tree tree)
Set the tree for the layout0 |
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 isShowingRootBranch()
boolean isShowingColouring()
boolean maintainAspectRatio()
double getHeightOfPoint(Point2D point)
Shape getHeightLine(double height)
height
-
Shape getHeightArea(double height1, double height2)
height1
- height2
-
Point2D getNodePoint(Node node)
node
-
Shape getBranchPath(Node node)
node
-
Map<Node,Shape> getBranchPathMap()
Shape getCollapsedShape(Node node)
node
-
Map<Node,Shape> getCollapsedShapeMap()
Line2D getTipLabelPath(Node node)
Map<Node,Line2D> getTipLabelPathMap()
Line2D getBranchLabelPath(Node node)
Map<Node,Line2D> getBranchLabelPathMap()
Line2D getNodeLabelPath(Node node)
Map<Node,Line2D> getNodeLabelPathMap()
Line2D getNodeBarPath(Node node)
Map<Node,Line2D> getNodeBarPathMap()
Shape getCalloutPath(Node node)
Map<Node,Shape> getCalloutPathMap()
String getBranchColouringAttribute()
void setBranchColouringAttribute(String colouringAttributeName)
void setCollapseAttributeName(String collapseAttributeName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |