|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.ui.ext.TableDecorator
public abstract class TableDecorator
A table decorator visualizes extension-specific data by drawing on top of a table'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 | |
|---|---|
TableDecorator()
Creates a new table decorator. |
|
| Method Summary | |
|---|---|
abstract void |
decorate(Graphics g,
SpreadsheetTable table)
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 TableDecorator()
| Method Detail |
|---|
public abstract void decorate(Graphics g,
SpreadsheetTable table)
g - the graphics context on which drawing should be donetable - the table displaying the spreadsheet to visualizepublic 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 | |||||||||