public interface EdgeRenderer
Modifier and Type | Method and Description |
---|---|
void |
drawEdge(java.awt.Graphics g,
java.lang.Object edge,
java.awt.Point origLoc,
java.awt.Point destLoc)
Draws the edge into the Graphics Context.
|
java.awt.Color |
getColor()
Gets the color for the Renderer, if any
|
java.util.List<java.awt.Point> |
getEdgePoints(java.lang.Object edge,
java.awt.Point origLoc,
java.awt.Point destLoc)
Method to return the sequence of points used to draw the path for a
particular edge.
|
void |
highlightEdge(java.awt.Graphics g,
java.lang.Object edge,
java.awt.Point origLoc,
java.awt.Point destLoc)
Highlights the edge into the Graphics Context.
|
boolean |
pickEdge(java.lang.Object edge,
java.awt.Point pickPoint,
java.awt.Point origLoc,
java.awt.Point destLoc)
Checks whether the specified pickpoint is within the drawn area for the
edge.
|
void |
setColor(java.awt.Color color)
Sets the color for the Renderer.
|
void drawEdge(java.awt.Graphics g, java.lang.Object edge, java.awt.Point origLoc, java.awt.Point destLoc)
g
- the Graphics context to display the edgeedge
- the edge to displayorigLoc
- location of the origin nodedestLoc
- location of the destination nodejava.awt.Color getColor()
java.util.List<java.awt.Point> getEdgePoints(java.lang.Object edge, java.awt.Point origLoc, java.awt.Point destLoc)
edge
- the Object to figure the points fororigLoc
- location of the origin nodedestLoc
- location of the destination nodevoid highlightEdge(java.awt.Graphics g, java.lang.Object edge, java.awt.Point origLoc, java.awt.Point destLoc)
g
- the Graphics context to display the edgeedge
- the edge to displayorigLoc
- location of the origin nodedestLoc
- location of the destination nodeboolean pickEdge(java.lang.Object edge, java.awt.Point pickPoint, java.awt.Point origLoc, java.awt.Point destLoc)
edge
- the edge to check for pickingpickPoint
- the coordinate of the point to checkorigLoc
- location of the origin nodedestLoc
- location of the destination nodevoid setColor(java.awt.Color color)
color
- the color for this renderer