]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.ontology/graph/DiagramElements.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramElements.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>\r
2 L0X = <http://www.simantics.org/Layer0X-1.1>\r
3 G2D = <http://www.simantics.org/G2D-1.1>\r
4 DIA = <http://www.simantics.org/Diagram-2.2>\r
5 \r
6 // SHAPE ELEMENT (NOT USED, DEPRECATE?)\r
7 \r
8 DIA.Shape <T DIA.Element <T G2D.Shape\r
9 \r
10 //// RASTER ELEMENT\r
11 \r
12 DIA.RasterElement <T DIA.Element\r
13     @L0.singleProperty G2D.HasSVGDocument\r
14 \r
15 //// SVG ELEMENT\r
16 \r
17 DIA.SVGElement <T DIA.Element\r
18     @L0.singleProperty G2D.HasSVGDocument\r
19 \r
20 //// ANIMATED SVG ELEMENT\r
21 \r
22 DIA.AnimatedSVGElement <T DIA.Element\r
23     @L0.singleProperty G2D.HasSVGDocument\r
24     @L0.singleProperty G2D.HasSVGScript\r
25 \r
26 //// TEXT ELEMENT\r
27 \r
28 DIA.TextElement <T DIA.Element <T DIA.ColorProvider <T DIA.FontProvider\r
29     @L0.singleProperty DIA.HasText\r
30     @L0.optionalProperty DIA.FixedWidth\r
31     @L0.optionalProperty DIA.TextFieldName\r
32     @L0.singleProperty G2D.HasHorizontalAlignment\r
33     @L0.singleProperty G2D.HasVerticalAlignment\r
34     @L0.singleProperty G2D.HasStrokeWidth\r
35     @L0.assert DIA.TextFieldName ""\r
36     @L0.assert G2D.HasHorizontalAlignment G2D.Alignment.Leading\r
37     @L0.assert G2D.HasVerticalAlignment G2D.Alignment.Baseline\r
38     @L0.assert G2D.HasStrokeWidth\r
39         0 : L0.Float\r
40 \r
41 DIA.HasText <R L0.HasProperty : L0.FunctionalRelation\r
42     L0.HasLabel "Text"\r
43     --> L0.String\r
44 DIA.FixedWidth <R L0.HasProperty : L0.FunctionalRelation\r
45     L0.HasLabel "Fixed Width"\r
46     --> L0.Double\r
47 DIA.TextFieldName <R L0.HasProperty : L0.FunctionalRelation \r
48     L0.HasLabel "Text Field Name"\r
49     L0.HasDescription "A name used for identifying fields in PDF outputs."\r
50     --> L0.String\r
51 \r
52 //// LINK\r
53 \r
54 DIA.Link <T DIA.SVGElement\r
55     L0.HasDescription "Links are used on diagrams for navigating to other diagrams."\r
56 \r
57 DIA.HasLinkTarget <R L0.IsRelatedTo\r
58     L0.HasDomain DIA.Link\r
59 \r
60 DIA.UpwardLink <T DIA.SVGElement\r
61     L0.HasDescription "This link navigates upward the structural path."\r
62 \r
63 //// MONITOR\r
64 \r
65 DIA.Monitor <T DIA.Element\r
66     L0.HasDescription "Monitors display data from various sources e.g. model configuration or simulation state."\r
67     >-- DIA.Monitor.gain --> L0.Double <R L0.HasProperty : L0.FunctionalRelation\r
68         L0.HasLabel "Gain"\r
69     >-- DIA.Monitor.bias --> L0.Double <R L0.HasProperty : L0.FunctionalRelation\r
70         L0.HasLabel "Bias"\r
71     @L0.optionalProperty L0.HasLabel\r
72     @L0.optionalProperty DIA.HasDirection\r
73     @L0.optionalProperty DIA.HasFormat\r
74     @L0.optionalProperty G2D.HasHorizontalAlignment\r
75     @L0.optionalProperty G2D.HasVerticalAlignment\r
76     @L0.optionalProperty G2D.HasFont\r
77     @L0.optionalProperty G2D.HasBounds\r
78     @L0.optionalProperty DIA.HasMonitorComponent\r
79     @L0.optionalProperty DIA.HasMonitorSuffix\r
80     @L0.optionalProperty DIA.TextFieldName\r
81     // Enable to show these properties to users once MonitorClassFactory2 gets support for gain/bias.\r
82     //@L0.assert DIA.Monitor.gain 1.0\r
83     //@L0.assert DIA.Monitor.bias 0.0\r
84     L0.Asserts _ : L0.Assertion\r
85       L0.HasPredicate DIA.HasFont\r
86       L0.HasObject _ : DIA.ObtainedFont\r
87     L0.Asserts _ : L0.Assertion\r
88       L0.HasPredicate DIA.HasColor\r
89       L0.HasObject _ : DIA.ObtainedColor\r
90     L0.Asserts _ : L0.Assertion\r
91       L0.HasPredicate DIA.HasFormatter\r
92       L0.HasObject _ : DIA.ObtainedFormatter\r
93     L0.Asserts _ : L0.Assertion\r
94       L0.HasPredicate L0X.HasExpression\r
95       L0.HasObject _ : DIA.ObtainedMonitorExpression\r
96     @L0.assert DIA.TextFieldName ""\r
97     @L0.assert DIA.FixedWidth 0.0\r
98     @L0.assert G2D.HasHorizontalAlignment G2D.Alignment.Center\r
99     @L0.assert G2D.HasVerticalAlignment G2D.Alignment.Center\r
100 \r
101 DIA.HasDirection <R L0.HasProperty\r
102     L0.HasLabel "Direction"\r
103     L0.HasDescription "An angular direction in degrees"\r
104     --> L0.Double\r
105 \r
106 DIA.SymbolMonitor <T DIA.Element\r
107     L0.HasDescription "Symbol monitors are embedded configurable monitors in symbols."\r
108 \r
109 DIA.HasMonitorComponent <R L0.IsWeaklyRelatedTo\r
110     <-- DIA.Monitor \r
111     L0.InverseOf DIA.HasMonitorComponent.Inverse <R L0.IsWeaklyRelatedTo\r
112         --> DIA.Monitor \r
113 DIA.HasMonitorSuffix <R L0.HasProperty\r
114     --> L0.String\r
115 \r
116 //// TREND\r
117 \r
118 DIA.Trend <T DIA.Element\r
119     L0.HasDescription "Trends display data from various sources e.g. model configuration or simulation state."\r
120     @L0.optionalProperty L0.HasLabel\r
121 \r
122 DIA.HasTrendTitle <R L0.HasProperty : L0.FunctionalRelation\r
123     L0.HasLabel "Title"\r
124     --> L0.String\r
125 DIA.HasXAxisLabel <R L0.HasProperty : L0.FunctionalRelation\r
126     L0.HasLabel "X-Axis Label"\r
127     --> L0.String\r
128 DIA.HasYAxisLabel <R L0.HasProperty : L0.FunctionalRelation\r
129     L0.HasLabel "Y-Axis Label"\r
130     --> L0.String\r
131 \r
132 //// SLIDER\r
133 \r
134 DIA.Slider <T DIA.Element <T DIA.ColorProvider <T DIA.FontProvider <T DIA.FormatProvider\r
135     L0.HasDescription "Sliders can be used to alter input value."\r
136     @L0.optionalProperty L0.HasLabel\r
137     @L0.optionalProperty DIA.HasDirection\r
138     @L0.optionalProperty DIA.HasFormat\r
139     @L0.optionalProperty G2D.HasBounds\r
140 \r
141 DIA.HasSliderComponent <R L0.IsRelatedTo\r
142 DIA.HasSliderSuffix <R L0.HasProperty : L0.FunctionalRelation\r
143     L0.HasLabel "Suffix" : L0.String\r
144     --> L0.String\r
145 DIA.HasSliderMinValue <R L0.HasProperty : L0.FunctionalRelation\r
146     L0.HasLabel "Min Value" : L0.String\r
147     --> L0.Double\r
148 DIA.HasSliderMaxValue <R L0.HasProperty : L0.FunctionalRelation\r
149     L0.HasLabel "Max Value" : L0.String\r
150     --> L0.Double\r
151 DIA.HasSliderMajorTickSpacing <R L0.HasProperty : L0.FunctionalRelation\r
152     L0.HasLabel "Major Tick Spacing" : L0.String\r
153     --> L0.Integer\r
154 DIA.HasSliderMinorTickSpacing <R L0.HasProperty : L0.FunctionalRelation\r
155     L0.HasLabel "Minor Tick Spacing" : L0.String\r
156     --> L0.Integer\r
157 DIA.SliderPaintLabels <R L0.HasProperty : L0.FunctionalRelation\r
158     L0.HasLabel "Paint Labels" : L0.String\r
159     --> L0.Boolean\r
160 DIA.SliderPaintTicks <R L0.HasProperty : L0.FunctionalRelation\r
161     L0.HasLabel "Paint Ticks" : L0.String\r
162     --> L0.Boolean\r
163 DIA.SliderSnapToTicks <R L0.HasProperty : L0.FunctionalRelation\r
164     L0.HasLabel "Snap To Ticks" : L0.String\r
165     --> L0.Boolean\r
166 DIA.SliderPaintTrack <R L0.HasProperty : L0.FunctionalRelation\r
167     L0.HasLabel "Paint Track" : L0.String\r
168     --> L0.Boolean\r
169 DIA.SliderInverted <R L0.HasProperty : L0.FunctionalRelation\r
170     L0.HasLabel "Inverted" : L0.String\r
171     --> L0.Boolean\r
172 DIA.HasSliderValueExtent <R L0.HasProperty : L0.FunctionalRelation\r
173     L0.HasLabel "Value Extent" : L0.String\r
174     --> L0.Integer\r