autolayouteradapter.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef AUTOLAYOUTAUTOLAYOUTERADAPTER_H
00013 #define AUTOLAYOUTAUTOLAYOUTERADAPTER_H
00014
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
00081
00082
00083 };
00084
00085 }
00086
00087 #endif
This file is part of the documentation for umbrello Version 3.1.0.