|
|||||||||||
| 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.argouml.ui.DisplayTextTree
org.argouml.ui.explorer.ExplorerTree
org.argouml.ui.explorer.DnDExplorerTree
This class extends the default Argo JTree with Drag and drop capabilities.
And it adds the 'copy to clipboard' capability for diagrams. See:
http://java.sun.com/j2se/1.3/docs/guide/swing/KeyBindChanges.html
| Nested Class Summary | |
(package private) class |
DnDExplorerTree.ArgoDropTargetListener
|
(package private) class |
DnDExplorerTree.DnDTreeSelectionListener
records the selected path for later use during dnd. |
| Nested classes inherited from class org.argouml.ui.explorer.ExplorerTree |
ExplorerTree.ExplorerTargetListener, ExplorerTree.ExplorerTreeExpansionListener, ExplorerTree.ExplorerTreeWillExpandListener, ExplorerTree.NavigationTreeSelectionListener, ExplorerTree.NavigatorMouseListener, ExplorerTree.ProjectPropertyChangeListener |
| Nested classes inherited from class javax.swing.JTree |
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
private static String |
DIAGRAM_TO_CLIPBOARD_ACTION
|
private DragSource |
dragSource
dnd source. |
private static Logger |
LOG
|
private TreePath |
selectedTreePath
The selected node. |
| Fields inherited from class org.argouml.ui.explorer.ExplorerTree |
|
| Fields inherited from class org.argouml.ui.DisplayTextTree |
|
| 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.Container |
|
| 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 | |
DnDExplorerTree()
Creates a new instance of DnDArgoJTree. |
|
| Method Summary | |
void |
dragDropEnd(DragSourceDropEvent dragSourceDropEvent)
DragSourceListener empty implementation - not used. |
void |
dragEnter(DragSourceDragEvent dragSourceDragEvent)
DragSourceListener empty implementation - not used. |
void |
dragExit(DragSourceEvent dragSourceEvent)
DragSourceListener empty implementation - not used. |
void |
dragGestureRecognized(DragGestureEvent dragGestureEvent)
Recognises the start of the drag. |
void |
dragOver(DragSourceDragEvent dragSourceDragEvent)
DragSourceListener empty implementation - not used. |
void |
dropActionChanged(DragSourceDragEvent dragSourceDragEvent)
DragSourceListener empty implementation - not used. |
| Methods inherited from class org.argouml.ui.explorer.ExplorerTree |
convertValueToText |
| Methods inherited from class org.argouml.ui.DisplayTextTree |
fireTreeCollapsed, fireTreeExpanded, getExpandedPaths, setModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final Logger LOG
private static final String DIAGRAM_TO_CLIPBOARD_ACTION
private TreePath selectedTreePath
private DragSource dragSource
| Constructor Detail |
public DnDExplorerTree()
| Method Detail |
public void dragGestureRecognized(DragGestureEvent dragGestureEvent)
dragGestureRecognized in interface DragGestureListenerDragGestureListener.dragGestureRecognized(java.awt.dnd.DragGestureEvent)public void dragDropEnd(DragSourceDropEvent dragSourceDropEvent)
dragDropEnd in interface DragSourceListenerDragSourceListener.dragDropEnd(java.awt.dnd.DragSourceDropEvent)public void dragEnter(DragSourceDragEvent dragSourceDragEvent)
dragEnter in interface DragSourceListenerDragSourceListener.dragEnter(java.awt.dnd.DragSourceDragEvent)public void dragExit(DragSourceEvent dragSourceEvent)
dragExit in interface DragSourceListenerDragSourceListener.dragExit(java.awt.dnd.DragSourceEvent)public void dragOver(DragSourceDragEvent dragSourceDragEvent)
dragOver in interface DragSourceListenerDragSourceListener.dragOver(java.awt.dnd.DragSourceDragEvent)public void dropActionChanged(DragSourceDragEvent dragSourceDragEvent)
dropActionChanged in interface DragSourceListenerDragSourceListener.dropActionChanged(java.awt.dnd.DragSourceDragEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |