|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ciips.animation.tree.TreeEdge
A drawable object connecting two TreeNode
's
Constructor Summary | |
TreeEdge(TreeNode start,
TreeNode end)
Constructor in which offset is set to (0,0) |
|
TreeEdge(TreeNode start,
TreeNode end,
java.awt.Dimension offset)
Create a new edge joining start and end |
Method Summary | |
void |
draw(java.awt.Graphics g)
Draw the edge |
boolean |
equals(TreeNode s,
TreeNode end)
Match an edge |
TreeNode |
getEnd()
|
TreeNode |
getStart()
|
int |
getX()
Return the x coordinate of the start node |
int |
getY()
Returns the y coordinate of the drawing object's reference point. |
void |
move(int x,
int y)
A no op for a tree edge |
void |
setColour(java.awt.Color c)
|
void |
setEnd(TreeNode e)
|
void |
setOffset(java.awt.Dimension offset)
Changes the offset to the arc start and end points .. |
void |
setStart(TreeNode s)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TreeEdge(TreeNode start, TreeNode end, java.awt.Dimension offset)
start
and end
public TreeEdge(TreeNode start, TreeNode end)
Method Detail |
public void setStart(TreeNode s)
public void setEnd(TreeNode e)
public TreeNode getStart()
public TreeNode getEnd()
public void setOffset(java.awt.Dimension offset)
public void setColour(java.awt.Color c)
public void move(int x, int y)
move
in interface DrawingObj
ciips.animation.DrawingObj
x
- The x coordinate of the drawing object's new position.y
- The y coordinate of the drawing object's new position.public int getX()
getX
in interface DrawingObj
ciips.animation.DrawingObj
public int getY()
DrawingObj
getY
in interface DrawingObj
ciips.animation.DrawingObj
public boolean equals(TreeNode s, TreeNode end)
public void draw(java.awt.Graphics g)
draw
in interface DrawingObj
ciips.animation.DrawingObj
g
- A reference to the graphical context.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |