java.lang.Object
com.port80.graph.impl.DirectedGraphRenderer
- All Implemented Interfaces:
- com.port80.graph.IGraphRenderer
- public class DirectedGraphRenderer
- extends java.lang.Object
- implements com.port80.graph.IGraphRenderer
Render directed graph.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
fDirty
private boolean fDirty
fScale
private double fScale
fScaleStr
private java.lang.String fScaleStr
DirectedGraphRenderer
public DirectedGraphRenderer()
- Constructor for GraphPanel.
updateShape
public java.awt.Shape updateShape(java.awt.Graphics2D g2d,
com.port80.graph.IVertex v)
- Calculate the geometry of an IVertex and update its -shape attribute.
- Specified by:
updateShape in interface com.port80.graph.IGraphRenderer
updateShape
public void updateShape(java.awt.Graphics2D g2d,
com.port80.graph.IGraph graph)
- Calculate the geometry of all vertices in a graph.
- Specified by:
updateShape in interface com.port80.graph.IGraphRenderer
setScale
public void setScale(double d)
- Specified by:
setScale in interface com.port80.graph.IGraphRenderer
render
public void render(java.awt.Graphics2D g2d,
com.port80.graph.IVertex v)
- Specified by:
render in interface com.port80.graph.IGraphRenderer
renderBus
public void renderBus(java.awt.Graphics2D g2d,
com.port80.graph.IVertex v)
render
public void render(java.awt.Graphics2D g2d,
com.port80.graph.IEdge e)
- Specified by:
render in interface com.port80.graph.IGraphRenderer
render
public void render(java.awt.Graphics2D g2d,
com.port80.graph.IGraph g)
- Specified by:
render in interface com.port80.graph.IGraphRenderer
updateFont
private java.awt.Font updateFont(com.port80.util.attr.IAttrTable table)
updateStroke
private com.port80.graph.IGraphStroke updateStroke(com.port80.util.attr.IAttrTable table,
java.lang.String attrname,
boolean bold)
updateLabelBounds
private java.awt.geom.Rectangle2D updateLabelBounds(java.awt.Graphics2D g2d,
com.port80.graph.IEdge e)