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