|
||||||||||
| 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.CellExtractor
public class CellExtractor
The CellExtractor interface makes an icon and reveals the encapsulated data that needs to be displayed for an object. The CellRenderer then can format any supported data that is returned.
| Constructor Summary | |
|---|---|
CellExtractor()
|
|
| Method Summary | |
|---|---|
Object |
getEncapsulatedData(Object o)
If o encapsulates some data that will be displayed and needs formatting, then return that data. |
Font |
getFont(Object value,
Font defaultFont)
Get a custom Font for the object |
Icon |
getIcon(Object o,
boolean expanded)
Return an icon for Object o. |
String |
getString(Object o)
|
Class<?>[] |
getSupportedClass()
Return a class that will not throw a ClassCastException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellExtractor()
| Method Detail |
|---|
public Icon getIcon(Object o,
boolean expanded)
o - expanded - true if it is expanded in a tree or selected in a list.
public Object getEncapsulatedData(Object o)
o -
public String getString(Object o)
public Class<?>[] getSupportedClass()
public Font getFont(Object value,
Font defaultFont)
value - defaultFont - The defaultFont object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||