csheets.ext.assertion.ui
Class AssertableCellDecorator

java.lang.Object
  extended by csheets.ui.ext.CellDecorator
      extended by csheets.ext.assertion.ui.AssertableCellDecorator

public class AssertableCellDecorator
extends CellDecorator

A decorator for assertable cells.

Author:
Einar Pehrson

Field Summary
 
Fields inherited from class csheets.ui.ext.CellDecorator
enabled
 
Constructor Summary
AssertableCellDecorator()
          Creates a new cell decorator.
 
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 csheets.ui.ext.CellDecorator
isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertableCellDecorator

public AssertableCellDecorator()
Creates a new cell decorator.

Method Detail

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 component
g - the graphics context on which drawing should be done
cell - the cell being rendered
selected - whether the cell is selected
hasFocus - whether the cell has focus