public class DefaultNodeRenderer extends DefaultVertexRenderer<Node>
DefaultVertexRenderer
and the excess of a node is drawn at the attachment point of a node.background, circle, edgeStroke, edgeWidth, font, foreground, xCenter, yCenter
Constructor and Description |
---|
DefaultNodeRenderer()
Creates a new renderer.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
Node o)
Renders the object to the graphics context.
|
void |
setAttachmentPoint(int x,
int y)
Sets the attachment point of the vertex.
|
setBackground, setDiameter, setEdgeWidth, setFont, setForeground, setPositionCenter, setPositionLeftTop
public DefaultNodeRenderer()
public void setAttachmentPoint(int x, int y)
VertexRenderer
setAttachmentPoint
in interface VertexRenderer<Node>
setAttachmentPoint
in class DefaultVertexRenderer<Node>
x
- the x position of the attachment pointy
- the y position of the attachment point