Rogue Wave JViews TGO Sample: Network Component - Blinking


Description

This sample shows how to use the blinking features of the Rogue Wave JViews TGO network component.

How to Use the Sample

The main frame contains a simple network component, with several different types of nodes and links displayed on a background map.

When the select interactor is enabled, a pop-up menu is available and can be used to add, acknowledge or clear alarms of different severities on the selected objects.

This sample illustrates how you can configure the business objects displayed in a network component to have a different alarm representation using blinking colors. In this sample, the object starts to blink when new alarms are added to the object.



How to Run the Sample as an Application

This sample can also be run as an application. The installation directory contains an executable JAR file, network-blinking.jar, that allows you to execute the sample with a double click from a file browser. Note that if you are using Internet Explorer, you can open the installation directory and execute the JAR file from the browser. This technique may not work in other Web browsers.

Alternatively, you can run the sample application from the command line. First check that the Ant utility is properly configured. If not, see the instructions on how to configure Ant for Rogue Wave JViews.

Then, go to the installation directory of the sample and type:

ant run

Topics Covered

Detailed Description

This sample shows how to use blinking colors with the network component. The code of this sample can be found in the doSample method. To use blinking colors with the network component, the sample includes the following steps:

To modify the alarm representation, you can use the following properties in your network component configuration. In this sample, the objects are configured so that their representation is displayed using blinking colors when there are new alarms and solid colors when there are acknowledged alarms. The configuration is achieved using the following CSS functions: Please refer to the User's Documentation for a complete description of these properties.

Installation Directory

The Network Component - Blinking sample is installed here.

Classes Involved

Source Files

Copyright © Rogue Wave Software, Inc. 1997, 2015. All rights reserved. Legal terms.