|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IViewColorer
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.
| 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 |
|---|
static final int MODE_RANKINGS
static final int MODE_VALUES
static final java.lang.String METHOD_GENERATE
| Method Detail |
|---|
java.awt.Color getColorForCell(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
boolean focus,
int row,
int column)
table - Table to appear invalue - Data valueselected - Whether the value is selectedfocus - Whether the value is focusedrow - Value rowcolumn - Value columnjava.lang.String getName()
void setDisplayMode(int mode)
mode - Display mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||