Customizing the metamodel : Symbols: Creating and modifying : Analytic depictions : Displaying analytic depictions
  
Displaying analytic depictions
Once 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/Hide Analytic Depictions on a diagram by right-clicking a diagram workspace and selecting Show/Hide Analytic Depictions or selecting View, Show/Hide Analytic Depictions.
Example
For the example below, nodes on a UML Deployment diagram have been adorned with analytic depictions: metafile images of traffic lights with either the green or red light turned on. This can provide visual information about the nodes, whether one is online or offline, for example. The analytic depiction was made possible by adding code to usrprops.txt and importing graphic images of traffic lights into the Files table of the encyclopedia.
The usrprops.txt code that enabled the above 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 code
The code below places 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 }
}