IltSettings.SetValue("SNMP.Interface.InOctets.Type", IltDecorationType.Chart);
.Type
”, for example,
SNMP.ICMP.InMsgs.Type
or
SNMP.TCP.OutSegs.Type
.
SNMP.Interface.InOctets
", when matching the "
name
" attribute. The CSS property to be customized is
type
.
setting."ilog.tgo.model.IltState"[name="SNMP.Interface.InOctets"] { type: Counter; }
IltSettings.SetValue("SNMP.ICMP.OutErrors.Type", IltDecorationType.Gauge);
IltColorModifier modifier1 = new IltColorModifier.Shade(0.5f); IltColorModifier modifier2 = new IltColorModifier.MultiColor(IltColorModifier.MultiColor.USE_LAST_VALUE); IltColorModifier modifier = modifier1.compose(modifier2); IltGaugeMapping mapping = (IltGaugeMapping) IltSettings.GetValue("SNMP.ICMP.OutErrors.Gauge"); mapping.setColorModifier(modifier);
IltGaugeMapping mapping = new IltGaugeMapping(minImg, maxImg); IltSettings.SetValue("SNMP.ICMP.OutErrors.Gauge", mapping);
SNMP.Interface.InOctets
", when matching the "
name
" attribute. The CSS property to be customized is
gauge
.
minImage
,
maxImage
,
direction
,
colorModifier
. They match corresponding
set
methods of the IltGaugeMapping class (and its super
class).
setting."ilog.tgo.model.IltState"[name="SNMP.ICMP.OutErrors"] { gauge: @+gaugeSnmp; } Subobject#gaugeSnmp { class: 'ilog.tgo.graphic.IltGaugeMapping'; minImage: '@|image("icon1.png")'; maxImage:'@|image("icon2.png")'; direction: Bottom; colorModifier: @+myColorModifier; } Subobject#myColorModifier { class: "MyColorModifier"; }
MyColorModifier
has been created and included in the search path.
ilog.tgo.graphic.IltGaugeMapping
.
IltSettings.SetValue("SNMP.ICMP.OutErrors.Type", IltDecorationType.Chart);
IltColorModifier modifier1 = new IltColorModifier.Shade(0.5f); IltColorModifier modifier2 = new IltColorModifier.MultiColor(IltColorModifier.MultiColor.USE_LAST_VALUE); IltColorModifier modifier = modifier1.compose(modifier2); IltChartMapping mapping = (IltChartMapping) IltSettings.GetValue("SNMP.ICMP.OutErrors.Chart"); mapping.setColorModifier(modifier);
IltChartMapping mapping = new IltChartMapping(minImg, maxImg); IltSettings.SetValue("SNMP.ICMP.OutErrors.Chart", mapping);
SNMP.ICMP.OutErrors
", when matching the "
name
" attribute. The CSS property to be customized is
chart
.
minImage
,
maxImage
,
xAxisDirection
,
yAxisDirection
,
colorModifier
. They match corresponding
set
methods of the
IltChartMapping
class (and its super class). Refer to
ilog.tgo.graphic.IltChartMapping
for information on how to customize the chart decorations.
MyColorModifier
has been created and included in the search path.
setting."ilog.tgo.model.IltState"[name="SNMP.ICMP.OutErrors"] { chart: @+chartSnmp; } Subobject#chartSnmp { class: 'ilog.tgo.graphic.IltChartMapping'; minImage: '@|image("icon1.png")'; maxImage:'@|image("icon2.png")'; xAxisDirection: Right; yAxisDirection: Bottom; colorModifier: @+myColorModifier; } Subobject#myColorModifier { class: "MyColorModifier"; }
IltSettings.SetValue("SNMP.ICMP.OutErrors.Type", IltDecorationType.Counter);
IltCounterMapping cm = new IltCounterMapping(new DecimalFormat("#Mbs"), IltrFont.CounterText, true, Color.black, Color.white, Color.black, 3, 1, IlvDirection.Right, false); IltSettings.SetValue("SNMP.ICMP.OutErrors.Counter", cm);
SNMP.ICMP.OutErrors
", when matching the "
name
" attribute. The CSS property to be customized is
counter
.
format
,
font
,
antialiasing
,
foregroundColor
,
backgroundColor
,
borderColor
,
xPadding
,
yPadding
. They match corresponding
set
methods of the
IltCounterMapping
class (and its super class). Refer to
ilog.tgo.graphic.IltCounterMapping
for information on how to customize the counter decorations.
setting."ilog.tgo.model.IltState"[name="SNMP.ICMP.OutErrors"] { counter: @+counterSnmp; } Subobject#counterSnmp { 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'; }