Browse Source

Add MM_rendered_graphical (untested)

Yentl Van Tendeloo 8 years ago
parent
commit
bc5cf2855f
1 changed files with 59 additions and 0 deletions
  1. 59 0
      models/MM_rendered_graphical.mvc

+ 59 - 0
models/MM_rendered_graphical.mvc

@@ -0,0 +1,59 @@
+include "primitives.alh"
+
+SimpleClassDiagram MM_rendered_graphical{
+    SimpleAttribute Natural {}
+    SimpleAttribute String {}
+
+    Class Element {
+        x : Natural
+        y : Natural
+    }
+
+    Class Group : Element {
+    }
+
+    Class LineElement : Element {
+        lineWidth : Natural
+        lineColour : String
+    }
+
+    Class Text : LineElement {
+        text : String
+    }
+
+    Class Line : LineElement {
+        targetX : Natural
+        targetY : Natural
+    }
+
+    Class Shape : LineElement {
+        fillColour : String
+        width : Natural
+        height : Natural
+    }
+
+    Class Figure : Element {
+        width : Natural
+        height : Natural
+    }
+
+    Class SVG {
+        data : String
+    }
+
+    Class Rectangle : Shape {
+    }
+
+    Class Ellipse : Shape {
+    }
+
+    Class Polygon : Shape {
+    }
+
+    Association contains (Group, Element) {}
+    Association renders (Figure, SVG) {
+        source_lower_cardinality = 1
+        target_lower_cardinality = 1
+        target_upper_cardinality = 1
+    }
+}