Default Color
Syntax:
<colors default="colour" …
<color color="colour" label="legend-label"/>
This is useful if one of the color value is also the default value.
Example: <color color="rgb(93,155,205)"
label="Public"/>
Use: Defines the color to use when no other color matches.
There are two ways to specify the default color, depending on how you
want to display the color in the legend.
If you use <color default="…">
to specify the default
color, no legend item is generated for the default color.
For example:
<colors default="rgb(93,155,205)" label="Interface access (highest)" use="@access">
<color value="Public" color="rgb(93,155,205)"/>
<color value="Partner" color="rgb(255,153,0)"/>
<color value="Internal" color="rgb(255,106,126)"/>
</colors>
In this case, the default color is the same as the Public
value. This means if any component does not have an access
attribute, it is colored the same as if it is access="Public"
.
If you want the default color in the legend, use the second form of
<color color="colour" label="legend-label”/>
. This creates
an appropriate box in the legend similar to any other color.
Note: It is essential to specify exactly one default color.