public interface DockableDragSource
This interface is used by API Extenders to create new kind of drag sources.
A "Drag Source" is a component, linked to a
For example, the title bar of a docked component is usually the drag source of
this component (meaning : when a user drags the title bar, he expects the dockable
to be dragged around).
These draggable components must be able to give informations about their
target (the component known to the user, which is actually dragged).Dockable
, responsible
for drag gesture recognition. There can be more than one DockableDragSource per
Dockable.
Modifier and Type | Method and Description |
---|---|
void |
endDragComponent(boolean dropped)
notifies the source when the drag operation has ended (by a drop or cancelled)
|
Dockable |
getDockable()
Returns the
Dockable component this source is for |
java.awt.Container |
getDockableContainer()
returns the DockableContainer responsible for displaying the associated dockable
|
boolean |
startDragComponent(java.awt.Point p)
Notifies this source that a drag operation has begun.
|
boolean startDragComponent(java.awt.Point p)
The source may reject the drag according to internal conditions (in that case
this method shall return false
) or to wrong mouse position .
p
refers to
a draggable component), false otherwise.Dockable getDockable()
Dockable
component this source is forjava.awt.Container getDockableContainer()
void endDragComponent(boolean dropped)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.