public class DefaultTreeCellValueConverter extends Object implements TreeCellValueConverter
| Constructor and Description |
|---|
DefaultTreeCellValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getForeground(Component renderedComponent,
Object modelObject)
Returns the foreground color used in the representation of the object
|
protected JLabel |
getLabel(Component renderedComponent) |
String |
getValue(Component renderedComponent,
Object modelObject)
Returns the textual representation of the given tree object
|
boolean |
isBold(Component renderedComponent,
Object modelObject)
Indicates whether the given tree object is painted in bold
|
public String getValue(Component renderedComponent, Object modelObject)
TreeCellValueConvertergetValue in interface TreeCellValueConverterrenderedComponent - the Component returned by the JTree's renderermodelObject - the Object returned by the JTree's internal modelpublic boolean isBold(Component renderedComponent, Object modelObject)
TreeCellValueConverterisBold in interface TreeCellValueConverterpublic Color getForeground(Component renderedComponent, Object modelObject)
TreeCellValueConvertergetForeground in interface TreeCellValueConverterCopyright © 2004–2016. All rights reserved.