All Known Implementing Classes:
IconNodeRenderer, ProjectTreeRenderer, SynthTreeCellRenderer, DefaultTreeCellRenderer, FileCellRenderer, FolderListTreeCellRenderer, ContactListTreeCellRenderer
Rob - DavisRay - RyanScott - Violet| Method from javax.swing.tree.TreeCellRenderer Summary: |
|---|
| getTreeCellRendererComponent |
| Method from javax.swing.tree.TreeCellRenderer Detail: |
|---|
value.
If selected is true, the cell will be drawn as if
selected. If expanded is true the node is currently
expanded and if leaf is true the node represents a
leaf and if hasFocus is true the node currently has
focus. tree is the JTree the receiver is being
configured for. Returns the Component that the renderer
uses to draw the value.
The
JTree.DropLocation dropLocation = tree.getDropLocation();
if (dropLocation != null
&& dropLocation.getChildIndex() == -1
&& tree.getRowForPath(dropLocation.getPath()) == row) {
// this row represents the current drop location
// so render it specially, perhaps with a different color
}
|