Placeholder for concrete specifications of images. Can be used as a substitute for group head. In addition to the definitions of property-id, which are listed in the table below, the definitions under figureBase also apply.
Note:
The specified properties are inherited by all other (concrete) figure definitions, which in turn can override these settings.
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
figure | com.mind8.graph2d.figure.Container |
Allowed sub-elements | Quantity |
---|---|
configuration | 0 or 1 |
properties | 0 or 1 |
property id="?" | Values for read/write | Description |
---|---|---|
cornerRadius | Radius of rounded corners in pixels | |
isStandaloneMode | true, false | true = the top node occupies the entire area of the diagram false = the top node is displayed in the predefined size |
fontBColor | 0,0,0 to 255,255,255 | Background color as RGB value of the non-selected label |
fontFColor | 0,0,0 to 255,255,255 | Text color as RGB value of the non-selected label |
fontSelectedBColor | 0,0,0 to 255,255,255 | Background color as RGB value of the selected label |
fontSelectedFColor | 0,0,0 to 255,255,255 | Text color as RGB value of the selected label |
layout | outsideEdged, insideEdged | Configures the arrangement of master and slave nodes. Currently only outsideEdged is implemented. |
showLabel | true, false | Specifies the visibility of the label true = label is displayed false = label is not displayed |
showLabelIcon | true, false | Specifies the visibility of the label icon true = label icon is displayed false = label icon is not displayed |
showLabelText | true, false | Specifies the visibility of the label text true = label text is displayed false = label text is not displayed |
showScrollBars | true, false | Defines whether scrollbars are displayed for the graphical object true = scrollbars are displayed false = scrollbars are not display |
text | Text or formula, which determines a text, which is to be displayed in the label |
Note:
Follow the sequence:
Within <figureBase>, <figureContainer>, <figureEllipse>, <figureImage>, <figureLabel> and <figurePolygon> first configure <configuration> and then <properties>.
The example shows the configuration as a standard for all project components of the diagram. These properties are inherited by all graphic objects of the project components, but can be overridden by the configurations of the child graphical objects, such as figurePolygon.
<node id="Component">
<figureContainer figure="com.mind8.graph2d.figure.Container">
<properties>
<property id="resizable">
<read value="true"/>
</property>
<property id="showScrollBars">
<read value="false"/>
</property>
<property id="showLabel">
<read value="false"/>
</property>
<property id="boColor">
<read value="255,255,255"/>
</property>
<property id="fColor">
<read value="50,50,50"/>
</property>
<property id="bColor">
<read value="255,255,255"/>
</property>
<property id="selectedFColor">
<read value="10,36,106"/>
</property>
<property id="selectedBoColor">
<read value="10,36,106"/>
</property>
<property id="tooltip">
<read value="=name"/>
</property>
<property id="boWidth">
<read value="0"/>
</property>
</properties>
</figureContainer>
</node>
Result:
The result shows the <figureLabel> as a slave of the project component conveyor, since it takes over most of the properties of the same configuration for <figureContainer> unchanged.