MM_render.mvc 906 B

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