csheets.ext.test.ui
Class TestableCellDecorator

java.lang.Object
  extended by csheets.ui.ext.CellDecorator
      extended by csheets.ext.test.ui.TestableCellDecorator

public class TestableCellDecorator
extends CellDecorator

A decorator for testable cells.

Author:
Einar Pehrson

Field Summary
 
Fields inherited from class csheets.ui.ext.CellDecorator
enabled
 
Constructor Summary
TestableCellDecorator()
          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 a test 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

TestableCellDecorator

public TestableCellDecorator()
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 a test 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