Java javax.swing.tree DefaultTreeCellRenderer fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.tree DefaultTreeCellRenderer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.tree DefaultTreeCellRenderer.

The text is from its open source code.

Subclass

javax.swing.tree.DefaultTreeCellRenderer has subclasses.
Click this link to see all its subclasses.

Constructor

DefaultTreeCellRenderer()
Creates a DefaultTreeCellRenderer .

Method

ColorgetBackgroundNonSelectionColor()
Returns the background color to be used for non selected nodes.
ColorgetBackgroundSelectionColor()
Returns the color to use for the background if node is selected.
ColorgetTextNonSelectionColor()
Returns the color the text is drawn with when the node isn't selected.
ColorgetTextSelectionColor()
Returns the color the text is drawn with when the node is selected.
voidsetBackgroundNonSelectionColor(Color newColor)
Sets the background color to be used for non selected nodes.
voidsetBackgroundSelectionColor(Color newColor)
Sets the color to use for the background if node is selected.
voidsetBorder(Border border)
Sets the border of this component.
voidsetClosedIcon(Icon newIcon)
Sets the icon used to represent non-leaf nodes that are not expanded.
voidsetFont(Font font)
Subclassed to map FontUIResources to null.
voidsetLeafIcon(Icon newIcon)
Sets the icon used to represent leaf nodes.
voidsetOpenIcon(Icon newIcon)
Sets the icon used to represent non-leaf nodes that are expanded.
voidsetTextNonSelectionColor(Color newColor)
Sets the color the text is drawn with when the node isn't selected.
voidsetTextSelectionColor(Color newColor)
Sets the color the text is drawn with when the node is selected.