Customizing the metamodel > Symbols: Creating and modifying > Analytic depictions > Displaying analytic depictions
  
Displaying analytic depictions
After you have specified the analytic depictions in USRPROPS.TXT, and have entered appropriate values into the relevant symbols on a diagram, you can choose to show or hide analytic depictions on a diagram: right-click a diagram workspace, and then click Show/Hide Analytic Depictions or View, Show/Hide Analytic Depictions.
Example
In the following example, nodes on a UML Deployment diagram have been given analytic depictions: metafile images of traffic lights with either the green or red light turned on. This can provide information about the nodes, whether one is online or offline, for example. The analytic depiction was created by adding code to USRPROPS.TXT and importing graphic images of traffic lights into the Files table of the encyclopedia.
This graphic is described in the surrounding text.
The USRPROPS.TXT code that enabled this functionality is as follows:
List "Traffic Lights" percent of symbol 50
{
Value "None"
Value "Red" depictions {right images\redlight.wmf}
Value "Yellow" depictions {right images\yellowlight.wmf}
Value "Green" depictions {right images\greenlight.wmf}
}
SYMBOL "Node" In "Deployment"
{
PROPERTY "Analytic Traffic Light"
{EDIT Text Listonly List "Traffic Lights" DEFAULT "None" LENGTH 10}
}
In addition, the user-specified images redlight.wmf, yellowlight.wmf, and greenlight.wmf, were imported into the Files table of the encyclopedia.
Additional example
The following example puts an image of a thermometer that is fixed to 200 hundredths of an inch (2 inches) wide at the bottom of a system function symbol.
List "Analytic Thermometer" fixed 200
{
Value "None"
Value "Freezing" depictions {bottom images\Temp1.wmf}
Value "Cool" depictions {bottom images\Temp2.wmf}
Value "Warm" depictions {bottom images\Temp3.wmf}
Value "Hot" depictions {bottom images\Temp4.wmf}
}
SYMBOL "System Function" In "SV-04 Data Flow"
{
PROPERTY "Analytic Thermometer"
{ EDIT Listonly List "Analytic Thermometer" DEFAULT "None" LENGTH 10 }
}
See also
Analytic depictions