Gridarta Editor
net.sf.gridarta.gui.mapmenu.TreeDragSource Class Reference

Implements a drag source for JTree instances. More...

+ Collaboration diagram for net.sf.gridarta.gui.mapmenu.TreeDragSource:

Public Member Functions

 TreeDragSource (@NotNull final JTree tree, final int actions)
 Creates a new instance. More...
 

Private Attributes

MutableTreeNode draggedTreeNode
 The MutableTreeNode being dragged. More...
 
final DragSource dragSource = new DragSource()
 The DragSource for tree. More...
 
final DragSourceListener dragSourceListener
 The DragSourceListener attached to dragSource. More...
 
final JTree tree
 The JTree being monitored. More...
 

Detailed Description

Implements a drag source for JTree instances.

Author
Andreas Kirschbaum

Definition at line 42 of file TreeDragSource.java.

Constructor & Destructor Documentation

◆ TreeDragSource()

net.sf.gridarta.gui.mapmenu.TreeDragSource.TreeDragSource ( @NotNull final JTree  tree,
final int  actions 
)

Creates a new instance.

Parameters
treethe tree to monitor
actionsthe actions to support

Definition at line 114 of file TreeDragSource.java.

References net.sf.gridarta.gui.mapmenu.TreeDragSource.tree.

Member Data Documentation

◆ draggedTreeNode

MutableTreeNode net.sf.gridarta.gui.mapmenu.TreeDragSource.draggedTreeNode
private

The MutableTreeNode being dragged.

Definition at line 60 of file TreeDragSource.java.

◆ dragSource

final DragSource net.sf.gridarta.gui.mapmenu.TreeDragSource.dragSource = new DragSource()
private

The DragSource for tree.

Definition at line 54 of file TreeDragSource.java.

◆ dragSourceListener

final DragSourceListener net.sf.gridarta.gui.mapmenu.TreeDragSource.dragSourceListener
private

The DragSourceListener attached to dragSource.

Definition at line 66 of file TreeDragSource.java.

◆ tree

final JTree net.sf.gridarta.gui.mapmenu.TreeDragSource.tree
private

The JTree being monitored.

Definition at line 48 of file TreeDragSource.java.

Referenced by net.sf.gridarta.gui.mapmenu.TreeDragSource.TreeDragSource().


The documentation for this class was generated from the following file: