umbrello API Documentation

autolayouter.h

00001 /***************************************************************************
00002  *  copyright (C) 2005
00003  *  Umbrello UML Modeller Authors <uml-devel @uml.sf.net>
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef AUTOLAYOUTAUTOLAYOUTER_H
00013 #define AUTOLAYOUTAUTOLAYOUTER_H
00014 #include "baseinclude.h"
00015 
00016 namespace Autolayout {
00017 
00024 class Autolayouter {
00025 public:
00026     virtual ~Autolayouter() {}
00027 
00028     virtual void setNoteConnectionWeight(int i)=0;
00029     virtual void setNoteConnectionsAsEdges(bool b)=0;
00030     virtual void setAssociationWeight(int i)=0;
00031 
00032     virtual void setDependenciesWeight(int i)=0;
00033 
00034     virtual void setGeneralizationWeight(int i)=0;
00035 
00036     virtual void setGeneralizationAsEdges(bool b)=0;
00037 
00038     virtual void setDependenciesAsEdges(bool b)=0;
00039 
00040     virtual void setAssociationAsEdges(bool b)=0;
00041 
00042     virtual void setCompressShapes(bool b)=0;
00043 
00044     virtual void setCenterDiagram(bool b)=0;
00045 
00046     virtual void setClusterizeHierarchies(bool b)=0;
00047 
00048     virtual void setShapeSeparation(int i)=0;
00049 
00050     virtual void autolayout(UMLView* v);
00051 protected:
00052     virtual void run()=0;
00053     virtual void updateView(UMLView*)=0;
00054     virtual Autolayout::Canvas* getCanvas()=0;
00055     virtual Autolayout::Graph* getGraph()=0;
00056     virtual Autolayout::Graph* setGraph(UMLView* view)=0;
00057     virtual Autolayout::Canvas* setCanvas(UMLView* view)=0;
00058 
00059 
00060 };
00061 
00062 }
00063 
00064 #endif
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:54 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003