T
- the type of the edge to renderpublic interface EdgeRenderer<T extends Edge> extends Renderer<T>
DefaultEdgeRenderer
Modifier and Type | Method and Description |
---|---|
void |
setArrowLength(int length)
Sets the length of the arrow peak.
|
void |
setControlPosition(int x,
int y)
Sets the position of the control point of the edge.
|
void |
setDrawArrow(boolean drawArrow)
Sets a flag that indicates if the arrow should be drawn are not.
|
void |
setFirstPosition(int x1,
int y1)
Sets the position of the first point of the edge.
|
void |
setLabelPosition(int x,
int y)
Sets the position of the edge label.
|
void |
setLineWidth(int width)
Sets the line width of the edge.
|
void |
setSecondPosition(int x2,
int y2)
Sets the position of the second point of the edge.
|
void |
setSpline(CatmullRomSpline s)
Sets the spline that represents the edge visually.
|
draw, setBackground, setFont, setForeground
void setFirstPosition(int x1, int y1)
x1
- the x positiony1
- the y positionvoid setSecondPosition(int x2, int y2)
x2
- the x positiony2
- the y positionvoid setControlPosition(int x, int y)
x
- the x positiony
- the y positionvoid setDrawArrow(boolean drawArrow)
drawArrow
- true
if the arrow of the edge should be drawn otherwise false
void setLineWidth(int width)
width
- the line widthvoid setSpline(CatmullRomSpline s)
s
- the splineCatmullRomSpline
void setArrowLength(int length)
length
- the lengthvoid setLabelPosition(int x, int y)
x
- the x positiony
- the y position