public abstract class IltShelfItemContainerBaseRenderer extends IltBaseRenderer
Modifier | Constructor and Description |
---|---|
protected |
IltShelfItemContainerBaseRenderer()
Default constructor.
|
protected |
IltShelfItemContainerBaseRenderer(ilog.tgo.graphic.renderer.internal.IltBaseRendererState state)
For compatibility purposes, internal use only !
|
Modifier and Type | Method and Description |
---|---|
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState |
createBaseRendererState()
Resets the properties
|
int |
getDirection()
Returns the direction of the outermost shelf item container.
|
protected IltObject |
getItem(int slotIndex)
Returns the IltShelfItem at the given
slotIndex . |
protected IltObject |
getItem(int slotXIndex,
int slotYIndex)
Returns the child item occupying the slot defined by
slotXIndex and slotYIndex . |
protected double |
getItemSpan(int slotIndex)
Returns the span value along the
x axis for the
IltShelfItem object at the given slot position. |
protected ilog.tgo.model.internal.IltSlotArray |
getSlotArray()
Returns the information about slots present in this container.
|
protected int |
getSlotBorderWidth()
Returns the border thickness of the slots.
|
protected int |
getSlotCount()
Access the total number of slots the container has.
|
protected int |
getSlotCountX()
Access the total number of slots in the shelf along
x
axis. |
protected int |
getSlotCountY()
Access the total number of slots in the shelf along
y
axis. |
protected IlvRect |
getSlotRect(int slotIndex,
double slotSpan,
IlvRect drawRect)
Returns the rectangle where the shelf item at the given slotIndex should
be drawn.
|
abstract 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 slotIndex should
be drawn.
|
protected IlvRect |
getSlotRect(int slotXIndex,
int slotYIndex,
IlvRect drawRect)
Returns the rectangle where the shelf item at the given slot position
(defined by
slotXIndex and slotYIndex indexes)
should be drawn. |
protected abstract IlvRect |
getSlotsBBox(IlvRect drawRect)
Returns the bounding box of all the slots in this shelf item container.
|
protected int |
getSlotSepSize()
Returns the distance separating two slots.
|
protected ilog.tgo.model.internal.IltSlotSizes |
getSlotSizes()
Returns the information about slots sizes present in this container.
|
protected double |
getSlotSpanX(int xIndex,
int yIndex)
Retrieves the number of slots spanned through the
x
axis by the children occupying the given slot x and
y position. |
protected double |
getSlotSpanY(int xIndex,
int yIndex)
Retrieves the number of slots spanned through the
y
axis by the children occupying the given slot x and
y position. |
protected boolean |
isVertical()
Returns if the shelf container is vertical or not.
|
void |
setDirection(int d)
Sets the direction of the outermost shelf item container.
|
void |
setSlotArray(ilog.tgo.model.internal.IltSlotArray s)
Sets the information about slots present in this container.
|
void |
setSlotSizes(ilog.tgo.model.internal.IltSlotSizes s)
Sets the information about slot sizes.
|
__isDottedBorderVisible, attach, boundingBox, boundingBoxWithTransformer, contains, containsExtraBorders, containsMain, draw, drawAlarmBorder, drawExtraBorder, drawExtraBorder, drawExtraBorders, 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, isExtraBorderOutside, 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 IltShelfItemContainerBaseRenderer()
protected IltShelfItemContainerBaseRenderer(ilog.tgo.graphic.renderer.internal.IltBaseRendererState state)
For compatibility purposes, internal use only !
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState createBaseRendererState()
createBaseRendererState
in class IltBaseRenderer
public int getDirection()
public void setDirection(int d)
public void setSlotArray(ilog.tgo.model.internal.IltSlotArray s)
protected ilog.tgo.model.internal.IltSlotArray getSlotArray()
public void setSlotSizes(ilog.tgo.model.internal.IltSlotSizes s)
protected ilog.tgo.model.internal.IltSlotSizes getSlotSizes()
protected boolean isVertical()
protected int getSlotCount()
This function is not meant to be overridden in subclasses.
x
and
y
dimensionsprotected int getSlotCountX()
x
axis.This function is not meant to be overridden in subclasses.
x
axis.protected int getSlotCountY()
y
axis.This function is not meant to be overridden in subclasses.
y
axis.protected IltObject getItem(int slotXIndex, int slotYIndex)
slotXIndex
and slotYIndex
.The slot might be partially occupied by the returned item (if the corresponding slot span are not an integer).
This function is not meant to be overridden in subclasses.
slotXIndex
- The slot index for the X
coordinateslotYIndex
- The slot index for the Y
coordinateprotected double getSlotSpanX(int xIndex, int yIndex)
x
axis by the children occupying the given slot x
and
y
position.
If no item is present in the slot, it returns the number of
contiguous empty slots around (x
axis) the given slot.
This function is not meant to be overridden in subclasses.
xIndex
- The x
slot coordinateyIndex
- The y
slot coordinatex
axisprotected double getSlotSpanY(int xIndex, int yIndex)
y
axis by the children occupying the given slot x
and
y
position.
If no item is present in the slot, it returns the number of
contiguous empty slots around (y
axis) the given slot.
This function is not meant to be overridden in subclasses.
xIndex
- The x
slot coordinateyIndex
- The y
slot coordinatey
axisprotected int getSlotSepSize()
This function is not meant to be overridden in subclasses.
protected int getSlotBorderWidth()
This function is not meant to be overridden in subclasses.
protected abstract IlvRect getSlotsBBox(IlvRect drawRect)
drawRect
- the drawing rectangle of the shelf item containerprotected IlvRect getSlotRect(int slotXIndex, int slotYIndex, IlvRect drawRect)
slotXIndex
and slotYIndex
indexes)
should be drawn.slotXIndex
- The x
index coordinate of the slot for
which the drawing rectangle will be computedslotYIndex
- The y
index coordinate of the slot for
which the drawing rectangle will be computeddrawRect
- The drawing rectangle of the shelf item containerIlvRect
with integer coordinatespublic abstract IlvRect getSlotRect(int slotXIndex, double slotXSpan, int slotYIndex, double slotYSpan, IlvRect drawRect)
slotXIndex
and slotYIndex
indexes)
should be drawn.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 computedslotYSpan
- The span of the slot along the y
axisdrawRect
- The drawing rectangle of the shelf item containerIlvRect
with integer coordinatesprotected IltObject getItem(int slotIndex)
slotIndex
.
This function is not meant to be overridden in subclasses.
protected double getItemSpan(int slotIndex)
x
axis for the
IltShelfItem
object at the given slot position.This function is not meant to be overridden in subclasses.
protected IlvRect getSlotRect(int slotIndex, IlvRect drawRect)
slotIndex
- the index of the slot for which the drawing rectangle
will be computeddrawRect
- the drawing rectangle of the shelf item containerIlvRect
with integer coordinatesprotected IlvRect getSlotRect(int slotIndex, double slotSpan, IlvRect drawRect)
slotIndex
- the index of the slot for which the drawing rectangle
will be computedslotSpan
- the span of the shelf item at the given slotIndexdrawRect
- the drawing rectangle of the shelf item containerIlvRect
with integer coordinates© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.