jigcell.compare.compare2
Interface IViewColorer

All Superinterfaces:
javax.swing.table.TableCellRenderer
All Known Implementing Classes:
ImmediateHistoryRelativeViewColorer, ThresholdAbsoluteViewColorer, ThresholdRelativeViewColorer, TriColorViewColorer, ViewColorer

public interface IViewColorer
extends javax.swing.table.TableCellRenderer

A table renderer that can color the view of a Compare^2.

Additionally a public static method is required to be implemented:

where the first parameter will be the view that should be colored.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
static java.lang.String METHOD_GENERATE
          Name of the static method to be invoked for view colorers
static int MODE_RANKINGS
          Display comparison rankings
static int MODE_VALUES
          Display raw comparison values
 
Method Summary
 java.awt.Color getColorForCell(javax.swing.JTable table, java.lang.Object value, boolean selected, boolean focus, int row, int column)
          The color of a cell as it will appear in the table.
 java.lang.String getName()
          The name of this renderer.
 void setDisplayMode(int mode)
          Sets the display mode of this view colorer.
 
Methods inherited from interface javax.swing.table.TableCellRenderer
getTableCellRendererComponent
 

Field Detail

MODE_RANKINGS

static final int MODE_RANKINGS
Display comparison rankings

See Also:
Constant Field Values

MODE_VALUES

static final int MODE_VALUES
Display raw comparison values

See Also:
Constant Field Values

METHOD_GENERATE

static final java.lang.String METHOD_GENERATE
Name of the static method to be invoked for view colorers

See Also:
Constant Field Values
Method Detail

getColorForCell

java.awt.Color getColorForCell(javax.swing.JTable table,
                               java.lang.Object value,
                               boolean selected,
                               boolean focus,
                               int row,
                               int column)
The color of a cell as it will appear in the table.

Parameters:
table - Table to appear in
value - Data value
selected - Whether the value is selected
focus - Whether the value is focused
row - Value row
column - Value column

getName

java.lang.String getName()
The name of this renderer.


setDisplayMode

void setDisplayMode(int mode)
Sets the display mode of this view colorer.

Parameters:
mode - Display mode