next up previous contents index
Next: Grid Layout Infos for Up: Grid Layouts Previous: GLI's for Graph Copies   Contents   Index


Grid Layouts for Cluster Graphs ( CGGridLayout )

Baseclasses


\begin{picture}(7,2.5)
\thicklines
\put(0,1.5){\framebox (6,1){\bf GridLayout}...
...\vector(0,-1){1}}\put(1,0){\framebox (6.5,1){\bf CGGridLayout}}
\end{picture}

Definition

A cluster graph grid layout cggl extends its base class GridLayout by functions to store the additional coordinates for the position of the cluster regions.

#include < AGD/CGGridLayout.h >

Creation

CGGridLayout cggl creates an instance cggl of type CGGridLayout initialized to the empty layout with no associated graph.

CGGridLayout cggl(const ClusterGraph& GC)
    creates an instance cggl of type CGGridLayout initialized to a grid layout for cluster graph CG. Initially, all x- and y-coordinates are 0, all nodes have width and height 0, and all bend point lists are empty.

Operations

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

const int& cggl.x(Cluster* cl) returns a reference to the x-coordinate of cluster cl.

const int& cggl.y(Cluster* cl) returns a reference to the y-coordinate of cluster cl.

const int& cggl.width(Cluster* cl) returns a reference to the width of cluster cl.

const int& cggl.height(Cluster* cl) returns a reference to the height of cluster cl.

void cggl.x(Cluster* cl, int x)
    sets the x-coordinate of cluster cl to x.

void cggl.y(Cluster* cl, int y)
    sets the y-coordinate of cluster cl to y.

void cggl.width(Cluster* cl, int width)
    sets the height of cluster cl to height.

void cggl.height(Cluster* cl, int height)
    sets the width of cluster cl to width.


next up previous contents index
Next: Grid Layout Infos for Up: Grid Layouts Previous: GLI's for Graph Copies   Contents   Index

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