com.tensegrity.gui.graphdocument
Class GraphPanelDragEvent

java.lang.Object
  extended bycom.tensegrity.gui.graphdocument.GraphPanelDragEvent

public final class GraphPanelDragEvent
extends java.lang.Object

DragAndDropEvent

Author:
BurkhardWick

Field Summary
static int DRAG_DROP
          DRAG_DROP
static int DRAG_ENTER
          DRAG_ENTER
static int DRAG_EXIT
          DRAG_EXIT
static int DRAG_MOVE
          DRAG_MOVE
static int DRAG_PRE_DROP
          DRAG_PRE_DROP
 
Method Summary
static GraphPanelDragEvent createDragDrop(GraphPanel panel, Coordinate location, VisualGraphObject[] draggedVGOs)
          Creates a drag drop event
static GraphPanelDragEvent createDragEnter(GraphPanel panel, Coordinate location, VisualGraphObject[] draggedVGOs, VisualGraphObject enteredVGO)
          Creates a drag enter event
static GraphPanelDragEvent createDragExit(GraphPanel panel, Coordinate location, VisualGraphObject[] draggedVGOs, VisualGraphObject exitedVGO)
          Creates a drag exit event
static GraphPanelDragEvent createDragMove(GraphPanel panel, Coordinate location, VisualGraphObject[] draggedVGOs)
          Creates a drag move event
static GraphPanelDragEvent createDragPreDrop(GraphPanel panel, Coordinate location, VisualGraphObject[] draggedVGOs)
          Creates a drag drop event
 VisualGraphObject[] getDraggedGraphObjects()
          Returns the dragged VisualGraphObject.
 GraphPanel getGraphPanel()
          Returns the graph panel this event occurred on
 Coordinate getLocation()
          Returns the location.
 VisualGraphObject getTargetGraphObject()
          Returns the VisualGraphObject the enter/exit event is referring to.
 int getType()
          Returns the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRAG_MOVE

public static final int DRAG_MOVE
DRAG_MOVE

See Also:
Constant Field Values

DRAG_ENTER

public static final int DRAG_ENTER
DRAG_ENTER

See Also:
Constant Field Values

DRAG_EXIT

public static final int DRAG_EXIT
DRAG_EXIT

See Also:
Constant Field Values

DRAG_DROP

public static final int DRAG_DROP
DRAG_DROP

See Also:
Constant Field Values

DRAG_PRE_DROP

public static final int DRAG_PRE_DROP
DRAG_PRE_DROP

See Also:
Constant Field Values
Method Detail

createDragMove

public static final GraphPanelDragEvent createDragMove(GraphPanel panel,
                                                       Coordinate location,
                                                       VisualGraphObject[] draggedVGOs)
Creates a drag move event

Parameters:
panel - The graphpanel the event occurred on
location - The current location of the drag
draggedVGOs - The dragged VGO
Returns:
The drag move event

createDragDrop

public static final GraphPanelDragEvent createDragDrop(GraphPanel panel,
                                                       Coordinate location,
                                                       VisualGraphObject[] draggedVGOs)
Creates a drag drop event

Parameters:
panel - The graphpanel the event occurred on
location - The location of the drop
draggedVGOs - The dragged VGO
Returns:
The drag drop event

createDragPreDrop

public static final GraphPanelDragEvent createDragPreDrop(GraphPanel panel,
                                                          Coordinate location,
                                                          VisualGraphObject[] draggedVGOs)
Creates a drag drop event

Parameters:
panel - The graphpanel the event occurred on
location - The location of the drop
draggedVGOs - The dragged VGO
Returns:
The drag drop event

createDragEnter

public static final GraphPanelDragEvent createDragEnter(GraphPanel panel,
                                                        Coordinate location,
                                                        VisualGraphObject[] draggedVGOs,
                                                        VisualGraphObject enteredVGO)
Creates a drag enter event

Parameters:
panel - The graphpanel the event occurred on
location - The location of the drag
draggedVGOs - The dragged VGO
enteredVGO - The VGOs that was entered If this parameter is null, the view itself was entered
Returns:
The drag enter event

createDragExit

public static final GraphPanelDragEvent createDragExit(GraphPanel panel,
                                                       Coordinate location,
                                                       VisualGraphObject[] draggedVGOs,
                                                       VisualGraphObject exitedVGO)
Creates a drag exit event

Parameters:
panel - The graphpanel the event occurred on
location - The location of the drag
draggedVGOs - The dragged VGO
exitedVGO - The VGO that was exited If this parameter is null, the view itself was exited
Returns:
The drag exit event

getType

public int getType()
Returns the type.

Returns:
the type.

getLocation

public Coordinate getLocation()
Returns the location.

Returns:
the location.

getDraggedGraphObjects

public VisualGraphObject[] getDraggedGraphObjects()
Returns the dragged VisualGraphObject.

Returns:
the dragged VisualGraphObject.

getTargetGraphObject

public VisualGraphObject getTargetGraphObject()
Returns the VisualGraphObject the enter/exit event is referring to. If null is returned the enter/exit event refers to the view itself.

Returns:
the VisualGraphObject the enter/exit event is referring to.

getGraphPanel

public GraphPanel getGraphPanel()
Returns the graph panel this event occurred on

Returns:
the graph panel this event occurred on


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.