Border Shapes Values XML File
Purpose
The border shapes values XML file is used to define the shapes of
components. The valid values for a border shape can be box
,
round
, hexagon
, box-clipRT
,
box-clipRB
, box-clipLT
, box-clipLB
, and
box-clipAll
, or a reference (#xxxx) to a symbol specified in a
shapes XML file.
The following figure shows the various predefined shapes:
For information about how to define new values for border shapes, see
Customizing the System Model Presentation.
Syntax
<?xml version="1.0"?>
<values default="default-border-shape-value" label="label for legend">
<item label="label for legend" value="border-shape-value">
<component name="component-name"/>
<component name="component-name"/>
<component name="component-name"/>
…
</item>
<item …>
…
</item>
…
</values>
In the preceding syntax, the values
tag contains the
item
tags. The various attributes under the values
tag are:
-
default="default-border shape-value"
: Defines the
default border shape for the components. This default value gets assigned to
the components to which no border shape value is assigned.
-
label="label for legend"
: Defines the label for the
legend.
Each item
tag can contain the following attributes:
-
label="label for legend"
: Defines the label for the
legend.
-
value="border shape-value"
: Defines the border shape
value for the item. This border shape value gets assigned to all the components
listed in that item
tag.
The item
tag also contains component
tags to
specify the components in the item. All the components defined in an
item
tag have the same border shape. The following is the syntax
to define a component
:
<component name="component-name"/>
Where component-name
indicates the name of the component
defined in the system definition file.
Example
<?xml version="1.0"?>
<values default="box" label="Sched 12 Category">
<item label="Optional Symbian" value="box-clipLT">
<component name="Cryptography Library"/>
</item>
<item label="Common Symbian" value="box-clipLB">
<component name="SD Card Driver"/>
<component name="CLDC Hi 1.1"/>
</item>
<item label="Common Replace­able" value="#symbol-for-CR">
<component name="Ethernet Driver"/>
</item>
<item label="Optional Replace­able" value="box-clipRT">
<component name="OMAP 1623"/>
<component name="Bootstrap"/>
<component name="WMA 1.1"/>
</item>
</values>
The following figure shows the generated legend for the preceding
border shapes values XML: