public class ZoomEvent
extends java.util.EventObject
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
ZoomEvent(java.lang.Object source,
int type,
float amount)
Construct a ZoomEvent.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final transient int RELATIVE
public static final transient int ABSOLUTE
protected int type
protected float amount
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.public boolean isRelative()
public boolean isAbsolute()
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