public abstract class TableDecorator 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 |
---|
TableDecorator()
Creates a new table decorator.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected boolean enabled
public TableDecorator()
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