public class IltOPCDirectImageBaseRendererFactory 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.IltOffPageConnector"["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 off page connector type and to designate an auto image renderer factory as our new type's renderer factory:
IltOffPageConnector.Type newType = new IltOffPageConnector.Type(YOUR_NEW_TYPE_NAME); IltOffPageConnectorImageBaseRendererFactory factory = new IltOffPageConnectorAutoImageBaseRendererFactory(); IltSettings.SetValue("OffPageConnector.Type.YOUR_NEW_TYPE_NAME.Renderer", factory);
Note: YOUR_NEW_TYPE_NAME
should be replaced by the String of your choice.
IltSettings
,
IltOffPageConnector.Type
,
IltOPCBaseRenderer
Modifier and Type | Class and Description |
---|---|
protected static class |
IltOPCDirectImageBaseRendererFactory.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 |
---|
IltOPCDirectImageBaseRendererFactory() |
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 IltOPCDirectImageBaseRendererFactory()
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.