48 * Displays an entry in a tree. 49 * <code>DefaultTreeCellRenderer</code> is not opaque and 50 * unless you subclass paint you should not change this. 51 * See <a 52 href="http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html">How to Use Trees</a> 53 * in <em>The Java Tutorial</em> 54 * for examples of customizing node display using this class. 55 * <p> 56 * The set of icons and colors used by {@code DefaultTreeCellRenderer} 57 * can be configured using the various setter methods. The value for 58 * each property is initialized from the defaults table. When the 59 * look and feel changes ({@code updateUI} is invoked), any properties 60 * that have a value of type {@code UIResource} are refreshed from the 61 * defaults table. The following table lists the mapping between 62 * {@code DefaultTreeCellRenderer} property and defaults table key: 63 * 64 * <table class="striped"> 65 * <caption>Properties</caption> 66 * <thead> 67 * <tr> 68 * <th>Property: 69 * <th>Key: 70 * </tr> 71 * </thead> 72 * <tbody> 73 * <tr><td>"leafIcon"<td>"Tree.leafIcon" 74 * <tr><td>"closedIcon"<td>"Tree.closedIcon" 75 * <tr><td>"openIcon"<td>"Tree.openIcon" 76 * <tr><td>"textSelectionColor"<td>"Tree.selectionForeground" 77 * <tr><td>"textNonSelectionColor"<td>"Tree.textForeground" 78 * <tr><td>"backgroundSelectionColor"<td>"Tree.selectionBackground" 79 * <tr><td>"backgroundNonSelectionColor"<td>"Tree.textBackground" 80 * <tr><td>"borderSelectionColor"<td>"Tree.selectionBorderColor" 81 * </tbody> 82 * </table> 83 * <p> 84 * <strong><a id="override">Implementation Note:</a></strong> 85 * This class overrides 86 * <code>invalidate</code>, 87 * <code>validate</code>, 88 * <code>revalidate</code>, 89 * <code>repaint</code>, 90 * and 91 * <code>firePropertyChange</code> 92 * solely to improve performance. 93 * If not overridden, these frequently called methods would execute code paths 94 * that are unnecessary for the default tree cell renderer. 95 * If you write your own renderer, 96 * take care to weigh the benefits and 97 * drawbacks of overriding these methods. 98 * 99 * <p> 100 * <strong>Warning:</strong> | 48 * Displays an entry in a tree. 49 * <code>DefaultTreeCellRenderer</code> is not opaque and 50 * unless you subclass paint you should not change this. 51 * See <a 52 href="http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html">How to Use Trees</a> 53 * in <em>The Java Tutorial</em> 54 * for examples of customizing node display using this class. 55 * <p> 56 * The set of icons and colors used by {@code DefaultTreeCellRenderer} 57 * can be configured using the various setter methods. The value for 58 * each property is initialized from the defaults table. When the 59 * look and feel changes ({@code updateUI} is invoked), any properties 60 * that have a value of type {@code UIResource} are refreshed from the 61 * defaults table. The following table lists the mapping between 62 * {@code DefaultTreeCellRenderer} property and defaults table key: 63 * 64 * <table class="striped"> 65 * <caption>Properties</caption> 66 * <thead> 67 * <tr> 68 * <th scope="col">Property 69 * <th scope="col">Key 70 * </tr> 71 * </thead> 72 * <tbody> 73 * <tr> 74 * <th scope="row">"leafIcon" 75 * <td>"Tree.leafIcon" 76 * <tr> 77 * <th scope="row">"closedIcon" 78 * <td>"Tree.closedIcon" 79 * <tr> 80 * <th scope="row">"openIcon" 81 * <td>"Tree.openIcon" 82 * <tr> 83 * <th scope="row">"textSelectionColor" 84 * <td>"Tree.selectionForeground" 85 * <tr> 86 * <th scope="row">"textNonSelectionColor" 87 * <td>"Tree.textForeground" 88 * <tr> 89 * <th scope="row">"backgroundSelectionColor" 90 * <td>"Tree.selectionBackground" 91 * <tr> 92 * <th scope="row">"backgroundNonSelectionColor" 93 * <td>"Tree.textBackground" 94 * <tr> 95 * <th scope="row">"borderSelectionColor" 96 * <td>"Tree.selectionBorderColor" 97 * </tbody> 98 * </table> 99 * <p> 100 * <strong><a id="override">Implementation Note:</a></strong> 101 * This class overrides 102 * <code>invalidate</code>, 103 * <code>validate</code>, 104 * <code>revalidate</code>, 105 * <code>repaint</code>, 106 * and 107 * <code>firePropertyChange</code> 108 * solely to improve performance. 109 * If not overridden, these frequently called methods would execute code paths 110 * that are unnecessary for the default tree cell renderer. 111 * If you write your own renderer, 112 * take care to weigh the benefits and 113 * drawbacks of overriding these methods. 114 * 115 * <p> 116 * <strong>Warning:</strong> |