org.jcreme.swing.table.colormodel
Class ValueIndexedTableColorModel

java.lang.Object
  extended byorg.jcreme.swing.table.colormodel.AbstractValueIndexedTableColorModel
      extended byorg.jcreme.swing.table.colormodel.ValueIndexedTableColorModel
All Implemented Interfaces:
TableColorModel

public class ValueIndexedTableColorModel
extends AbstractValueIndexedTableColorModel

The purpose of this class is to have a specific background color for the lines that have a given reference column above a given Threshold value. (the value of a specified column is at a specified value).

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $

Constructor Summary
ValueIndexedTableColorModel()
           
 
Method Summary
 void setThresholdValue(java.lang.Comparable value)
          Sets the treshold value over which the task will be considered complete.
protected  boolean testThreshold(java.lang.Object value)
           
 
Methods inherited from class org.jcreme.swing.table.colormodel.AbstractValueIndexedTableColorModel
addTableColorModelListener, fireTableColorModelChanged, getBackgroundColor, getBackgroundColor, getForegroundColor, getForegroundColor, getListeners, getReferenceColumn, getSelectedBackgroundColor, getSelectedForegroundColor, getSelectedThresholdColor, getTableModel, getThresholdColor, removeTableColorModelListener, setBackgroundColor, setForegroundColor, setReferenceColumn, setSelectedBackgroundColor, setSelectedForegroundColor, setSelectedThresholdColor, setTableModel, setThresholdColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueIndexedTableColorModel

public ValueIndexedTableColorModel()
Method Detail

setThresholdValue

public void setThresholdValue(java.lang.Comparable value)
Sets the treshold value over which the task will be considered complete.

Parameters:
value - The value to use as a treshold.

testThreshold

protected boolean testThreshold(java.lang.Object value)
Specified by:
testThreshold in class AbstractValueIndexedTableColorModel


Copyright 2006 null. All Rights Reserved.