twaver.gis.event
Class MapEvent

java.lang.Object
  extended bytwaver.gis.event.MapEvent

public class MapEvent
extends java.lang.Object

An event which indicates that some property of a GeographyMap is changed.

A MapEvent object is passed to every MapListener object which registered to receive the "interesting" map events using the GeographyMap's addMapListener method.


Field Summary
static int MAP_DRAWN
          Constant specifies the map is just drawn.
static int MAP_GROUNDING_COLORCHANGED
           
static int MAP_GROUNDING_STYLECHANGED
           
static int MAP_MODE_CHANGED
           
static int MAP_MULTILAYRRS_VISIBLITY_SCALE
           
static int MAP_OVERVIEW_DRAWN
           
static int MAP_OVERVIEW_STARTRENDERING
           
static int MAP_OVERVIEWTITLE_CHANGED
           
static int MAP_QUERYLAYER_CHANGED
          Constant specifies the index of the map's query layer is changed.
static int MAP_SCALE_CHANGED
          Constant specifies the scale of a map is changed.
static int MAP_SELECTEDFEATURE_CHANGED
          Constant specifies the selected features of a map changed.
static int MAP_STARTRENDERRING
          Constant specifies beginning to render the map.
static int MAP_UNIT_CHANGED
           
static int MAP_VIEWPORT_CHANGED
          Constant specifies the viewport of a map is changed.
static int MAP_WINDOW_CHANGED
          Constant specifies the window of a map is changed.
static int MAP_ZOOMLEVELS_RESET
           
static int MAP_ZOOMSYNCHRONIZER_CHANGE
          Constant specifies the zoom synchronizer of the map is changed
 
Constructor Summary
MapEvent(GeographyMap map, int type)
          Constructs a MapEvent object with the specified type.
MapEvent(GeographyMap map, int type, java.lang.Object oldValue, java.lang.Object newValue)
           
MapEvent(java.lang.Object source, int type)
           
 
Method Summary
 int getEventType()
          Returns the event type..
 java.lang.String getEventTypeDescription()
          Returns a parameter string identifying this event.
 GeographyMap getMap()
          Gets the object on which the event initially occurred.
 java.lang.Object getNewValue()
           
 java.lang.Object getOldValue()
           
 java.lang.Object getSource()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAP_DRAWN

public static final int MAP_DRAWN
Constant specifies the map is just drawn.

See Also:
Constant Field Values

MAP_GROUNDING_COLORCHANGED

public static final int MAP_GROUNDING_COLORCHANGED
See Also:
Constant Field Values

MAP_GROUNDING_STYLECHANGED

public static final int MAP_GROUNDING_STYLECHANGED
See Also:
Constant Field Values

MAP_MODE_CHANGED

public static final int MAP_MODE_CHANGED
See Also:
Constant Field Values

MAP_MULTILAYRRS_VISIBLITY_SCALE

public static final int MAP_MULTILAYRRS_VISIBLITY_SCALE
See Also:
Constant Field Values

MAP_OVERVIEW_DRAWN

public static final int MAP_OVERVIEW_DRAWN
See Also:
Constant Field Values

MAP_OVERVIEW_STARTRENDERING

public static final int MAP_OVERVIEW_STARTRENDERING
See Also:
Constant Field Values

MAP_OVERVIEWTITLE_CHANGED

public static final int MAP_OVERVIEWTITLE_CHANGED
See Also:
Constant Field Values

MAP_QUERYLAYER_CHANGED

public static final int MAP_QUERYLAYER_CHANGED
Constant specifies the index of the map's query layer is changed.

See Also:
Constant Field Values

MAP_SCALE_CHANGED

public static final int MAP_SCALE_CHANGED
Constant specifies the scale of a map is changed.

See Also:
Constant Field Values

MAP_SELECTEDFEATURE_CHANGED

public static final int MAP_SELECTEDFEATURE_CHANGED
Constant specifies the selected features of a map changed.

See Also:
Constant Field Values

MAP_STARTRENDERRING

public static final int MAP_STARTRENDERRING
Constant specifies beginning to render the map.

See Also:
Constant Field Values

MAP_UNIT_CHANGED

public static final int MAP_UNIT_CHANGED
See Also:
Constant Field Values

MAP_VIEWPORT_CHANGED

public static final int MAP_VIEWPORT_CHANGED
Constant specifies the viewport of a map is changed.

See Also:
Constant Field Values

MAP_WINDOW_CHANGED

public static final int MAP_WINDOW_CHANGED
Constant specifies the window of a map is changed.

See Also:
Constant Field Values

MAP_ZOOMLEVELS_RESET

public static final int MAP_ZOOMLEVELS_RESET
See Also:
Constant Field Values

MAP_ZOOMSYNCHRONIZER_CHANGE

public static final int MAP_ZOOMSYNCHRONIZER_CHANGE
Constant specifies the zoom synchronizer of the map is changed

See Also:
Constant Field Values
Constructor Detail

MapEvent

public MapEvent(GeographyMap map,
                int type)
Constructs a MapEvent object with the specified type.

Parameters:
map - the source of the event.
type - the type of the event.

MapEvent

public MapEvent(GeographyMap map,
                int type,
                java.lang.Object oldValue,
                java.lang.Object newValue)

MapEvent

public MapEvent(java.lang.Object source,
                int type)
Method Detail

getEventType

public int getEventType()
Returns the event type..

Returns:
an integer identifying the type of event.

getEventTypeDescription

public java.lang.String getEventTypeDescription()
Returns a parameter string identifying this event. This method is useful for event-logging and for debugging.

Returns:
a string identifying the event.

getMap

public GeographyMap getMap()
Gets the object on which the event initially occurred.

Returns:
a GeographyMap , the source of the event.

getNewValue

public java.lang.Object getNewValue()

getOldValue

public java.lang.Object getOldValue()

getSource

public java.lang.Object getSource()