MM_render.mvc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. include "primitives.alh"
  2. SimpleAttribute Natural {}
  3. SimpleAttribute String {}
  4. SimpleAttribute Boolean {}
  5. Class GraphicalElement {
  6. x : Natural
  7. y : Natural
  8. layer : Natural
  9. }
  10. Class Group : GraphicalElement {
  11. __asid : String
  12. dirty : Boolean
  13. }
  14. Association ConnectingLine (Group, Group) {
  15. offsetSourceX : Natural
  16. offsetSourceY : Natural
  17. offsetTargetX : Natural
  18. offsetTargetY : Natural
  19. lineWidth : Natural
  20. lineColour : String
  21. arrow : Boolean
  22. __asid : String
  23. dirty : Boolean
  24. layer : Natural
  25. }
  26. Class LineElement : GraphicalElement {
  27. lineWidth : Natural
  28. lineColour : String
  29. }
  30. Class Text : LineElement {
  31. text : String
  32. }
  33. Class Line : LineElement {
  34. targetX : Natural
  35. targetY : Natural
  36. arrow : Boolean
  37. }
  38. Class Shape : LineElement {
  39. fillColour : String
  40. width : Natural
  41. height : Natural
  42. }
  43. Class Figure : GraphicalElement {
  44. width : Natural
  45. height : Natural
  46. }
  47. Class SVG {
  48. data : String
  49. }
  50. Class Rectangle : Shape {
  51. }
  52. Class Ellipse : Shape {
  53. }
  54. Association contains (Group, GraphicalElement) {}
  55. Association renders (Figure, SVG) {
  56. source_lower_cardinality = 1
  57. target_lower_cardinality = 1
  58. target_upper_cardinality = 1
  59. }