public class PanEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public PanEvent(java.lang.Object source, int direction)
source
- Objectdirection
- N, NE, E, SE, S, SW, W, NWpublic PanEvent(java.lang.Object source, int direction, float amount)
source
- Objectdirection
- N, NE, E, SE, S, SW, W, NWamount
- 0.0 <= x <= 1.0public 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 <= 180
c
- arc distance in decimal degreespublic float getAzimuth()
public float getArcDistance()
public int getDirection()
public float getAmount()
public java.lang.String toString()
toString
in class java.util.EventObject
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details