|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Edge
An edge in a graph.
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
connect(Node aStart,
Node anEnd)
Connect this edge to two nodes. |
boolean |
contains(java.awt.geom.Point2D aPoint)
Tests whether the edge contains a point. |
void |
draw(java.awt.Graphics2D g2)
Draw the edge. |
java.awt.geom.Rectangle2D |
getBounds(java.awt.Graphics2D g2)
Gets the smallest rectangle that bounds this edge. |
java.awt.geom.Line2D |
getConnectionPoints()
Gets the points at which this edge is connected to its nodes. |
Node |
getEnd()
Gets the ending node. |
Node |
getStart()
Gets the starting node. |
| Method Detail |
|---|
void draw(java.awt.Graphics2D g2)
g2 - the graphics contextboolean contains(java.awt.geom.Point2D aPoint)
aPoint - the point to test
void connect(Node aStart,
Node anEnd)
aStart - the starting nodeanEnd - the ending nodeNode getStart()
Node getEnd()
java.awt.geom.Line2D getConnectionPoints()
java.awt.geom.Rectangle2D getBounds(java.awt.Graphics2D g2)
java.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||