|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AccordionTreeDrawer.TreeEdge
A class representing an edge of a (phylognenetic) tree A TreeEdge represents a horizontal or vertical line segment used in drawing a tree.
a--- firstChild | | --- . n | . o---|c . d --- e | | b--- lastChildIn this figure (node,c), (a,b), (firstChild,a) and (lastChild,b) are line segments Each of them is represented by a TreeEdge (node,c) corresponds to a horizontal TreeEdge associated with TreeNode node (a,b) corresponds to a vertical TreeEdge associated with TreeNode node
AccordionDrawer.Tree
,
AccordionDrawer.TreeNode
,
GridCell
Field Summary | |
GridCell |
encloses
The GridCell that this TreeEdge is attached to |
GridCell |
end
The GridCell the other endpoint (the "end" node) of the TreeEdge is attached to |
boolean |
horiz
Whether this TreeEdge is horizontal |
TreeNode |
node
|
GridCell |
start
The GridCell that one endpoint (the "start" node) of the TreeEdge is attached to |
Constructor Summary | |
TreeEdge(TreeNode n,
GridCell startCell,
GridCell endCell)
|
Method Summary | |
void |
close()
clean the tree edge |
void |
drawInCell(java.awt.Color col,
float plane,
AccordionDrawer d)
Draws this TreeEdge inside the GridCell to which it is attached, and its label if appropriate. |
void |
drawLabelBig(int x,
int y)
Draw label of this TreeEdge at maximum size (intended for mouseover highlighting). |
GridCell |
getCell()
|
AccordionTreeDrawer |
getDrawer()
|
int |
getKey()
|
int |
getMax()
|
int |
getMin()
|
java.lang.String |
getName()
|
int[] |
getXInterval()
|
int[] |
getYInterval()
|
boolean |
pick(int x,
int y)
Determines whether the window coordinates (x,y) fall on this TreeEdge There is a "snap" factor, determined by the pickFuzz field of the enclosing cell. |
void |
setCell(GridCell gc)
|
void |
setLabel(java.lang.String label)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public TreeNode node
public GridCell start
public GridCell end
public GridCell encloses
public boolean horiz
Constructor Detail |
public TreeEdge(TreeNode n, GridCell startCell, GridCell endCell)
Method Detail |
public AccordionTreeDrawer getDrawer()
public void close()
TreeNode.close
public int getKey()
getKey
in interface CellGeom
public java.lang.String getName()
getName
in interface CellGeom
public void setCell(GridCell gc)
setCell
in interface CellGeom
public GridCell getCell()
getCell
in interface CellGeom
public int getMin()
getMin
in interface CellGeom
public int getMax()
getMax
in interface CellGeom
public void setLabel(java.lang.String label)
public int[] getXInterval()
public int[] getYInterval()
public void drawInCell(java.awt.Color col, float plane, AccordionDrawer d)
drawInCell
in interface CellGeom
col
- The color to draw this node inplane
- Z depth at which to draw labelGridCell
public void drawLabelBig(int x, int y)
public boolean pick(int x, int y)
pick
in interface CellGeom
GridCell
,
AccordionDrawer.AccordionTreeDrawer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |