org.apache.batik.apps.svgbrowser
public class DOMDocumentTree extends JTree implements Autoscroll
Nested Class Summary | |
---|---|
static class | DOMDocumentTree.DOMDocumentTreeAdapter
The adapter for the DOMDocumentTreeListener. |
static class | DOMDocumentTree.DOMDocumentTreeEvent
Event to pass to listener. |
static interface | DOMDocumentTree.DOMDocumentTreeListener
The DOMDocumentTreeListener. |
static class | DOMDocumentTree.DropCompletedInfo
Contains the info for the 'dropCompleted' Event. |
static class | DOMDocumentTree.TransferableTreeNode
Transferable tree node. |
static class | DOMDocumentTree.TransferData
The data being transfered on dnd. |
class | DOMDocumentTree.TreeDragSource
The JTree drag source wrapper. |
class | DOMDocumentTree.TreeDropTargetListener
Tree as a drop target listener. |
Field Summary | |
---|---|
protected Insets | autoscrollInsets
The insets where autoscrolling is active. |
protected DOMDocumentTreeController | controller
The controller for this tree. |
protected EventListenerList | eventListeners
Listeners list. |
protected Insets | scrollUnits
How much to scroll. |
Constructor Summary | |
---|---|
DOMDocumentTree(TreeNode root, DOMDocumentTreeController controller)
Creates the DOMDocumentTree.
|
Method Summary | |
---|---|
void | addListener(DOMDocumentTree.DOMDocumentTreeListener listener)
Adds the listener to the listener list.
|
void | autoscroll(Point point) |
void | fireDropCompleted(DOMDocumentTree.DOMDocumentTreeEvent event)
Fires the dropCompleted event.
|
void | fireOnAutoscroll(DOMDocumentTree.DOMDocumentTreeEvent event)
Fires the dropCompleted event.
|
Insets | getAutoscrollInsets() |
protected Node | getDomNodeFromTreeNode(DefaultMutableTreeNode treeNode)
Gets the associated org.w3c.dom.Node from the DefaultMutableTreeNode
|
protected ArrayList | getNodeListForParent(ArrayList potentialChildren, Node parentNode)
Finds and returns a group of nodes that can be appended to the given
parent node.
|
Parameters: root Root node controller The tree controller
Parameters: listener The listener to add
Parameters: event The associated DndTreeSupportEvent event
Parameters: event The associated DndTreeSupportEvent event
Parameters: treeNode The given DefaultMutableTreeNode
Returns: the associated Node
Parameters: potentialChildren The given potential children parentNode The given parent node
Returns: list of nodes that can be appended to the given parent