anl.aida.viz
Interface NodeStyler

All Known Implementing Classes:
AbstractCircleNodeStyler, DefaultNodeStyler, ScaledNodeStyler

public interface NodeStyler

Interface for classes that can style a node.


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.
 float getSize(TermNode node)
          Gets the size appropriate for the specified term node.
 

Method Detail

createNode

edu.umd.cs.piccolo.nodes.PPath createNode(TermNode tNode,
                                          java.awt.geom.Point2D location)
Creates a PPath to represent the specified TermNode.

Parameters:
tNode - the term node to reprsent.
location - the location of the
Returns:
a PNode to represent the specified TermNode.

getPaint

java.awt.Paint getPaint(TermNode node)
Gets the paint appropriate for the specified term node.

Parameters:
node - the term node we want the paint for
Returns:
the paint appropriate for the specified term node.

getSize

float getSize(TermNode node)
Gets the size appropriate for the specified term node.

Parameters:
node - the node to get the size for
Returns:
the size appropriate for the specified term node.