org.geotools.map.event
Class MapBoundsEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.geotools.map.event.MapBoundsEvent
All Implemented Interfaces:
java.io.Serializable

public class MapBoundsEvent
extends java.util.EventObject

Event object for MapContext area of interest and coordinate system changes.

Author:
wolf
See Also:
Serialized Form

Field Summary
static int AREA_OF_INTEREST_MASK
          Area of interest changed
static int COORDINATE_SYSTEM_MASK
          Coordinate system changed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapBoundsEvent(MapContext source, int type, com.vividsolutions.jts.geom.Envelope oldAreaOfInterest, org.opengis.referencing.crs.CoordinateReferenceSystem oldCoordinateReferenceSystem)
          Creates a new instance of BoundsEvent
 
Method Summary
 com.vividsolutions.jts.geom.Envelope getOldAreaOfInterest()
          Getter for property oldAreaOfInterest.
 org.opengis.referencing.crs.CoordinateReferenceSystem getOldCoordinateReferenceSystem()
          Getter for property oldCoordinateReferenceSystem.
 int getType()
          Getter for property type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AREA_OF_INTEREST_MASK

public static final int AREA_OF_INTEREST_MASK
Area of interest changed

See Also:
Constant Field Values

COORDINATE_SYSTEM_MASK

public static final int COORDINATE_SYSTEM_MASK
Coordinate system changed

See Also:
Constant Field Values
Constructor Detail

MapBoundsEvent

public MapBoundsEvent(MapContext source,
                      int type,
                      com.vividsolutions.jts.geom.Envelope oldAreaOfInterest,
                      org.opengis.referencing.crs.CoordinateReferenceSystem oldCoordinateReferenceSystem)
Creates a new instance of BoundsEvent

Parameters:
source - DOCUMENT ME!
type - DOCUMENT ME!
oldAreaOfInterest - DOCUMENT ME!
oldCoordinateReferenceSystem - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getType

public int getType()
Getter for property type. The type is a bitwise or of the masks defined above.

Returns:
Value of property type.

getOldCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getOldCoordinateReferenceSystem()
Getter for property oldCoordinateReferenceSystem.

Returns:
Value of property oldCoordinateReferenceSystem.

getOldAreaOfInterest

public com.vividsolutions.jts.geom.Envelope getOldAreaOfInterest()
Getter for property oldAreaOfInterest.

Returns:
Value of property oldAreaOfInterest.


Copyright © GeoTools. All Rights Reserved.