2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
7 package gov
.nasa
.worldwind
;
9 import gov
.nasa
.worldwind
.geom
.*;
15 * @version $Id: PositionEvent.java 1941 2007-06-02 08:52:28Z tgaskins $
17 public class PositionEvent
extends EventObject
19 private final java
.awt
.Point screenPoint
;
20 private final Position position
;
21 private final Position previousPosition
;
23 public PositionEvent(Object source
, java
.awt
.Point screenPoint
, Position previousPosition
, Position position
)
26 this.screenPoint
= screenPoint
;
27 this.position
= position
;
28 this.previousPosition
= previousPosition
;
31 public java
.awt
.Point
getScreenPoint()
36 public Position
getPosition()
41 public Position
getPreviousPosition()
43 return previousPosition
;
47 public String
toString()
49 return this.getClass().getName() + " "
50 + (this.previousPosition
!= null ?
this.previousPosition
: "null")
52 + (this.position
!= null ?
this.position
: "null");