Package org.scijava.ui.dnd.event
Class DragEnterEvent
-
- All Implemented Interfaces:
Contextual
public class DragEnterEvent extends DragAndDropEvent
An event indicating an object was dragged onto a display.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description DragEnterEvent(Display<?> display, InputModifiers modifiers, int x, int y, DragAndDropData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAccepted()Gets whether the drag operation is valid.voidsetAccepted(boolean accepted)Sets whether the drag operation is valid.StringtoString()-
Methods inherited from class org.scijava.ui.dnd.event.DragAndDropEvent
getData
-
Methods inherited from class org.scijava.display.event.input.InputEvent
getModifiers, getX, getY
-
Methods inherited from class org.scijava.display.event.DisplayEvent
getDisplay
-
Methods inherited from class org.scijava.event.SciJavaEvent
consume, dumpStack, getCallingThread, getStackTrace, isConsumed, setCallingThread, setConsumed
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
setContext
-
-
-
-
Constructor Detail
-
DragEnterEvent
public DragEnterEvent(Display<?> display, InputModifiers modifiers, int x, int y, DragAndDropData data)
-
-
Method Detail
-
isAccepted
public boolean isAccepted()
Gets whether the drag operation is valid. Invalid operations will be rejected in the UI.
-
setAccepted
public void setAccepted(boolean accepted)
Sets whether the drag operation is valid. Invalid operations will be rejected in the UI.
-
toString
public String toString()
- Overrides:
toStringin classDragAndDropEvent
-
-