public class DragContext extends Object
WorldWindow state for use in dragging operations.| Modifier and Type | Field and Description | 
|---|---|
| protected String | dragStateThe current drag state, which can be one of the three following values:
  AVKey.DRAG_BEGIN,AVKey.DRAG_CHANGE,AVKey.DRAG_ENDED. | 
| protected Globe | globeThe current  Globeof theWorldWindow. | 
| protected Point | initialPointIn accordance with the AWT screen coordinates the top left point of the window is the origin. | 
| protected Point | pointIn accordance with the AWT screen coordinates the top left point of the window is the origin. | 
| protected Point | previousPointIn accordance with the AWT screen coordinates the top left point of the window is the origin. | 
| protected SceneController | sceneControllerThe current  SceneControllerof theWorldWindow. | 
| protected View | viewThe current Viewof theWorldWindow. | 
| Constructor and Description | 
|---|
| DragContext()Creates a new  DragContextinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDragState()Returns the current drag state for this drag event. | 
| Globe | getGlobe()Returns the current  Globefor this drag event. | 
| Point | getInitialPoint()Returns the initial screen point with the origin at the top left corner of the window. | 
| Point | getPoint()Returns the current screen point with the origin at the top left corner of the window. | 
| Point | getPreviousPoint()Returns the previous screen point with the origin at the top left corner of the window. | 
| SceneController | getSceneController()Returns the current  SceneControllerfor this drag event. | 
| View | getView()Returns the current  Viewfor this drag event. | 
| void | setDragState(String dragState)Set the  DragContextdrag state, which must be one of the following three states:AVKey.DRAG_BEGIN,AVKey.DRAG_CHANGE, orAVKey.DRAG_ENDED. | 
| void | setGlobe(Globe globe)Set the  DragContextGlobe. | 
| void | setInitialPoint(Point initialPoint)Set the  DragContextinitial screen point. | 
| void | setPoint(Point point)Set the  DragContextcurrent screen point. | 
| void | setPreviousPoint(Point previousPoint)Set the  DragContextprevious screen point. | 
| void | setSceneController(SceneController sceneController)Set the  DragContextSceneController. | 
| void | setView(View view)Set the  DragContextView. | 
protected String dragState
AVKey.DRAG_BEGIN, AVKey.DRAG_CHANGE,
 AVKey.DRAG_ENDED.protected Globe globe
Globe of the WorldWindow.protected Point initialPoint
protected Point point
protected Point previousPoint
protected SceneController sceneController
SceneController of the WorldWindow.protected View view
View of the WorldWindow.public DragContext()
DragContext instance.public String getDragState()
public Globe getGlobe()
Globe for this drag event.Globe.public Point getInitialPoint()
public Point getPoint()
public Point getPreviousPoint()
public SceneController getSceneController()
SceneController for this drag event.SceneController.public View getView()
View for this drag event.View.public void setDragState(String dragState)
DragContext drag state, which must be one of the following three states: AVKey.DRAG_BEGIN
 , AVKey.DRAG_CHANGE, or AVKey.DRAG_ENDED.dragState - the drag state to assign to the DragContext.IllegalArgumentException - if the drag state is null or not one of the three states defined for dragging.public void setGlobe(Globe globe)
DragContext Globe.globe - the Globe to assign to the DragContext.IllegalArgumentException - if the globe is null.public void setInitialPoint(Point initialPoint)
DragContext initial screen point.initialPoint - the screen point to assign to the initial screen point.IllegalArgumentException - if the initialPoint is null.public void setPoint(Point point)
DragContext current screen point.point - the point to assign to the current screen point.IllegalArgumentException - if the point is null.public void setPreviousPoint(Point previousPoint)
DragContext previous screen point.previousPoint - the screen point to assign to the previous screen point.IllegalArgumentException - if the previousPoint is null.public void setSceneController(SceneController sceneController)
DragContext SceneController.sceneController - the SceneController to assign to the DragContext.IllegalArgumentException - if the scene controller is null.public void setView(View view)
DragContext View.view - the View to assign to the DragContext.IllegalArgumentException - if the view is null.