public class IltNEDirectImageBaseRendererFactory extends IltAbstractDirectImageBaseRendererFactory
Note: Image processing is done only if necessary. In other words, when a new type is defined, no memory or CPU is used. The real processing and allocation are performed when the first draw occurs.
The base image and normal alarm color level must first be specified for each desired base style using CSS:
object."ilog.tgo.model.IltNetworkElement"["type"=YOUR_NEW_TYPE_NAME]["objectState.Bellcore.State"=EnabledIdle] { sourceImage: '@|image("YOUR_IMAGE_FILE_NAME")'; alarmColorLevel: 130; }
Note: YOUR_IMAGE_FILE_NAME
should be replaced by the appropriate String.
It is easy to create a new network element type and to designate an auto image renderer factory as our new type's renderer factory:
IltNetworkElement.Type newType = new IltNetworkElement.Type(YOUR_NEW_TYPE_NAME); IltNEDirectImageBaseRendererFactory factory = new IltNEDirectImageBaseRendererFactory(); IltSettings.SetValue("NetworkElement.Type.YOUR_NEW_TYPE_NAME.Renderer", factory);
Note: YOUR_NEW_TYPE_NAME
should be replaced by the String of your choice.
IltSettings
,
IltNetworkElement.Type
,
IltNEBaseRenderer
Modifier and Type | Class and Description |
---|---|
protected static class |
IltNEDirectImageBaseRendererFactory.BaseRenderer
This implementation of BaseRenderer can draw a modified version of the
image (sepecified in css for each baseStyle )
according to alarms of the object that is represented. |
Constructor and Description |
---|
IltNEDirectImageBaseRendererFactory() |
Modifier and Type | Method and Description |
---|---|
protected IltBaseRenderer |
createBaseRenderer()
This method can be overridden to create the
real base renderer that displays the image.
|
createValue, isPolygonalBorder, setPolygonalBorder
protected IltBaseRenderer createBaseRenderer()
IltAbstractDirectImageBaseRendererFactory
This method is called by IltAbstractDirectImageBaseRendererFactory.createValue()
.
createBaseRenderer
in class IltAbstractDirectImageBaseRendererFactory
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.