Example usage for Java javax.swing.tree DefaultTreeCellRenderer fields, constructors, methods, implement or subclass
The text is from its open source code.
DefaultTreeCellRenderer() Creates a DefaultTreeCellRenderer . |
Color | getBackgroundNonSelectionColor() Returns the background color to be used for non selected nodes. |
Color | getBackgroundSelectionColor() Returns the color to use for the background if node is selected. |
Color | getTextNonSelectionColor() Returns the color the text is drawn with when the node isn't selected. |
Color | getTextSelectionColor() Returns the color the text is drawn with when the node is selected. |
void | setBackgroundNonSelectionColor(Color newColor) Sets the background color to be used for non selected nodes. |
void | setBackgroundSelectionColor(Color newColor) Sets the color to use for the background if node is selected. |
void | setBorder(Border border) Sets the border of this component. |
void | setClosedIcon(Icon newIcon) Sets the icon used to represent non-leaf nodes that are not expanded. |
void | setFont(Font font) Subclassed to map FontUIResource s to null. |
void | setLeafIcon(Icon newIcon) Sets the icon used to represent leaf nodes. |
void | setOpenIcon(Icon newIcon) Sets the icon used to represent non-leaf nodes that are expanded. |
void | setTextNonSelectionColor(Color newColor) Sets the color the text is drawn with when the node isn't selected. |
void | setTextSelectionColor(Color newColor) Sets the color the text is drawn with when the node is selected. |