public class Grouping.CellPainter extends CellImageButtonPainter<java.lang.Integer,java.lang.Integer>
collapsedImage, expanded, expandedImage, frozenX, frozenY, gc, hasChildren, image, isSelected, NAME_BACKGORUND, NAME_CELLS, NAME_DRAG_ITEM_X, NAME_DRAG_ITEM_Y, NAME_EMBEDDED_CONTROLS, NAME_EMULATED_CONTROLS, NAME_FOCUS_CELL, NAME_FREEZE_HEAD_LINE_X, NAME_FREEZE_HEAD_LINE_Y, NAME_FREEZE_TAIL_LINE_X, NAME_FREEZE_TAIL_LINE_Y, NAME_FROZEN_HEAD_HEAD, NAME_FROZEN_HEAD_NONE, NAME_FROZEN_HEAD_TAIL, NAME_FROZEN_NONE_HEAD, NAME_FROZEN_NONE_NONE, NAME_FROZEN_NONE_TAIL, NAME_FROZEN_TAIL_HEAD, NAME_FROZEN_TAIL_NONE, NAME_FROZEN_TAIL_TAIL, NAME_LINES_X, NAME_LINES_Y, nodeImageSize, SCOPE_CELLS, SCOPE_CELLS_ITEM_X, SCOPE_CELLS_ITEM_Y, SCOPE_CELLS_X, SCOPE_CELLS_Y, SCOPE_ENTIRE, SCOPE_LINES_X, SCOPE_LINES_Y, selectionHighlight, style, text, textLayout, textSize
Constructor and Description |
---|
Grouping.CellPainter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getToggleState(java.lang.Integer indexX,
java.lang.Integer indexY)
Returns a three state toggle status of the given cell with the following consequences:
null - no image displayed
true - trueImage displayed
false - falseImage displayed
|
protected boolean |
init()
Allows graphic optimization by performing operation that can be taken out
of the cell painting loop.
|
void |
setup(java.lang.Integer indexX,
java.lang.Integer indexY)
Configures the painter properties according to the given indexes.
|
void |
setupSpatial(java.lang.Integer indexX,
java.lang.Integer indexY)
Overrides the default method setting the image related to toggle state.
|
isOverImage, setToggleImages
align, clean, clipText, computeSize, dispose, getData, getName, getScope, getZone, hasTreeLinesVisible, isEnabled, isTreeEnabled, paint, setData, setEnabled, setNodeImages, setTreeLinesVisible, setTreeVisible
protected boolean init()
Painter
If this method returns false the
Painter.paint(int, int, int, int)
and Painter.clean()
methods will not be executed.
public java.lang.Boolean getToggleState(java.lang.Integer indexX, java.lang.Integer indexY)
CellImageButtonPainter
getToggleState
in class CellImageButtonPainter<java.lang.Integer,java.lang.Integer>
public void setupSpatial(java.lang.Integer indexX, java.lang.Integer indexY)
CellImageButtonPainter
setupSpatial
in class CellImageButtonPainter<java.lang.Integer,java.lang.Integer>
indexX
- cell index on the horizontal axisindexY
- cell index on the vertical axispublic void setup(java.lang.Integer indexX, java.lang.Integer indexY)
Painter
Default implementation invokes Painter.setupSpatial(Number, Number)
and determines if the cell is selected, therefore when overridden should
call super.setup
.
Copyright © 2011 netanel.pl. All Rights Reserved.