public class ArrowEdgeRenderer extends SimpleEdgeRenderer
| Modifier and Type | Class and Description |
|---|---|
static class |
ArrowEdgeRenderer.ArrowHeadLocation
Enumeration representing the location of the arrowhead
|
| Constructor and Description |
|---|
ArrowEdgeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawArrowhead(java.awt.Graphics g,
double xApex,
double yApex,
double angle)
Draws the arrowhead.
|
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.
|
ArrowEdgeRenderer.ArrowHeadLocation |
getArrowheadLocation()
Gets the location of the Arrowhead, relative to the edge.
|
int |
getArrowheadSize()
Gets the size used for the arrowhead.
|
int |
getOffset()
Get the offset used by this renderer when the arrowhead location is set
to OFFSET.
|
boolean |
pickEdge(java.lang.Object edge,
java.awt.Point pickPoint,
java.awt.Point origLoc,
java.awt.Point destLoc)
Checks whether the specified pick point is within the drawn area for the
edge.
|
void |
setArrowheadLocation(ArrowEdgeRenderer.ArrowHeadLocation loc)
Sets the location of the Arrowhead, relative to the edge.
|
void |
setArrowheadSize(int size)
Sets the size used for the arrowhead.
|
void |
setOffset(int pixelOffset)
Set the offset value used to render the arrowhead from the location of
the center or destination node.
|
getColor, getEdgeColor, getEdgePoints, getHighlight, highlightEdge, setColor, setHighlightprotected void drawArrowhead(java.awt.Graphics g,
double xApex,
double yApex,
double angle)
g - the Graphics context to display inxApex - the X coordinate of the point of the arrowheadyApex - the Y coordinate of the point of the arrowheadangle - the angle that the arrowhead is pointingpublic void drawEdge(java.awt.Graphics g,
java.lang.Object edge,
java.awt.Point origLoc,
java.awt.Point destLoc)
setOffset() method.drawEdge in interface EdgeRendererdrawEdge in class SimpleEdgeRendererg - the Graphics context to display the edgeedge - the edge to displayorigLoc - location of the origin nodedestLoc - location of the destination nodepublic ArrowEdgeRenderer.ArrowHeadLocation getArrowheadLocation()
public int getArrowheadSize()
public int getOffset()
public boolean pickEdge(java.lang.Object edge,
java.awt.Point pickPoint,
java.awt.Point origLoc,
java.awt.Point destLoc)
pickEdge in interface EdgeRendererpickEdge in class SimpleEdgeRendereredge - the node to check for pickingpickPoint - the coordinate of the point to checkorigLoc - location of the origin nodedestLoc - location of the destination nodepublic void setArrowheadLocation(ArrowEdgeRenderer.ArrowHeadLocation loc)
loc - the arrowhead locationpublic void setArrowheadSize(int size)
size - the size of the arrowhead, in pixelspublic void setOffset(int pixelOffset)
pixelOffset - the offset, in pixels