protected static class IltLogicalImageBaseRendererFactory.BaseRenderer extends IltLogicalBaseRenderer
sourceImage (provided as parameter to the constructor of the
base renderer factory) according to the baseStyle and alarms
of the object that is represented.IltLogicalBaseRenderer.GraphicdefaultSizeHeight, defaultSizeWidth, INVISIBLE_BASE_RENDERER| Modifier | Constructor and Description |
|---|---|
protected |
BaseRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(IlvGraphic base)
This method is invoked to indicate to the base renderer which
IlvGraphic
it is used by. |
protected boolean |
containsMain(IlvPoint p,
IlvPoint tp,
IlvTransformer t,
IlvRect rect)
This implementation takes the transparency of the image into account.
|
void |
drawMain(Graphics g,
IlvTransformer t,
IlvRect rect)
Draws the main part of the base.
|
protected IltPolygon[] |
getExtraBorders(IlvRect rect)
Returns the borders of the image or
null, depending on the value
returned by IltLogicalImageBaseRendererFactory.isPolygonalBorder(). |
Dimension |
getPreferredSize()
Returns the preferred size of the base.
|
void |
initResources()
Initializes resources.
|
void |
setImageFactory(ilog.tgo.graphic.renderer.internal.IltImageBaseRendererFactory factory)
Sets the image factory.
|
createBaseRendererState, getLineSpec, isExtraBorderOutside, setHeight, setIconHeight, setIconWidth, setLineSpec, setPreferredSize, setWidth__isDottedBorderVisible, boundingBox, boundingBoxWithTransformer, contains, containsExtraBorders, draw, drawAlarmBorder, drawExtraBorder, drawExtraBorder, drawExtraBorders, drawSelectionBorder, dropResources, getAlarmBorderColor, getAlarmBorderWidth, getAlarmColorLevel, getBackground, getBaseRenderer, getBaseRendererState, getBorderColor, getBorderColor2, getBorderLineStyle, getBorderPalette, getBorderPattern, getBorderWidth, getBrightPalette, getDarkPalette, getDeprecatedBlinkingMode, getDetailLevel, getDottedBorderBackground, getDottedBorderForeground, getDottedBorderLineStyle, getDottedBorderPalette, getFillAngle, getFillEnd, getFillStart, getFillStyle, getFillTexture, getForeground, getPalette, getPattern, getRepresentationObject, getSelectionBorderBackground, getSelectionBorderForeground, getSelectionBorderLineStyle, getSelectionBorderWidth, getSourceImage, getView, initBaseRenderer, isAlarmBorderVisible, isAlarmColorVisible, isBaseSelectionBorderVisible, isDottedBorderVisible, isPolygonalBorder, isReliefBorders, isUsingBlinkingResources, setAlarmBorderColor, setAlarmBorderVisible, setAlarmBorderWidth, setAlarmColorLevel, setAlarmColorVisible, setBackground, setBaseRendererState, setBaseSelectionBorderVisible, setBorderColor, setBorderColor2, setBorderLineStyle, setBorderPattern, setBorderWidth, setDeprecatedBlinkingMode, setDetailLevel, setDottedBorderBackground, setDottedBorderForeground, setDottedBorderLineStyle, setDottedBorderVisible, setFillAngle, setFillEnd, setFillStart, setFillStyle, setFillTexture, setForeground, setPattern, setPolygonalBorder, setReliefBorders, setRepresentationObject, setSelectionBorderBackground, setSelectionBorderForeground, setSelectionBorderLineStyle, setSelectionBorderWidth, setSourceImage, setViewpublic void setImageFactory(ilog.tgo.graphic.renderer.internal.IltImageBaseRendererFactory factory)
public void initResources()
This function can be overridden in subclasses in order to initialize additional colors, patterns etc. If this method is overridden super.initResources() should be called.
initResources in class IltBaseRendererpublic void drawMain(Graphics g, IlvTransformer t, IlvRect rect)
drawMain in class IltLogicalBaseRendererg - As in draw.t - As in draw.rect - As in draw.public void attach(IlvGraphic base)
IltBaseRendererIlvGraphic
it is used by. The default implementation of this method does nothing.
Any subclass of the base renderer that needs the IlvGraphic may use the one
given when this method is invoked.attach in class IltBaseRendererprotected IltPolygon[] getExtraBorders(IlvRect rect)
null, depending on the value
returned by IltLogicalImageBaseRendererFactory.isPolygonalBorder().getExtraBorders in class IltBaseRendererrect - As in draw.IltAbstractImageBaseRendererFactory.isPolygonalBorder()protected boolean containsMain(IlvPoint p, IlvPoint tp, IlvTransformer t, IlvRect rect)
false for transparent pixels and true for opaque pixels.
Thus, when the user clicks the transparent part of the image,
no interaction occurs.containsMain in class IltBaseRendererp - The point to be tested.tp - The point p transformed by the transformer t.t - The transformation that was applied to the object when it was
drawn.rect - As in draw.IltBaseRenderer.drawMain(java.awt.Graphics, ilog.views.IlvTransformer, ilog.views.IlvRect)public Dimension getPreferredSize()
The preferred size is the one of the original image.
getPreferredSize in class IltLogicalBaseRenderer© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.