ilog.tgo.resource.renderer
Class IltPerformanceRenderer

java.lang.Object
  extended by ilog.tgo.resource.renderer.IltSettingsRenderer
      extended by ilog.tgo.resource.renderer.IltPerformanceRenderer
All Implemented Interfaces:
ilog.tgo.resource.css.internal.IltSettingsCSSEntity

public class IltPerformanceRenderer
extends IltSettingsRenderer

This class illustrates how you can configure Performance Secondary States using cascading style sheets.

This class shows all the properties that can be customized using cascading style sheets.

The CSS configuration can be applied to the Global Settings (@link ilog.tgo.resource.IltSettings), using IltSettings.setStyleSheets(String[]).

This class can be configured like this in a CSS file:

 Settings {
   performance: true;
 }
 Performance {
   states[0]: @+perf0;
 }
 Subobject#perf0 {
   class: 'ilog.tgo.model.IltPerformance$SecState';
   name: "Performance.SecState.ResponseTime";
 }
 setting."ilog.tgo.model.IltState"[name="Performance.SecState.Out"] {
   type: Gauge;
   gauge: @#gaugeMapping;
   chart: @#chartMapping;
   counter: @#counterMapping;
 }
 
 

To customize the global settings programmatically, use IltSettings.SetValue(Object, Object).

  IltSettings.SetValue("Performance.SecState.Input.Type", IltDecorationType.Chart);
  IltSettings.SetValue("Performance.SecState.Input.Chart", new IltChartMapping(chart1, chart2));
  IltSettings.SetValue("Performance.SecState.Input.Gauge", new IltGaugeMapping(...));
  IltSettings.SetValue("Performance.SecState.Input.Counter", new IltCounterMapping());
 

Since:
JViews 7.5

Constructor Summary
IltPerformanceRenderer()
          Default constructor.
 
Method Summary
 String getCSSClass()
          Returns the business class used in the selector.
 String getCSSType()
          Returns the type used in CSS selectors.
 void reset()
          Resets the configuration of the alarms and traps
 void setStates(IltPerformance.SecState[] states)
          Adds Performance secondary states to the state system.
 
Methods inherited from class ilog.tgo.resource.renderer.IltSettingsRenderer
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltPerformanceRenderer

public IltPerformanceRenderer()
Default constructor.

Method Detail

reset

public void reset()
Resets the configuration of the alarms and traps

Specified by:
reset in class IltSettingsRenderer

getCSSClass

public String getCSSClass()
Returns the business class used in the selector.

A valid CSS selector is:

 Performance {
   states[0]: @+perf0;
 }
 

Returns:
null as this configuration does not use a business class parameter.

getCSSType

public String getCSSType()
Returns the type used in CSS selectors.

A valid CSS selector is:

 Performance {
   states[0]: @+perf0;
 }
 

Returns:
Performance

setStates

public void setStates(IltPerformance.SecState[] states)
Adds Performance secondary states to the state system.

Parameters:
states - Performance secondary state objects to be added to the state system

CSS settings:
 Settings {
    performance: true;
 }
 Performance {
    states[0]: @+perf0;
 }
 Subobject#perf0 {
    class: 'ilog.tgo.model.IltPerformance$SecState';
    name: "Performance.SecState.Power-UsrDf";
 }
 


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.