This item is used to configure polygonal graphical objects. A more detailed definition is done in the sub-elements.
Note:
This figure is derived from figureContainer and inherits its properties.
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
figure | required | com.mind8.graph2d.figure.container.Polygon |
Allowed sub-elements | Quantity |
---|---|
configuration | 0 or 1 |
properties | 0 or 1 |
property id="?" | Values for read/write | Description |
---|---|---|
bendpointsCount | Initial number of bendpoints for a polygon. | |
bendpointsModifiable | true, false | Specifies, if the number of bendpoints can be modified. true = additional bendpoints possible true = number of bendpoints is fixed |
Note:
Follow the sequence:
Within <figureBase>, <figureContainer>, <figureEllipse>, <figureImage>, <figureLabel> and <figurePolygon> first configure <configuration> and then <properties>.
Example of the definition of the safety circuit as hexagonal polygon with a given size of 250 x 250 pixels, which is variable in size:
<node id="SafetyCircuit"
super="Component"
valid="=isInstanceEO() and
isInstanceOf('BodyShellWork_Architecture.LevelComponents.SafetyCircuit')"
acceptedChildren="Function LabelAsSlave">
<figurePolygon figure="com.mind8.graph2d.figure.container.Polygon">
<properties>
<property id="showLabel">
<read value="true"/>
</property>
<property id="boColor">
<read value="62,12,144"/>
</property>
<property id="transparency">
<read value="80"/>
</property>
<property id="bColor">
<read value="255,255,255"/>
</property>
<property id="boWidth">
<read value="4"/>
</property>
<property id="prefWidth">
<read value="250"/>
</property>
<property id="prefHeight">
<read value="250"/>
</property>
<property id="bendpointsCount">
<read value="6"/>
</property>
<property id="bendpointsModifiable">
<read value="true"/>
</property>
</properties>
</figurePolygon>
<property id="text">
<read value="=$Designation"/>
<write key="value" receiver="=getParameter('Designation')"/>
</property>
</node>
Result:
The safety circuit is first inserted with a size of 250 x 250 pixels in the diagram. The size and shape of the ellipse can be changed by dragging the handles.
A planning diagram should represent a safety circuit as a dash-dot line.
<node id="SafetyCircuit"
super="Component"
valid="=isInstanceEO() and
isInstanceOf('BodyShellWork_Architecture.LevelComponents.SafetyCircuit')"
acceptedChildren="Function LabelAsSlave">
<figurePolygon figure="com.mind8.graph2d.figure.container.Polygon">
<properties>
<property id="boLineStyle">
<read value="4"/>
</property>
<property id="boColor">
<read value="62,12,144"/>
</property>
</properties>
</figurePolygon>
</node>
Result: