public class DragContext extends Object
WorldWindow state for use in dragging operations.| Modifier and Type | Field and Description | 
|---|---|
protected String | 
dragState
The current drag state, which can be one of the three following values:
  
AVKey.DRAG_BEGIN, AVKey.DRAG_CHANGE,
 AVKey.DRAG_ENDED. | 
protected Globe | 
globe
The current  
Globe of the WorldWindow. | 
protected Point | 
initialPoint
In accordance with the AWT screen coordinates the top left point of the window is the origin. 
 | 
protected Point | 
point
In accordance with the AWT screen coordinates the top left point of the window is the origin. 
 | 
protected Point | 
previousPoint
In accordance with the AWT screen coordinates the top left point of the window is the origin. 
 | 
protected SceneController | 
sceneController
The current  
SceneController of the WorldWindow. | 
protected View | 
view
The current 
View of the WorldWindow. | 
| Constructor and Description | 
|---|
DragContext()
Creates a new  
DragContext instance. | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getDragState()
Returns the current drag state for this drag event. 
 | 
Globe | 
getGlobe()
Returns the current  
Globe for 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  
SceneController for this drag event. | 
View | 
getView()
Returns the current  
View for this drag event. | 
void | 
setDragState(String dragState)
Set the  
DragContext drag state, which must be one of the following three states: AVKey.DRAG_BEGIN
 , AVKey.DRAG_CHANGE, or AVKey.DRAG_ENDED. | 
void | 
setGlobe(Globe globe)
Set the  
DragContext Globe. | 
void | 
setInitialPoint(Point initialPoint)
Set the  
DragContext initial screen point. | 
void | 
setPoint(Point point)
Set the  
DragContext current screen point. | 
void | 
setPreviousPoint(Point previousPoint)
Set the  
DragContext previous screen point. | 
void | 
setSceneController(SceneController sceneController)
Set the  
DragContext SceneController. | 
void | 
setView(View view)
Set the  
DragContext View. | 
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.