public class IltCardDirectImageBaseRendererFactory 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.IltCard"["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 card type and to designate an auto image renderer factory as our new type's renderer factory:
IltCard.Type newType = new IltCard.Type(YOUR_NEW_TYPE_NAME); IltCardAutoImageBaseRendererFactory factory = new IltCardAutoImageBaseRendererFactory(); IltSettings.SetValue("Card.Type.YOUR_NEW_TYPE_NAME.Renderer", factory);
Note: YOUR_NEW_TYPE_NAME
should be replaced by the String of your choice.
IltSettings
,
IltCard.Type
,
IltCardBaseRenderer
Modifier and Type | Class and Description |
---|---|
protected static class |
IltCardDirectImageBaseRendererFactory.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 |
---|
IltCardDirectImageBaseRendererFactory() |
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 IltCardDirectImageBaseRendererFactory()
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.