org.apache.batik.apps.svgbrowser

Class DOMViewer.Panel.NodeInsertionHandler

protected class DOMViewer.Panel.NodeInsertionHandler extends Object implements EventListener

Handles "DOMNodeInserted" event.
Method Summary
protected intfindIndexToInsert(DefaultMutableTreeNode parentNode, DefaultMutableTreeNode newParentNode)
Compares the children of the two tree nodes and returns the index of the first difference.
voidhandleEvent(Event evt)

Method Detail

findIndexToInsert

protected int findIndexToInsert(DefaultMutableTreeNode parentNode, DefaultMutableTreeNode newParentNode)
Compares the children of the two tree nodes and returns the index of the first difference.

Parameters: parentNode The old tree node newParentNode The new tree node

Returns: first child that differs

handleEvent

public void handleEvent(Event evt)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.