org.apache.batik.util.gui

Class DOMViewer.Panel.NodeRenderer

protected class DOMViewer.Panel.NodeRenderer extends DefaultTreeCellRenderer

To render the tree nodes.
Constructor Summary
NodeRenderer()
Creates a new NodeRenderer object.
Method Summary
protected shortgetNodeType(Object value)
Returns the DOM type of the given object.
ComponentgetTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
Sets the value of the current tree cell.

Constructor Detail

NodeRenderer

public NodeRenderer()
Creates a new NodeRenderer object.

Method Detail

getNodeType

protected short getNodeType(Object value)
Returns the DOM type of the given object.

Returns: the type or -1.

getTreeCellRendererComponent

public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
Sets the value of the current tree cell.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.