next up previous contents index
Next: Layout Algorithms Up: Base Classes Previous: Layout Interfaces ( LayoutInterface   Contents   Index


Layout Interfaces for Cluster Graphs ( CGLayoutInterface )

Baseclasses


\begin{picture}(7,2.5)
\thicklines
\put(0,1.5){\framebox (6,1){\bf LayoutInter...
...or(0,-1){1}}\put(1,0){\framebox (6.5,1){\bf CGLayoutInterface}}
\end{picture}

Definition

The class CGLayoutInterface extends its base class LayoutInterface by functionality for cluster graphs. Our graphical model for cluster graphs contains the following additional attribute:

#include < AGD/CGLayoutInterface.h >

Initialization

CGLayoutInterface A(const ClusterGraph& CG) initializes a layout interface for cluster graph CG.

Operations

const ClusterGraph& A.get_graph() returns the associated cluster graph.

void A.set_cluster_region(Cluster* cl, double x, double y, double width, double height)
    sets the region of cluster cl to the rectangular polygon with lower left corner (x, y) and upper right corner (x + width, y + height).

void A.set_graph(const ClusterGraph& CG)
    protected method for setting the associated cluster graph to CG.


next up previous contents index
Next: Layout Algorithms Up: Base Classes Previous: Layout Interfaces ( LayoutInterface   Contents   Index

© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13