org.jcreme.swing.table.colormodel
Class GeneralValueIndexedTableColorModel

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

public class GeneralValueIndexedTableColorModel
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
GeneralValueIndexedTableColorModel()
           
 
Method Summary
 void setThresholdValue(java.lang.Object value, java.util.Comparator comp)
          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

GeneralValueIndexedTableColorModel

public GeneralValueIndexedTableColorModel()
Method Detail

setThresholdValue

public void setThresholdValue(java.lang.Object value,
                              java.util.Comparator comp)
Sets the treshold value over which the task will be considered complete.

Parameters:
value - The value to use as a treshold.
comp - the Comparator used to determine whether values are breaking the threshold.

testThreshold

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


Copyright 2006 null. All Rights Reserved.