Using the Symbol Editor > Using More Features of the Symbol Editor > Revisiting The BAM Dashboard > Making A Simple Status Indicator

To create a simple status indicator, do the following:

  1. In the Symbol Editor, create a new symbol. For more information, see Making a New Symbol.
  2. Navigate to the following directory:
  3. <installdir>/jviews-diagrammer81/bin/symboleditor/data/examples
  4. Import light.svg. The SVG image creates an object SVG. For more information, see Importing a Vector Graphic.
  5. Delete the Text and Shape objects. SVG is now the base object.
  6. Ungroup the SVG object.
  7. Create an Integer parameter statusvalue, with three allowed values: good, warning and problem. For more details, see Setting Allowed Values for a Parameter.
  8. Select the GeneralPath8 object.

images/diasym_svggeneralpath8.png

Figure 2.10 The GeneralPath8 object
  1. Add the conditions good, warning and problem to GeneralPath8 so changes to the value of statusvalue are reflected by changes in color. For more information, see Setting Conditions on an Object.

images/diasym_svglight.png

Figure 2.11 The Svglight Symbol
  1. Save this symbol as svglight in the stoplights category of the bampalette.