public abstract class IltAbstractImageBaseRendererFactory extends Object implements IltBaseRendererFactory
This factory can customize two characteristics of the base renderer:
IltBaseRenderer
,
IltBaseRendererFactory
,
IltSettings
Modifier | Constructor and Description |
---|---|
protected |
IltAbstractImageBaseRendererFactory()
Default constructor
|
protected |
IltAbstractImageBaseRendererFactory(Image sourceImage)
Creates a new
IltImageCardBaseRendererFactory . |
protected |
IltAbstractImageBaseRendererFactory(Image sourceImage,
int brightThreshold,
int darkThreshold,
int normGray)
Creates a new
IltImageCardBaseRendererFactory . |
protected |
IltAbstractImageBaseRendererFactory(Image sourceImage,
int brightThreshold,
int darkThreshold,
int normGray,
boolean dottedBorderVisible)
Creates a new
IltImageCardBaseRendererFactory . |
protected |
IltAbstractImageBaseRendererFactory(String sourceImageName,
int brightThreshold,
int darkThreshold,
int normGray,
boolean dottedBorderVisible)
Creates a new IltImageCardBaseRendererFactory.
|
Modifier and Type | Method and Description |
---|---|
protected abstract IltBaseRenderer |
createBaseRenderer()
This method can be overridden to create the
real base renderer that displays the image.
|
IltBaseRenderer |
createValue()
Creates a new renderer with the current image configuration.
|
int |
getBrightThreshold()
Returns the threshold (0..255) used for bright colors when
computing the NoTraffic representation.
|
int |
getDarkThreshold()
Returns the threshold (
0..255 ) applied to dark colors when
computing the NoTraffic representation. |
int |
getGrayLevel()
Returns the gray level (
0..255 ) applied when computing
the alarm CarryingTraffic representation. |
ilog.tgo.graphic.renderer.internal.IltImageBaseRendererFactory |
getImageFactory()
Returns the internal factory responsible for
rendering the image.
|
Image |
getSourceImage()
Returns the image to be processed to create the
different
BaseStyle representations. |
String |
getSourceImageName()
Returns the image to be processed to create the
different
BaseStyle representations. |
boolean |
isDottedBorderVisible()
Indicates whether an additional dotted border
should be drawn around the base.
|
boolean |
isPolygonalBorder()
Indicates whether the alarm and selection borders should be drawn with
a polygon that follows the border of the image.
|
void |
setBrightThreshold(int threshold)
Sets the threshold (0..255) used for bright colors when
computing the NoTraffic representation.
|
void |
setDarkThreshold(int threshold)
Sets the threshold (
0..255 ) applied to dark colors when
computing the NoTraffic representation. |
void |
setDottedBorderVisible(boolean dottedBorderVisible)
Indicates whether an additional dotted border
should be drawn around the base.
|
void |
setGrayLevel(int level)
Sets the gray level (
0..255 ) applied when computing
the alarm CarryingTraffic representation. |
void |
setPolygonalBorder(boolean polygonalBorder)
Indicates whether the alarm and selection borders should be drawn with
a polygon that follows the border of the image.
|
void |
setSourceImage(Image img)
Sets the image to be processed to create the
different
BaseStyle representations. |
void |
setSourceImageName(String imgName)
Sets the image to be processed to create the
different
BaseStyle representations. |
protected IltAbstractImageBaseRendererFactory(Image sourceImage, int brightThreshold, int darkThreshold, int normGray)
IltImageCardBaseRendererFactory
.sourceImage
- The image to be processed to create the
different BaseStyle
representations.brightThreshold
- The threshold (0..255
) applied to bright
colors when computing the NoTraffic
representation.darkThreshold
- The threshold (0..255
) applied to dark colors when
computing the NoTraffic
representation.normGray
- The gray level (0..255
) applied when computing
the alarm CarryingTraffic
representation.protected IltAbstractImageBaseRendererFactory(Image sourceImage, int brightThreshold, int darkThreshold, int normGray, boolean dottedBorderVisible)
IltImageCardBaseRendererFactory
.sourceImage
- The image to be processed to create the
different BaseStyle
representations.brightThreshold
- The threshold (0..255
) applied to bright colors when
computing the NoTraffic
representation.darkThreshold
- The threshold (0..255
) applied to dark colors when
computing the NoTraffic
representation.normGray
- The gray level (0..255
) applied when computing
the alarm CarryingTraffic
representation.dottedBorderVisible
- Indicates whether an additional dotted border
is to be drawn around the base.IltBaseRenderer.isDottedBorderVisible()
protected IltAbstractImageBaseRendererFactory(String sourceImageName, int brightThreshold, int darkThreshold, int normGray, boolean dottedBorderVisible)
sourceImageName
- the image that will be processed to create the
different BaseStyle representations.brightThreshold
- the threshold (0..255) used for bright colors when
computing the NoTraffic representation.darkThreshold
- the threshold (0..255) used for dark colors when
computing the NoTraffic representation.normGray
- the gray level (0..255) used when computing the alarmed
CarryingTraffic representation.dottedBorderVisible
- indicates if an additional dotted border
should be drawn around the base.IltBaseRenderer.isDottedBorderVisible()
protected IltAbstractImageBaseRendererFactory()
protected IltAbstractImageBaseRendererFactory(Image sourceImage)
IltImageCardBaseRendererFactory
.
Using this constructor is equivalent to
IltImageCardBaseRendererFactory(sourceImage,200,50,128,false)
.
public ilog.tgo.graphic.renderer.internal.IltImageBaseRendererFactory getImageFactory()
protected abstract IltBaseRenderer createBaseRenderer()
This method is called by createValue()
.
public final void setSourceImage(Image img)
BaseStyle
representations.
The source image must be specified before using this renderer factory. Once the renderer factory is in use, modifying the source image has no effect on the object representation.
img
- Source imagepublic final Image getSourceImage()
BaseStyle
representations.public final void setSourceImageName(String imgName)
BaseStyle
representations.
The source image must be specified before using this renderer factory. Once the renderer factory is in use, modifying the source image has no effect on the object representation.
imgName
- Source image namepublic final String getSourceImageName()
BaseStyle
representations.public final void setBrightThreshold(int threshold)
The bright color threshold can be specified before using this renderer factory. Once the renderer factory is in use, modifying the threshold has no effect on the object representation.
threshold
- Bright color thresholdpublic final int getBrightThreshold()
public final void setDarkThreshold(int threshold)
0..255
) applied to dark colors when
computing the NoTraffic
representation.
The dark color threshold can be specified before using this renderer factory. Once the renderer factory is in use, modifying the threshold has no effect on the object representation.
threshold
- Dark threshold levelpublic final int getDarkThreshold()
0..255
) applied to dark colors when
computing the NoTraffic
representation.public final void setGrayLevel(int level)
0..255
) applied when computing
the alarm CarryingTraffic
representation.
The gray level can be specified before using this renderer factory. Once the renderer factory is in use, modifying the level has no effect on the object representation.
level
- Gray levelpublic final int getGrayLevel()
0..255
) applied when computing
the alarm CarryingTraffic
representation.public final void setDottedBorderVisible(boolean dottedBorderVisible)
The default value is false
.
Note: A dotted border cannot be applied to a polygonal border.
IltBaseRenderer.isDottedBorderVisible()
public final boolean isDottedBorderVisible()
The default value is false
.
Note: A dotted border cannot be applied to a polygonal border.
IltBaseRenderer.isDottedBorderVisible()
public final void setPolygonalBorder(boolean polygonalBorder)
false
,
the borders are drawn as rectangles.
The default value is false
.
Note: A dotted border cannot be applied to a polygonal border.
public final boolean isPolygonalBorder()
false
,
the borders are drawn as rectangles.
The default value is false
.
Note: A dotted border cannot be applied to a polygonal border.
public IltBaseRenderer createValue()
createValue
in interface IltBaseRendererFactory
IltBaseRenderer
IltSettings.SetValue(java.lang.Object, java.lang.Object)
,
IltBaseRenderer
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.