|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.bbn.openmap.event.ZoomEvent
public class ZoomEvent
An event to request that the map zoom in or out. Event specifies the type and amount of zoom of the map.
Field Summary | |
---|---|
static int |
ABSOLUTE
Type that specifies that the amount should be used as the new scale. |
protected float |
amount
The zoom factor. |
static int |
RELATIVE
Type that specifies that the amount should be used as a multiplier to the current scale. |
protected int |
type
The type of zooming. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ZoomEvent(java.lang.Object source,
int type,
float amount)
Construct a ZoomEvent. |
Method Summary | |
---|---|
float |
getAmount()
Get the amount of zoom. |
boolean |
isAbsolute()
Check if the type is ABSOLUTE. |
boolean |
isRelative()
Check if the type is RELATIVE. |
java.lang.String |
toString()
Stringify the 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 transient int RELATIVE
public static final transient int ABSOLUTE
protected int type
protected float amount
Constructor Detail |
---|
public ZoomEvent(java.lang.Object source, int type, float amount)
source
- the creator of the ZoomEvent.type
- the type of the event, referring to how to use the
amount.amount
- the value of the ZoomEvent.Method Detail |
---|
public boolean isRelative()
public boolean isAbsolute()
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 |