|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
org.apache.batik.apps.svgbrowser.DOMDocumentTree
public class DOMDocumentTree
A swing tree to represent DOM Document.
| 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. |
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DropLocation, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| 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. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected EventListenerList eventListeners
protected Insets autoscrollInsets
protected Insets scrollUnits
protected DOMDocumentTreeController controller
| Constructor Detail |
|---|
public DOMDocumentTree(TreeNode root,
DOMDocumentTreeController controller)
root - Root nodecontroller - The tree controller| Method Detail |
|---|
public void autoscroll(Point point)
autoscroll in interface Autoscrollpublic Insets getAutoscrollInsets()
getAutoscrollInsets in interface Autoscrollpublic void addListener(DOMDocumentTree.DOMDocumentTreeListener listener)
listener - The listener to addpublic void fireDropCompleted(DOMDocumentTree.DOMDocumentTreeEvent event)
event - The associated DndTreeSupportEvent eventpublic void fireOnAutoscroll(DOMDocumentTree.DOMDocumentTreeEvent event)
event - The associated DndTreeSupportEvent eventprotected Node getDomNodeFromTreeNode(DefaultMutableTreeNode treeNode)
treeNode - The given DefaultMutableTreeNode
protected ArrayList getNodeListForParent(ArrayList potentialChildren,
Node parentNode)
potentialChildren - The given potential childrenparentNode - The given parent node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||