MM_rendered_graphical.mvc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. include "primitives.alh"
  2. SimpleClassDiagram MM_rendered_graphical{
  3. SimpleAttribute Natural {}
  4. SimpleAttribute String {}
  5. Class Element {
  6. x : Natural
  7. y : Natural
  8. }
  9. Class Group : Element {
  10. }
  11. Class LineElement : Element {
  12. lineWidth : Natural
  13. lineColour : String
  14. }
  15. Class Text : LineElement {
  16. text : String
  17. }
  18. Class Line : LineElement {
  19. targetX : Natural
  20. targetY : Natural
  21. }
  22. Class Shape : LineElement {
  23. fillColour : String
  24. width : Natural
  25. height : Natural
  26. }
  27. Class Figure : Element {
  28. width : Natural
  29. height : Natural
  30. }
  31. Class SVG {
  32. data : String
  33. }
  34. Class Rectangle : Shape {
  35. }
  36. Class Ellipse : Shape {
  37. }
  38. Class Polygon : Shape {
  39. }
  40. Association contains (Group, Element) {}
  41. Association renders (Figure, SVG) {
  42. source_lower_cardinality = 1
  43. target_lower_cardinality = 1
  44. target_upper_cardinality = 1
  45. }
  46. }