umbrello API Documentation

autolayouteradapter.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 AUTOLAYOUTAUTOLAYOUTERADAPTER_H
00013 #define AUTOLAYOUTAUTOLAYOUTERADAPTER_H
00014 //#include "autolayout.h"
00015 #include "baseinclude.h"
00016 #include "autolayouter.h"
00017 #include "../umlnamespace.h"
00018 
00019 
00020 namespace Autolayout
00021 {
00022 
00026 class AutolayouterAdapter : virtual public Autolayout::Autolayouter
00027 {
00028 public:
00029     AutolayouterAdapter();
00030 
00031     virtual ~AutolayouterAdapter();
00032     virtual void setAssociationWeight(int i);
00033 
00034     virtual void setDependenciesWeight(int i);
00035 
00036     virtual void setGeneralizationWeight(int i);
00037 
00038     virtual void setGeneralizationAsEdges(bool b);
00039 
00040     virtual void setDependenciesAsEdges(bool b);
00041 
00042     virtual void setAssociationAsEdges(bool b);
00043 
00044     virtual void setCompressShapes(bool b);
00045 
00046     virtual void setCenterDiagram(bool b);
00047 
00048     virtual void setClusterizeHierarchies(bool b);
00049 
00050     virtual void setShapeSeparation(int i);
00051     virtual void setNoteConnectionsAsEdges(bool b);
00052     virtual void setNoteConnectionWeight(int i);
00053 
00054 
00055 protected:
00056     virtual void run()=0;
00057     virtual void updateView(UMLView* view);
00058     virtual Canvas* getCanvas(){return canvas;};
00059     virtual Graph* getGraph()=0;
00060     virtual Graph* setGraph(UMLView* view);
00061     virtual void addRelationship(AssociationWidget* a);
00062     virtual Canvas* setCanvas(UMLView* view);
00063 
00064     int associationWeight;
00065     int dependenciesWeight;
00066     int generalizationWeight;
00067     bool genralizationAsEdges;
00068     bool dependenciesAsEdges;
00069     bool associationAsEdges;
00070     bool compressShapes;
00071     bool centerDiagram;
00072     bool clusterizeHierarchies;
00073     int shapeSeparation;
00074     int noteConnectionWeight;
00075     bool noteConnectionAsEdges;
00076     bool anchorsAsEdges;
00077     int  anchorsWeight;
00078     Canvas* canvas;
00079 private:
00080     //Graph* graph;
00081 
00082 
00083 };
00084 
00085 }
00086 
00087 #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