Method Summary |
|
public void | dragFinished() Called when there finished drag operation.
Informs all turned on TopComponentDroppable 's
about fininshed drag and drop. |
public void | dragFinishedEx() Maked post drag finished cleaning. |
public void | dragStarting(TopComponentDroppable startingDroppable, Point startingPoint, TopComponent startingTransfer) Called when there is pending drag operation to be started.
Informs all currently opened ModeContainer 's implementing
ModeContainer.DropInidicator interface about
starting drag operation. |
static TopComponent[] | extractTopComponent(boolean clone, Transferable tr) Extracts TopComponent instance from
Transferable according the dropAction .
Utility method. |
public Controller | getController() |
public Set<Component> | getFloatingFrames() Gets set of floating frames. |
MotionListener | getMotionListener() |
public TopComponentDroppable | getStartingDroppable() |
public Point | getStartingPoint() |
public TopComponent | getStartingTransfer() |
public synchronized DragSource | getWindowDragSource() Gets the only current instance of DragSource used in
window system DnD. |
static boolean | isAroundCenterPanel(Point location) Indicates whether the cursor is around center panel of main window.
In that case is needed also to provide a drop. |
public boolean | isCopyOperationPossible() |
public static boolean | isDnDEnabled() Indicates whether the window drag and drop is enabled. |
public boolean | isDragging() Indicates whether the drag is in progress or not. |
public boolean | isDropSuccess() Indicates whether the last drop operation was successful. |
public boolean | isInFloatingFrame(Point location) Checks whether the point is inside separated (floating) frame
droppable area. |
static boolean | isInMainWindow(Point location) Checks whether the point is inside main window droppable area. |
static boolean | isNearEdge(Point location, ViewAccessor viewAccessor) Indicates whether the cursor is around center panel of main window.
In that case is needed also to provide a drop. |
static boolean | isNearEditorEdge(Point location, ViewAccessor viewAccessor, int kind) Indicates whether the cursor is around the editor area of the main window.
In that case is needed also to provide a drop. |
public void | resetDragSource() Tries to reset window DnD system in case some DnD problem occured. |
public void | setDropSuccess(boolean dropSuccess) Sets the dropSuccess flag. |
public void | setLastDropTarget(DropTargetGlassPane target) Sets the last drop target compoent over which hovered the mouse.
Hacking purpose only. |
boolean | tryPerformDrop(Controller controller, Set<Component> floatingFrames, Point location, int dropAction, Transferable transferable) Tries to perform actual drop. |