org.apache.batik.apps.svgbrowser
protected class DOMViewer.Panel.NodeRenderer extends DefaultTreeCellRenderer
Field Summary | |
---|---|
protected ImageIcon | commentIcon
The icon used to represent comments. |
protected ImageIcon | elementIcon
The icon used to represent elements. |
protected ImageIcon | piIcon
The icon used to represent processing instructions. |
protected ImageIcon | textIcon
The icon used to represent text. |
Constructor Summary | |
---|---|
NodeRenderer()
Creates a new NodeRenderer object. |
Method Summary | |
---|---|
protected short | getNodeType(Object value)
Returns the DOM type of the given object. |
Component | getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
Sets the value of the current tree cell. |
Returns: the type or -1.