public abstract class IltCardCarrierBaseRenderer extends IltShelfItemContainerBaseRenderer
IltCardCarrier
Modifier and Type | Class and Description |
---|---|
static class |
IltCardCarrierBaseRenderer.Standard
The base renderer for the standard CardCarrier representation.
|
Modifier | Constructor and Description |
---|---|
protected |
IltCardCarrierBaseRenderer()
Default constructor
|
protected |
IltCardCarrierBaseRenderer(ilog.tgo.graphic.renderer.internal.IltBaseRendererState state)
Used for compatibility with previous drawers.
|
Modifier and Type | Method and Description |
---|---|
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState |
createBaseRendererState()
Resets the properties
|
protected void |
drawExtraBorders(Graphics g,
IlvTransformer t,
IlvRect rect)
Draws the extra borders.
|
protected IlvRect |
getBottomRect(IlvRect drawRect)
Returns the rectangle at the bottom of the card carrier.
|
int |
getBottomSpacing()
Retuns the spacing that is part of the card carrier area.
|
protected IlvRect |
getSlotRect(int slotIndex,
double slotSpan,
IlvRect drawRect)
Returns the rectangle where the shelf item at the given slot index should
be drawn.
|
IlvRect |
getSlotRect(int slotXIndex,
double slotXSpan,
int slotYIndex,
double slotYSpan,
IlvRect drawRect)
Returns the rectangle where the shelf item at the given slot position
(defined by
slotXIndex and slotYIndex indexes)
should be drawn. |
protected IlvRect |
getSlotRect(int slotIndex,
IlvRect drawRect)
Returns the rectangle where the shelf item at the given slot index should
be drawn.
|
protected IlvRect |
getSlotsBBox(IlvRect drawRect)
Returns the bounding box of all the slots in this shelf item container.
|
protected boolean |
isExtraBorderOutside()
Indicates whether the extra borders should be drawn inside or outside
the
rect used to call
drawExtraBorders . |
void |
setBottomSpacing(int spacing)
Sets the spacing of the card carrier area.
|
getDirection, getItem, getItem, getItemSpan, getSlotArray, getSlotBorderWidth, getSlotCount, getSlotCountX, getSlotCountY, getSlotRect, getSlotSepSize, getSlotSizes, getSlotSpanX, getSlotSpanY, isVertical, setDirection, setSlotArray, setSlotSizes
__isDottedBorderVisible, attach, boundingBox, boundingBoxWithTransformer, contains, containsExtraBorders, containsMain, draw, drawAlarmBorder, drawExtraBorder, drawExtraBorder, drawMain, drawSelectionBorder, dropResources, getAlarmBorderColor, getAlarmBorderWidth, getAlarmColorLevel, getBackground, getBaseRenderer, getBaseRendererState, getBorderColor, getBorderColor2, getBorderLineStyle, getBorderPalette, getBorderPattern, getBorderWidth, getBrightPalette, getDarkPalette, getDeprecatedBlinkingMode, getDetailLevel, getDottedBorderBackground, getDottedBorderForeground, getDottedBorderLineStyle, getDottedBorderPalette, getExtraBorders, getFillAngle, getFillEnd, getFillStart, getFillStyle, getFillTexture, getForeground, getPalette, getPattern, getRepresentationObject, getSelectionBorderBackground, getSelectionBorderForeground, getSelectionBorderLineStyle, getSelectionBorderWidth, getSourceImage, getView, initBaseRenderer, initResources, 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, setView
protected IltCardCarrierBaseRenderer()
protected IltCardCarrierBaseRenderer(ilog.tgo.graphic.renderer.internal.IltBaseRendererState state)
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState createBaseRendererState()
createBaseRendererState
in class IltShelfItemContainerBaseRenderer
public int getBottomSpacing()
public void setBottomSpacing(int spacing)
protected IlvRect getBottomRect(IlvRect drawRect)
This function is not meant to be overridden in subclasses.
drawRect
- the drawing rectangle of the IltCardCarrierIlvRect
with integer coordinatesprotected IlvRect getSlotsBBox(IlvRect drawRect)
This function is not meant to be overridden in subclasses.
This implementation returns drawRect
reduced by the size
of the bottom rectangle of the IltCardCarrier.
getSlotsBBox
in class IltShelfItemContainerBaseRenderer
drawRect
- the drawing rectangle of the IltCardCarrierpublic IlvRect getSlotRect(int slotXIndex, double slotXSpan, int slotYIndex, double slotYSpan, IlvRect drawRect)
slotXIndex
and slotYIndex
indexes)
should be drawn.getSlotRect
in class IltShelfItemContainerBaseRenderer
slotXIndex
- The x
index coordinate of the slot for
which the drawing rectangle will be computedslotXSpan
- The span of the slot along the x
axisslotYIndex
- The y
index coordinate of the slot for
which the drawing rectangle will be computed
(not used for this version of Card Carrier)slotYSpan
- The span of the slot along the y
axis
(not used for this version of Card Carrier)drawRect
- The drawing rectangle of the shelf item containerIlvRect
with integer coordinatesprotected void drawExtraBorders(Graphics g, IlvTransformer t, IlvRect rect)
drawExtraBorders
in class IltBaseRenderer
g
- as in drawt
- as in drawrect
- as in draw
This implementation of this function calls drawExtraBorder once for each border that has to be drawn. The borders are drawn inside the bottom rectangle of the IltCardCarrier.
IltBaseRenderer.drawExtraBorder(Graphics, IlvTransformer, IlvRect, IltPalette, int, int)
protected boolean isExtraBorderOutside()
rect
used to call
drawExtraBorders
.
This implementation returns false
as we assume that for
card carriers the borders should be drawn inside the bottom rectangle.
isExtraBorderOutside
in class IltBaseRenderer
protected IlvRect getSlotRect(int slotIndex, IlvRect drawRect)
This function is not meant to be overridden in subclasses.
getSlotRect
in class IltShelfItemContainerBaseRenderer
slotIndex
- the index of the slotdrawRect
- the drawing rectangle of the IltCardCarrierIlvRect
with integer coordinatesprotected IlvRect getSlotRect(int slotIndex, double slotSpan, IlvRect drawRect)
This function is not meant to be overridden in subclasses.
getSlotRect
in class IltShelfItemContainerBaseRenderer
slotIndex
- the index of the slotslotSpan
- the span of the shelf item at the given slotIndexdrawRect
- the drawing rectangle of the IltCardCarrierIlvRect
with integer coordinates© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.