File tree Expand file tree Collapse file tree 1 file changed +48
-10
lines changed
Expand file tree Collapse file tree 1 file changed +48
-10
lines changed Original file line number Diff line number Diff line change 33class Graph {
44 Node[] nodes;
55 Edge[] edges;
6- Property property;
6+ GraphProperty property;
77}
88
99class Node {
@@ -24,26 +24,64 @@ class Point {
2424 int y;
2525}
2626
27+ Position --|> Point
28+
2729class Geometry {
28- String stroke;
29- Int fillWith;
30- String fillStroke;
31- String fillOpacity;
32- String scale;
30+ int size;
31+ Position position;
3332}
3433
34+ Geometry::position --> Position
35+
3536Graph --> Node
3637Graph --> Edge
3738Node --> Shape
38- Edge --> Point
3939Node --> Geometry
4040
4141interface Shape {
4242 String type;
4343}
4444
45- Shape o- Rectangle
46- Shape o- Circle
47- Shape o- Ellipse
45+ Shape <|-- Rectangle
46+ Shape <|-- Hexagon
47+ Shape <|-- Circle
48+ Shape <|-- Ellipse
49+
50+ interface Property {
51+ String stroke;
52+ Int fillWith;
53+ String fillStroke;
54+ String fillOpacity;
55+ String scale;
56+ }
57+
58+ GraphProperty --|> Property
59+ NodeProperty --|> Property
60+
61+
62+ interface Layout {
63+ String name;
64+ }
65+
66+ Layout <|-- Dagre
67+ Layout <|-- CoSE
68+ Layout <|-- Circle
69+
70+
71+ Edge <|-- Arrow
72+ Edge <|-- Connector
73+ Edge <|-- Polyline
74+
75+
76+ 'class LayoutOptions {}
77+ '
78+ 'interface Renderer {
79+ ' String name;
80+ ' LayoutOptions layoutOptions;
81+ '
82+ ' + void configure(Graph graph);
83+ '}
84+ '
85+
4886
4987@enduml
You can’t perform that action at this time.
0 commit comments