csheets.ext.assertion.ui
Class AssertableCellDecorator
java.lang.Object
csheets.ui.ext.CellDecorator
csheets.ext.assertion.ui.AssertableCellDecorator
public class AssertableCellDecorator
- extends CellDecorator
A decorator for assertable cells.
- Author:
- Einar Pehrson
|
Method Summary |
void |
decorate(JComponent component,
Graphics g,
Cell cell,
boolean selected,
boolean hasFocus)
Decorates the given graphics context if the cell being rendered
has an assertion error. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssertableCellDecorator
public AssertableCellDecorator()
- Creates a new cell decorator.
decorate
public void decorate(JComponent component,
Graphics g,
Cell cell,
boolean selected,
boolean hasFocus)
- Decorates the given graphics context if the cell being rendered
has an assertion error.
- Specified by:
decorate in class CellDecorator
- Parameters:
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 focus