ucar.unidata.view.geoloc
Class NewMapAreaEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ucar.unidata.view.geoloc.NewMapAreaEvent
All Implemented Interfaces:
Serializable

public class NewMapAreaEvent
extends EventObject

Used to notify listeners that there is a new world bounding box.

Version:
$Id: NewMapAreaEvent.java,v 1.8 2005/05/13 18:33:13 jeffmc Exp $
Author:
John Caron
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NewMapAreaEvent(Object source)
          Creat an event for new map areas
NewMapAreaEvent(Object source, boolean isZoom, Rectangle2D bounds)
          Create an event for new map areas
 
Method Summary
 Rectangle2D getBounds()
          Get the Bounds property.
 boolean getIsZoom()
          Is this a zoom event (as opposed to a selected area event)
 
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
 

Constructor Detail

NewMapAreaEvent

public NewMapAreaEvent(Object source)
Creat an event for new map areas

Parameters:
source - source of the event

NewMapAreaEvent

public NewMapAreaEvent(Object source,
                       boolean isZoom,
                       Rectangle2D bounds)
Create an event for new map areas

Parameters:
source - source of event
isZoom - true if event from zoom
bounds - new map area
Method Detail

getIsZoom

public boolean getIsZoom()
Is this a zoom event (as opposed to a selected area event)

Returns:
is a zoom event.

getBounds

public Rectangle2D getBounds()
Get the Bounds property.

Returns:
The Bounds