MM_render.mvc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. Association ConnectingLine (Group, Group) {
  13. offsetSourceX : Natural
  14. offsetSourceY : Natural
  15. offsetTargetX : Natural
  16. offsetTargetY : Natural
  17. lineWidth : Natural
  18. lineColour : String
  19. arrow : Boolean
  20. }
  21. Class LineElement : GraphicalElement {
  22. lineWidth : Natural
  23. lineColour : String
  24. }
  25. Class Text : LineElement {
  26. text : String
  27. }
  28. Class Line : LineElement {
  29. targetX : Natural
  30. targetY : Natural
  31. arrow : Boolean
  32. }
  33. Class Shape : LineElement {
  34. fillColour : String
  35. width : Natural
  36. height : Natural
  37. }
  38. Class Figure : GraphicalElement {
  39. width : Natural
  40. height : Natural
  41. }
  42. Class SVG {
  43. data : String
  44. }
  45. Class Rectangle : Shape {
  46. }
  47. Class Ellipse : Shape {
  48. }
  49. Association contains (Group, GraphicalElement) {}
  50. Association renders (Figure, SVG) {
  51. source_lower_cardinality = 1
  52. target_lower_cardinality = 1
  53. target_upper_cardinality = 1
  54. }