|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.ui.ext.CellDecorator
public abstract class CellDecorator
A cell decorator visualizes extension-specific data by drawing on top of a cell's graphics context. Decorators should respect the enabled state set on them.
| Field Summary | |
|---|---|
protected boolean |
enabled
Whether the decorator should be used when rendering, default is false |
| Constructor Summary | |
|---|---|
CellDecorator()
Creates a new cell decorator. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean enabled
| Constructor Detail |
|---|
public CellDecorator()
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||