ilog.tgo.resource.renderer
Class IltObjectRenderer

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

public class IltObjectRenderer
extends IltSettingsRenderer

IltObjectRenderer shows how you can configure Object attributes 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[]).

The following example shows how this class can be configured in a CSS file:

 Settings {
   object: true;
 }
 setting."ilog.tgo.model.IltObject"{
   logicalTypes[0]: @+nodeLogicalType0;
   tinyTypes[0]: @+tinyType0;
 }
 Subobject#nodeLogicalType0 {
    class: 'ilog.tgo.model.IltObject$LogicalType';
    name: "Standard-UsrDf";
 }
 Subobject#tinyType0 {
    class: 'ilog.tgo.model.IltObject$TinyType';
    name: "Standard-UsrDf";
 }
 
setting."ilog.tgo.model.IltObject.LogicalType"[name=Standard-UsrDf] { renderer: @+logicalRendererFactory1; } Subobject#logicalRendererFactory1 { class: 'MyLogicalRendererFactory1'; }
setting."ilog.tgo.model.IltObject.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyRendererFactory; } setting."ilog.tgo.model.IltLink.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyLinkRendererFactory; } setting."ilog.tgo.model.IltLinkSet.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyLinkRendererFactory; } setting."ilog.tgo.model.IltLinkBundle.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyLinkRendererFactory; } setting."ilog.tgo.model.IltBTS.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyRendererFactory; } setting."ilog.tgo.model.IltBTSAntenna.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyRendererFactory; }

To customize the global settings with Java code, use IltSettings.SetValue(Object, Object).

 IltSettings.SetValue("Object.LogicalType.Standard-UsrDf.Renderer", factory);
 IltSettings.SetValue("Object.TinyType.Standard-UsrDf.Renderer", factory);
 IltSettings.SetValue("BTS.TinyType.Standard-UsrDf.Renderer", factory);
 IltSettings.SetValue("BTSAntenna.TinyType.Standard-UsrDf.Renderer", factory);
 IltSettings.SetValue("Link.TinyType.Standard-UsrDf.Renderer", linkFactory);
 IltSettings.SetValue("LinkBundle.TinyType.Standard-UsrDf.Renderer", linkFactory);
 IltSettings.SetValue("LinkSet.TinyType.Standard-UsrDf.Renderer", linkFactory);

 

Since:
JViews 7.5

Constructor Summary
IltObjectRenderer()
          The 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 types.
 void setLogicalTypes(IltObject.LogicalType[] types)
          Adds telecom node logical types to the system.
 void setTinyTypes(IltObject.TinyType[] types)
          Adds telecom node tiny types to the 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

IltObjectRenderer

public IltObjectRenderer()
The default constructor.

Method Detail

reset

public void reset()
Resets the configuration of the types.

Specified by:
reset in class IltSettingsRenderer

getCSSClass

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

Returns:
An ilog.tgo.model.IltObject representation.

getCSSType

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

Returns:
The type used in CSS selectors.

setLogicalTypes

public void setLogicalTypes(IltObject.LogicalType[] types)
Adds telecom node logical types to the system.

CSS settings:

 setting."ilog.tgo.model.IltObject"{
    logicalTypes[0]: @+nodeLogicalType0;
 }
 Subobject#nodeLogicalType0 {
    class: 'ilog.tgo.model.IltObject$LogicalType';
    name: "Standard-UsrDf";
 }
 

Parameters:
types - The telecom node logical type objects to be added to the system.

setTinyTypes

public void setTinyTypes(IltObject.TinyType[] types)
Adds telecom node tiny types to the system.

CSS settings:

 setting."ilog.tgo.model.IltObject"{
   tinyTypes[0]: @+tinyType0;
 }
 Subobject#tinyType0 {
    class: 'ilog.tgo.model.IltObject$TinyType';
    name: "Standard-UsrDf";
 }
 

Parameters:
types - The telecom node tiny type objects to be added to the system.


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