public class IltPortDirectImageBaseRendererFactory 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.IltPort"["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 port type and to designate an auto image renderer factory as our new type's renderer factory:
IltPort.Type newType = new IltPort.Type(YOUR_NEW_TYPE_NAME); IltPortImageBaseRendererFactory factory = new IltPortAutoImageBaseRendererFactory(); IltSettings.SetValue("Port.Type.YOUR_NEW_TYPE_NAME.Renderer", factory);
Note: YOUR_NEW_TYPE_NAME
should be replaced by the String of your choice.
IltSettings
,
IltPort.Type
,
IltPortBaseRenderer
Modifier and Type | Class and Description |
---|---|
protected static class |
IltPortDirectImageBaseRendererFactory.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 |
---|
IltPortDirectImageBaseRendererFactory() |
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
public IltPortDirectImageBaseRendererFactory()
protected IltBaseRenderer createBaseRenderer()
IltAbstractDirectImageBaseRendererFactory
This method is called by IltAbstractDirectImageBaseRendererFactory.createValue()
.
createBaseRenderer
in class IltAbstractDirectImageBaseRendererFactory
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.