|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.shwing.swing.CellRenderer
public class CellRenderer
This renderer knows how to render the defaults for ListCell's, TableCell's and TreeCell's and it knows how to render primitive arrays (they are rendered as "(arr[0], arr[1],...)"), IconText items (rendered as an icon and text), NamedItems and
| Field Summary | |
|---|---|
static VariableNumberFormat |
doubleFormat
|
static VariableNumberFormat |
intFormat
|
| Constructor Summary | |
|---|---|
CellRenderer()
|
|
| Method Summary | |
|---|---|
static String |
format(Object obj)
Apply a consistent format to Number's and arrays of int[] and double[]. |
static CellExtractor |
getDefaultExtractor(Object o)
Find the most specific Extractor for class c. |
static void |
setDefaultExtractor(Class<?> c,
CellExtractor extractor)
Set the default extractor for a given class. |
static Component |
setupComponent(Object obj,
Icon ic,
Component c,
boolean useClosed)
Run a final pass on a label for a renderer. Currently this is mainly concerned with IconedItem's |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static VariableNumberFormat doubleFormat
public static VariableNumberFormat intFormat
| Constructor Detail |
|---|
public CellRenderer()
| Method Detail |
|---|
public static Component setupComponent(Object obj,
Icon ic,
Component c,
boolean useClosed)
obj - isSelected - label -
public static String format(Object obj)
obj -
public static CellExtractor getDefaultExtractor(Object o)
viewClass -
public static void setDefaultExtractor(Class<?> c,
CellExtractor extractor)
c - extractor -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||