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)
TreeCellValueConverter
getValue
in interface TreeCellValueConverter
renderedComponent
- the Component returned by the JTree's renderermodelObject
- the Object returned by the JTree's internal modelpublic boolean isBold(Component renderedComponent, Object modelObject)
TreeCellValueConverter
isBold
in interface TreeCellValueConverter
public Color getForeground(Component renderedComponent, Object modelObject)
TreeCellValueConverter
getForeground
in interface TreeCellValueConverter
Copyright © 2004–2016. All rights reserved.