|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.graphdocument.GraphPanelDragEvent
DragAndDropEvent
| 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 |
public static final int DRAG_MOVE
DRAG_MOVE
public static final int DRAG_ENTER
DRAG_ENTER
public static final int DRAG_EXIT
DRAG_EXIT
public static final int DRAG_DROP
DRAG_DROP
public static final int DRAG_PRE_DROP
DRAG_PRE_DROP
| Method Detail |
public static final GraphPanelDragEvent createDragMove(GraphPanel panel,
Coordinate location,
VisualGraphObject[] draggedVGOs)
panel - The graphpanel the event occurred onlocation - The current location of the dragdraggedVGOs - The dragged VGO
public static final GraphPanelDragEvent createDragDrop(GraphPanel panel,
Coordinate location,
VisualGraphObject[] draggedVGOs)
panel - The graphpanel the event occurred onlocation - The location of the dropdraggedVGOs - The dragged VGO
public static final GraphPanelDragEvent createDragPreDrop(GraphPanel panel,
Coordinate location,
VisualGraphObject[] draggedVGOs)
panel - The graphpanel the event occurred onlocation - The location of the dropdraggedVGOs - The dragged VGO
public static final GraphPanelDragEvent createDragEnter(GraphPanel panel,
Coordinate location,
VisualGraphObject[] draggedVGOs,
VisualGraphObject enteredVGO)
panel - The graphpanel the event occurred onlocation - The location of the dragdraggedVGOs - The dragged VGOenteredVGO - The VGOs that was entered
If this parameter is null, the view itself was entered
public static final GraphPanelDragEvent createDragExit(GraphPanel panel,
Coordinate location,
VisualGraphObject[] draggedVGOs,
VisualGraphObject exitedVGO)
panel - The graphpanel the event occurred onlocation - The location of the dragdraggedVGOs - The dragged VGOexitedVGO - The VGO that was exited
If this parameter is null, the view itself was exited
public int getType()
public Coordinate getLocation()
public VisualGraphObject[] getDraggedGraphObjects()
VisualGraphObject.
VisualGraphObject.public VisualGraphObject getTargetGraphObject()
VisualGraphObject the enter/exit event is referring to.
If null is returned the enter/exit event refers to the view itself.
VisualGraphObject the enter/exit event is referring to.public GraphPanel getGraphPanel()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||