anl.aida.viz
Class AbstractCircleNodeStyler
java.lang.Object
anl.aida.viz.AbstractCircleNodeStyler
- All Implemented Interfaces:
- NodeStyler
- Direct Known Subclasses:
- DefaultNodeStyler, ScaledNodeStyler
public abstract class AbstractCircleNodeStyler
- extends java.lang.Object
- implements NodeStyler
Date: Mar 11, 2009 2:15:59 PM
Method Summary |
edu.umd.cs.piccolo.nodes.PPath |
createNode(TermNode tNode,
java.awt.geom.Point2D location)
Creates a PPath to represent the specified TermNode. |
java.awt.Paint |
getPaint(TermNode node)
Gets the paint appropriate for the specified term node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_NODE_SIZE
protected static final int BASE_NODE_SIZE
- See Also:
- Constant Field Values
nodePaint
private java.awt.Paint nodePaint
textPaint
private java.awt.Paint textPaint
font
private java.awt.Font font
AbstractCircleNodeStyler
public AbstractCircleNodeStyler(java.awt.Paint nodePaint,
java.awt.Paint textPaint)
createNode
public edu.umd.cs.piccolo.nodes.PPath createNode(TermNode tNode,
java.awt.geom.Point2D location)
- Creates a PPath to represent the specified TermNode.
- Specified by:
createNode
in interface NodeStyler
- Parameters:
tNode
- the term node to reprsent.location
- the location of the
- Returns:
- a PNode to represent the specified TermNode.
getPaint
public java.awt.Paint getPaint(TermNode node)
- Gets the paint appropriate for the specified term node.
- Specified by:
getPaint
in interface NodeStyler
- Parameters:
node
- the term node we want the paint for
- Returns:
- the paint appropriate for the specified term node.