umbrello API Documentation

graphvizautolayouter.cpp

00001 /*
00002  *  copyright (C) 2005
00003  *  Umbrello UML Modeller Authors <uml-devel @uml.sf.net>
00004  */
00005 
00006 /***************************************************************************
00007  *                                                                         *
00008  *   This program is free software; you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU General Public License as published by  *
00010  *   the Free Software Foundation; either version 2 of the License, or     *
00011  *   (at your option) any later version.                                   *
00012  *                                                                         *
00013  ***************************************************************************/
00014 #include "graphvizautolayouter.h"
00015 
00016 #include <graphviz/graph.h>
00017 
00018 namespace Autolayout {
00019 
00020 GraphvizAutolayouter::GraphvizAutolayouter()
00021         : Autolayout::AutolayouterAdapter()
00022 {
00023     gg = new GraphvizGraph();
00024 }
00025 
00026 GraphvizAutolayouter::~GraphvizAutolayouter()
00027 {
00028     agclose(gg->_agraph);
00029     delete gg;
00030 }
00031 
00032 void GraphvizAutolayouter::setCompressShapes( bool b )
00033 {
00034     gg->setCompressShapes(b);
00035 }
00036 
00037 void GraphvizAutolayouter::setCenterDiagram( bool b )
00038 {
00039     gg->setCenterDiagram(b);
00040 }
00041 
00042 void GraphvizAutolayouter::setShapeSeparation( int i )
00043 {
00044     gg->setShapeSeparation(i);
00045 }
00046 
00047 Autolayout::Canvas * GraphvizAutolayouter::setCanvas( UMLView * view )
00048 {
00049     Canvas* canvas= AutolayouterAdapter::setCanvas(view);
00050     gg->setCanvas(canvas);
00051 }
00052 
00053 } // end namespace AutoLayout
00054 
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003