public abstract class CellDecorator extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled
Whether the decorator should be used when rendering, default is false
|
Constructor and Description |
---|
CellDecorator()
Creates a new cell decorator.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
decorate(JComponent component,
Graphics g,
Cell cell,
boolean selected,
boolean hasFocus)
Decorates the given graphics context, by drawing visualizations of
extension-specific data on it.
|
boolean |
isEnabled()
Returns whether the decorator should be used when rendering.
|
void |
setEnabled(boolean enabled)
Sets whether the decorator should be used when rendering.
|
protected boolean enabled
public CellDecorator()
public abstract void decorate(JComponent component, Graphics g, Cell cell, boolean selected, boolean hasFocus)
component
- the cell renderer componentg
- the graphics context on which drawing should be donecell
- the cell being renderedselected
- whether the cell is selectedhasFocus
- whether the cell has focuspublic final boolean isEnabled()
public final void setEnabled(boolean enabled)
enabled
- whether the decorator should be used when rendering