|
@@ -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
|
|
|
+ }
|
|
|
+}
|