Colors Values XML File

Purpose

The colors values XML file is used to define the colors of components. The valid value that can be specified for a color can be any CSS colors type. For example, it can be #cc00aa, rgb(255,18,200), or blue.

For information about how to define new values colors, see Customizing the System Model Presentation.

Note: For more information, see CSS2 Specification.

Syntax

<?xml version="1.0"?>
    <values default="default-color-value" label="label for legend">
    
        <item label="label for legend" value="color-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-color-value": Defines the default color for the components. This default value gets assigned to the components to which no color 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="color-value": Defines the color value for the item. This color 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 color. 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="grey" label="Technology Streams">
    <item label="Base Services" value="#8f8fbd">
        <component name="Application Utilities"/>
        <component name="Content Access Framework for DRM"/>

    </item>
    <item label="Persistent Data Services" value="#993366">
        <component name="SQL"/>
        <component name="Store"/>
        <component name="DBMS"/>

    </item>
</values>

The following figure shows the generated legend for the preceding colors values XML: