suvi.api.render
Interface GraphRenderPolicy


public interface GraphRenderPolicy

Handles the rendering of the individual parts of a graph.

Design rationale

This interface separates the core functionality of graph layout algorithms from the exact visual presentation and rendering of graphs. The client implements this interface to specify the exact presentation of graphs. Among other things, this interface allows the client to:

Note: The methods implementing this interface may freely modify the Rectangle- and BSpline-objects passed to the methods.


Method Summary
 void renderEdge(java.lang.Object edge, BSpline spline)
          Renders the edge according to the B-spline curve.
 void renderLabel(java.lang.Object label, java.awt.Rectangle box)
          Renders the label to the specified box.
 void renderNode(java.lang.Object node, java.awt.Rectangle box)
          Renders the node to the specified box.
 

Method Detail

renderNode

public void renderNode(java.lang.Object node,
                       java.awt.Rectangle box)

Renders the node to the specified box.


renderEdge

public void renderEdge(java.lang.Object edge,
                       BSpline spline)

Renders the edge according to the B-spline curve.


renderLabel

public void renderLabel(java.lang.Object label,
                        java.awt.Rectangle box)

Renders the label to the specified box.