suvi.api.adt.layout
Interface GraphLayout

All Superinterfaces:
EdgeLabelConstants

public interface GraphLayout
extends EdgeLabelConstants

Abstract representation of a computed layout.

To use the information, traverse the original graph and query the computed layout information from the layout object.

Note: Mutation of Dimension-, Rectangle- and BSpline-objects returned by the methods of this interface must have no effect on the internal state of the implementing class.


Field Summary
 
Fields inherited from interface suvi.api.alg.attr.EdgeLabelConstants
EL_CENTER_LABEL, EL_HEAD_LABEL, EL_MAX_LABEL, EL_MIN_LABEL, EL_TAIL_LABEL
 
Method Summary
 GraphLayoutAttrMap attrMap()
          The layout attributes.
 BSpline edgeBSpline(java.lang.Object edge)
          B-spline presentation of the edge.
 java.awt.Dimension extent()
          Extent of the bounding box of the graph.
 javautils.graph.adt.Graph graph()
          The associated graph.
 java.awt.Rectangle labelBox(java.lang.Object edge, int label)
          The bounding box of the label.
 java.awt.Rectangle nodeBox(java.lang.Object node)
          The bounding box of the node.
 

Method Detail

extent

public java.awt.Dimension extent()

Extent of the bounding box of the graph.


nodeBox

public java.awt.Rectangle nodeBox(java.lang.Object node)

The bounding box of the node.


labelBox

public java.awt.Rectangle labelBox(java.lang.Object edge,
                                   int label)

The bounding box of the label.


edgeBSpline

public BSpline edgeBSpline(java.lang.Object edge)

B-spline presentation of the edge.


graph

public javautils.graph.adt.Graph graph()

The associated graph.


attrMap

public GraphLayoutAttrMap attrMap()

The layout attributes.