public class TextualGraphComponentDrawer extends BasicGraphComponentDrawer
Constructor and Description |
---|
TextualGraphComponentDrawer() |
Modifier and Type | Method and Description |
---|---|
protected int |
arrowDistanceFromEnd() |
java.awt.Shape |
drawNode(Node node,
Position position,
java.awt.Graphics g,
java.awt.Color background,
Shape shape)
Draw the given node at the given position, with the given Graphics object.
|
double |
horizontalBorder()
The horizontal border needed by the drawn nodes.
|
double |
verticalBorder()
The vertical border needed by the drawn nodes.
|
drawEdge
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGraphComponentDrawer
public java.awt.Shape drawNode(Node node, Position position, java.awt.Graphics g, java.awt.Color background, Shape shape)
GraphComponentDrawer
drawNode
in interface GraphComponentDrawer
drawNode
in class BasicGraphComponentDrawer
node
- The node to draw.position
- The screen position at which to draw the node.g
- The Graphics object to draw the node with.background
- The background color to draw the node with.shape
- The shape to draw the node as.public double horizontalBorder()
GraphComponentDrawer
horizontalBorder
in interface GraphComponentDrawer
horizontalBorder
in class BasicGraphComponentDrawer
protected int arrowDistanceFromEnd()
arrowDistanceFromEnd
in class BasicGraphComponentDrawer
public double verticalBorder()
GraphComponentDrawer
verticalBorder
in interface GraphComponentDrawer
verticalBorder
in class BasicGraphComponentDrawer