anl.aida.viz
Interface EdgeStyler

All Known Implementing Classes:
AbstractEdgeStyler, GrayScaleEdgeStyler

public interface EdgeStyler

Interface for classes that style edges.


Method Summary
 edu.umd.cs.piccolo.nodes.PPath createEdge(CGEdge edge, java.awt.geom.Point2D pt1, java.awt.geom.Point2D pt2)
          Creates a PPath to represent the specified edge.
 java.awt.Paint getPaint(CGEdge edge)
          Gets the paint appropriate for the specified edge.
 void update(java.util.Collection<CGEdge> edges)
          Updates the styler with new edge info.
 

Method Detail

createEdge

edu.umd.cs.piccolo.nodes.PPath createEdge(CGEdge edge,
                                          java.awt.geom.Point2D pt1,
                                          java.awt.geom.Point2D pt2)
Creates a PPath to represent the specified edge.

Parameters:
edge - the edge to reprsent.
pt1 - the first end point of the edge
pt2 - the second end point of the edge
Returns:
a PPath representing the specified edge.

update

void update(java.util.Collection<CGEdge> edges)
Updates the styler with new edge info. This can be used to recalculate min, max etc. when a graph has changed.

Parameters:
edges -

getPaint

java.awt.Paint getPaint(CGEdge edge)
Gets the paint appropriate for the specified edge.

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