public class IltNetworkElementRenderer extends IltSettingsRenderer
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[])
.
To customize the global settings programmatically,
use IltSettings.SetValue(Object, Object)
.
This class can be configured like this in a CSS file:
Settings { networkElement: true; } setting."ilog.tgo.model.IltNetworkElement"{ types[0]: @+neType0; functions[0]: @+neFunction0; families[0]: @+neFamily0; } Subobject#neType0 { class: 'ilog.tgo.model.IltNetworkElement$Type'; name: "YOUR_NEW_TYPE_NAME"; } Subobject#neFunction0 { class: 'ilog.tgo.model.IltNetworkElement$Function'; name: "router"; } Subobject#neFamily0 { class: 'ilog.tgo.model.IltNetworkElement$Family'; name: "OC999"; } setting."ilog.tgo.model.IltNetworkElement.Type"[name="NE"] { label: "NE1"; centerFunctionIcon: true; renderer: @+neRendererFactory1; } Subobject#neRendererFactory1 { class: 'ilog.tgo.graphic.renderer.IltNEDirectImageBaseRendererFactory'; } setting."ilog.tgo.model.IltNetworkElement.Function"[name="Switch"] { icon: '@|image("icon1.png")'; } setting."ilog.tgo.model.IltNetworkElement.Family"[name="OC192"] { label: myOC1; }The same configuration can be achieved using the method
IltSettings.SetValue(Object, Object)
, as
illustrated below:
IltSettings.SetValue("NetworkElement.Type.NE.CenterFunctionIcon", Boolean.TRUE); IltSettings.SetValue("NetworkElement.Type.NE.Label", "NE1"); IltSettings.SetValue("NetworkElement.Type.NE.Renderer", myRendererFactory); IltSettings.SetValue("NetworkElement.Function.Switch.Icon", icon); IltSettings.SetValue("NetworkElement.Family.OC192.Label", "myOC1");
Constructor and Description |
---|
IltNetworkElementRenderer()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
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 |
setFamilies(IltNetworkElement.Family[] families)
Adds network element families to the system.
|
void |
setFunctions(IltNetworkElement.Function[] functions)
Adds network element functions to the system.
|
void |
setTypes(IltNetworkElement.Type[] types)
Adds network element types to the system.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
public void reset()
reset
in class IltSettingsRenderer
public String getCSSClass()
ilog.tgo.model.IltNetworkElement
public String getCSSType()
setting
public void setFamilies(IltNetworkElement.Family[] families)
families
- Network element family objects to be added to the system
setting."ilog.tgo.model.IltNetworkElement"{ families[0]: @+neFamily0; } Subobject#neFamily0 { class: 'ilog.tgo.model.IltNetworkElement$Family'; name: "OC192-UsrDf"; }
public void setFunctions(IltNetworkElement.Function[] functions)
functions
- Network element function objects to be added to the system
setting."ilog.tgo.model.IltNetworkElement"{ functions[0]: @+neFunction0; } Subobject#neFunction0 { class: 'ilog.tgo.model.IltNetworkElement$Function'; name: "Switch-UsrDf"; }
public void setTypes(IltNetworkElement.Type[] types)
types
- Network element type objects to be added to the system
setting."ilog.tgo.model.IltNetworkElement"{ types[0]: @+neType0; } Subobject#neType0 { class: 'ilog.tgo.model.IltNetworkElement$Type'; name: "General-UsrDf"; }
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.