javax.help.plaf.basic
Class BasicTOCCellRenderer
DefaultTreeCellRenderer
javax.help.plaf.basic.BasicTOCCellRenderer
public class BasicTOCCellRenderer
extends DefaultTreeCellRenderer
Basic cell renderer for TOC UI.
BasicTOCCellRenderer
public BasicTOCCellRenderer(Map map)
BasicTOCCellRenderer
public BasicTOCCellRenderer(Map map,
TOCView view)
getClosedIcon
public Icon getClosedIcon()
getLeafIcon
public Icon getLeafIcon()
getOpenIcon
public Icon getOpenIcon()
getTreeCellRendererComponent
public Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Configures the renderer based on the components passed in.
Sets the value from messaging value with toString().
The foreground color is set based on the selection and the icon
is set based on on leaf and expanded.