anl.aida.viz
Class AbstractCircleNodeStyler

java.lang.Object
  extended by 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


Field Summary
protected static int BASE_NODE_SIZE
           
private  java.awt.Font font
           
private  java.awt.Paint nodePaint
           
private  java.awt.Paint textPaint
           
 
Constructor Summary
AbstractCircleNodeStyler(java.awt.Paint nodePaint, java.awt.Paint textPaint)
           
 
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
 
Methods inherited from interface anl.aida.viz.NodeStyler
getSize
 

Field Detail

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
Constructor Detail

AbstractCircleNodeStyler

public AbstractCircleNodeStyler(java.awt.Paint nodePaint,
                                java.awt.Paint textPaint)
Method Detail

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.