T
- the type of the vertex to renderpublic interface VertexRenderer<T extends Vertex> extends Renderer<T>
GraphView
.
VertexRenderer
.DefaultVertexRenderer
Modifier and Type | Method and Description |
---|---|
void |
setAttachmentPoint(int x,
int y)
Sets the attachment point of the vertex.
|
void |
setDiameter(int d)
Sets the diameter of the vertex.
|
void |
setEdgeWidth(int w)
Sets the line width of the edge of the vertex.
|
void |
setPositionCenter(int x,
int y)
Sets the center position of the vertex.
|
void |
setPositionLeftTop(int x,
int y)
Sets the left top position of the vertex.
|
draw, setBackground, setFont, setForeground
void setPositionLeftTop(int x, int y)
x
- the x positiony
- the y positionvoid setPositionCenter(int x, int y)
x
- the x positiony
- the y positionvoid setDiameter(int d)
d
- the diametervoid setEdgeWidth(int w)
w
- the line widthvoid setAttachmentPoint(int x, int y)
x
- the x position of the attachment pointy
- the y position of the attachment point