|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.bbn.openmap.event.PanEvent
public class PanEvent
An event to request the map to pan. Event designates the direction and magnitude (relative to map dimensions) to pan the map.
| Field Summary | |
|---|---|
protected float |
Az
|
protected float |
c
|
static int |
EAST
|
static int |
NORTH
The possible pan directions |
static int |
NORTH_EAST
|
static int |
NORTH_WEST
|
static int |
PAN_FIRST
Marks the first integer id for the range of pan event directions. |
static int |
PAN_LAST
Marks the last integer id for the range of pan event directions. |
static int |
SOUTH
|
static int |
SOUTH_EAST
|
static int |
SOUTH_WEST
|
static int |
WEST
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PanEvent(java.lang.Object source,
float Az)
Create a PanEvent. |
|
PanEvent(java.lang.Object source,
float Az,
float c)
Create a PanEvent. |
|
PanEvent(java.lang.Object source,
int direction)
Deprecated. use new panning semantics |
|
PanEvent(java.lang.Object source,
int direction,
float amount)
Deprecated. use new panning semantics |
|
| Method Summary | |
|---|---|
float |
getAmount()
Deprecated. use getArcDistance() |
float |
getArcDistance()
Get arc distance of pan. |
float |
getAzimuth()
Get azimuth of pan. |
int |
getDirection()
Deprecated. use getAzimuth() |
java.lang.String |
toString()
Return stringified object. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PAN_FIRST
public static final int PAN_LAST
public static final int NORTH
public static final int NORTH_EAST
public static final int EAST
public static final int SOUTH_EAST
public static final int SOUTH
public static final int SOUTH_WEST
public static final int WEST
public static final int NORTH_WEST
protected float Az
protected float c
| Constructor Detail |
|---|
public PanEvent(java.lang.Object source,
int direction)
source - Objectdirection - N, NE, E, SE, S, SW, W, NW
public PanEvent(java.lang.Object source,
int direction,
float amount)
source - Objectdirection - N, NE, E, SE, S, SW, W, NWamount - 0.0 <= x <= 1.0
public PanEvent(java.lang.Object source,
float Az)
pan(-180) pan south
pan(-90) pan west
pan(0) pan north
pan(90) pan east
source - ObjectAz - azimuth "east of north" in decimal degrees:
-180 <= Az <= 180
public PanEvent(java.lang.Object source,
float Az,
float c)
pan(-180, c) pan south `c' degrees
pan(-90, c) pan west `c' degrees
pan(0, c) pan north `c' degrees
pan(90, c) pan east `c' degrees
source - ObjectAz - azimuth "east of north" in decimal degrees:
-180 <= Az <= 180c - arc distance in decimal degrees| Method Detail |
|---|
public float getAzimuth()
public float getArcDistance()
public int getDirection()
public float getAmount()
public java.lang.String toString()
toString in class java.util.EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||