public class BasicDragger extends Object implements SelectListener
DragSelectEvent for notifying picked objects implementing the
 Draggable interface. This version uses the Draggable interface for dragging but retains the original
 behavior of the BasicDragger when the PickedObject implements either the
 Movable or Movable2 interface.
 
 For objects not yet implementing the Draggable interface the legacy dragging functionality will be used.
| Modifier and Type | Field and Description | 
|---|---|
protected DragContext | 
dragContext
The  
DragContext for dragging operations. | 
protected boolean | 
dragging
Indicates if the dragger is currently dragging. 
 | 
protected double | 
dragRefAltitude  | 
protected Point | 
dragRefCursorPoint  | 
protected Vec4 | 
dragRefObjectPoint  | 
protected WorldWindow | 
wwd
 | 
| Constructor and Description | 
|---|
BasicDragger(WorldWindow wwd)
Creates a dragging controller which converts  
SelectEvents to the Draggable interface. | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
dragLegacy(SelectEvent event)
Legacy drag approach, provided for objects not yet implementing the  
Draggable interface. | 
protected void | 
fireDrag(DragSelectEvent dragEvent)
 | 
boolean | 
isDragging()
Returns if the dragger is currently executing a dragging operation. 
 | 
void | 
selected(SelectEvent event)  | 
protected DragContext dragContext
DragContext for dragging operations. Initialized on AVKey.DRAG_BEGIN.protected boolean dragging
protected double dragRefAltitude
protected Point dragRefCursorPoint
protected Vec4 dragRefObjectPoint
protected WorldWindow wwd
public BasicDragger(WorldWindow wwd)
SelectEvents to the Draggable interface.wwd - the WorldWindow this drag controller should be associated with.IllegalArgumentException - if the provided WorldWindow is null.protected void dragLegacy(SelectEvent event)
Draggable interface.event - the current SelectEvent.protected void fireDrag(DragSelectEvent dragEvent)
dragEvent - the DragContext to deliver to the selected object.IllegalArgumentException - if the DragContext is null.public boolean isDragging()
true if a drag operation is executing.public void selected(SelectEvent event)
selected in interface SelectListener