public interface IltNumericStateCustomization
IltNumericStateCustomization
specifies the properties that can
be customized for numeric states using CSS. The following states can be
configured:
IltPerformance.SecState
IltSAN.SecState
IltSNMP
The following code example illustrates how a state can
be configured using CSS. The cascading style sheets are loaded
using the method
IltSettings.setStyleSheets(String[])
.
setting."ilog.tgo.model.IltState"[name="Performance.SecState.In"] { type: Gauge; gauge: @+gaugePerf; } Subobject#gaugePerf { class: 'ilog.tgo.graphic.IltGaugeMapping'; minImage: '@|image("icon1.png")'; maxImage:'@|image("icon2.png")'; direction: Bottom; colorModifier: @+myColorModifier1; } Subobject#myColorModifier1 { class: "MyColorModifier"; } setting."ilog.tgo.model.IltState"[name="SAN.SecState.Allocated"] { type: Chart; chart: @+chartSan; } Subobject#chartSan { class: 'ilog.tgo.graphic.IltChartMapping'; minImage: '@|image("icon2.png")'; maxImage: '@|image("icon1.png")'; xAxisDirection: Right; yAxisDirection: Bottom; colorModifier: @+myColorModifier1; } setting."ilog.tgo.model.IltState"[name="SNMP.Interface.InErrors"] { type: Counter; counter: @+counterSnmpInterface; } Subobject#counterSnmpInterface { class: 'ilog.tgo.graphic.IltCounterMapping'; font: Helvetica-Bold-12; antialiasing: false; foregroundColor: red; backgroundColor: blue; borderColor: red; xPadding: 100; yPadding: 100; }
The same configuration can be achieved using the method
IltSettings.SetValue(Object, Object)
, as
illustrated below:
IltSettings.SetValue("Performance.SecState.In.Gauge", new IltGaugeMapping(...)); IltSettings.SetValue("Performance.SecState.In.Chart", new IltChartMapping(...)); IltSettings.SetValue("Performance.SecState.In.Counter", new IltCounterMapping(...)); IltSettings.SetValue("Performance.SecState.In.Type", IltDecorationType.Gauge);
Modifier and Type | Method and Description |
---|---|
IltChartMapping |
getChart()
Sets the chart decoration object for the Performance, SAN and SNMP
secondary state objects.
|
IltCounterMapping |
getCounter()
Returns the counter decoration object the for Performance, SAN and SNMP
secondary state objects.
|
IltGaugeMapping |
getGauge()
Returns the gauge decoration object for the Performance, SAN, and SNMP
secondary state objects.
|
IltDecorationType |
getType()
Returns the decoration type for the Performance, SAN and SNMP secondary
state objects.
|
IltDecorationType getType()
Returns the decoration type for the Performance, SAN and SNMP secondary state objects.
The IltDecorationType
class defines the possible
graphical representations. The possible values of this class are:
Gauge
Chart
Counter
CSS settings:
setting."ilog.tgo.model.IltState"[name="Performance.SecState.In"] { type: Gauge; } setting."ilog.tgo.model.IltState"[name="SAN.SecState.Allocated"] { type: Chart; } setting."ilog.tgo.model.IltState"[name="SNMP.EGP.InErrors"] { type: Counter; }
IltChartMapping getChart()
Sets the chart decoration object for the Performance, SAN and SNMP secondary state objects.
When defining a new chart mapping class, the following CSS properties
which match the corresponding set methods within
IltChartMapping
and its super class are used:
minImage
maxImage
xAxisDirection
yAxisDirection
colorModifier
CSS settings:
setting."ilog.tgo.model.IltState"[name="Performance.SecState.Out"] { type: Chart; chart: @+chartPerf; } Subobject#chartPerf { class: 'ilog.tgo.graphic.IltChartMapping'; minImage: '@|image("icon2.png")'; maxImage: '@|image("icon1.png")'; xAxisDirection: Right; yAxisDirection: Bottom; colorModifier: @+myColorModifier0; } setting."ilog.tgo.model.IltState"[name="SAN.SecState.Available"] { type: Chart; chart: @+chartSan; } Subobject#chartSan { class: 'ilog.tgo.graphic.IltChartMapping'; minImage: '@|image("icon2.png")'; maxImage: '@|image("icon1.png")'; xAxisDirection: Right; yAxisDirection: Bottom; colorModifier: @+myColorModifier1; } setting."ilog.tgo.model.IltState"[name="SNMP.ICMP.InErrors"] { type: Chart; chart: @+chartSnmpIcmp; } Subobject#chartSnmpIcmp { class: 'ilog.tgo.graphic.IltChartMapping'; minImage: '@|image("icon2.png")'; maxImage: '@|image("icon1.png")'; xAxisDirection: Right; yAxisDirection: Bottom; colorModifier: @+myColorModifier2; }
IltCounterMapping getCounter()
Returns the counter decoration object the for Performance, SAN and SNMP secondary state objects.
When defining a new counter mapping class, the following CSS properties
which match corresponding set methods within
IltCounterMapping
and its super class are used:
format
font
antialiasing
foregroundColor
backgroundColor
borderColor
xPadding
yPadding
CSS settings:
setting."ilog.tgo.model.IltState"[name="Performance.SecState.Power"] { type: Counter; counter: @+counterPerf; } Subobject#counterPerf { class: 'ilog.tgo.graphic.IltCounterMapping'; format: @+myNumberFormat; font: Helvetica-Bold-12; antialiasing: false; foregroundColor: red; backgroundColor: blue; borderColor: red; xPadding: 100; yPadding: 100; } Subobject#myNumberFormat{ class: 'MyNumberFormat'; } setting."ilog.tgo.model.IltState"[name="SAN.SecState.Bandwidth"] { type: Counter; counter: @+counterSan; } Subobject#counterSan { class: 'ilog.tgo.graphic.IltCounterMapping'; font: Helvetica-Bold-12; antialiasing: false; foregroundColor: red; backgroundColor: blue; borderColor: red; xPadding: 100; yPadding: 100; } setting."ilog.tgo.model.IltState"[name="SNMP.Interface.InErrors"] { type: Counter; counter: @+counterSnmpInterface; } Subobject#counterSnmpInterface { class: 'ilog.tgo.graphic.IltCounterMapping'; font: Helvetica-Bold-12; antialiasing: false; foregroundColor: red; backgroundColor: blue; borderColor: red; xPadding: 100; yPadding: 100; }
IltGaugeMapping getGauge()
Returns the gauge decoration object for the Performance, SAN, and SNMP secondary state objects.
When defining a new gauge mapping class, the following CSS properties
which match the corresponding set methods within
IltGaugeMapping
and its super class are used:
minImage
maxImage
direction
colorModifier
CSS settings:
setting."ilog.tgo.model.IltState"[name="Performance.SecState.In"] { type: Gauge; gauge: @+gaugePerf; } Subobject#gaugePerf { class: 'ilog.tgo.graphic.IltGaugeMapping'; minImage: '@|image("icon1.png")'; maxImage:'@|image("icon2.png")'; direction: Bottom; colorModifier: @+myColorModifier1; } Subobject#myColorModifier1 { class: "MyColorModifier"; } setting."ilog.tgo.model.IltState"[name="SAN.SecState.Allocated"] { type: Gauge; gauge: @+gaugeSan; } Subobject#gaugeSan { class: 'ilog.tgo.graphic.IltGaugeMapping'; minImage: '@|image("icon1.png")'; maxImage:'@|image("icon2.png")'; direction: Bottom; colorModifier: @+myColorModifier1; } setting."ilog.tgo.model.IltState"[name="SNMP.EGP.InErrors"] { type: Gauge; gauge: @+gaugeSnmpEgp; } Subobject#gaugeSnmpEgp { class: 'ilog.tgo.graphic.IltGaugeMapping'; minImage: '@|image("icon1.png")'; maxImage:'@|image("icon2.png")'; direction: Bottom; colorModifier: @+myColorModifier2; }
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.