org.geotools.gui.swing.event
Class ZoomChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.geotools.gui.swing.event.ZoomChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ZoomChangeEvent
extends java.util.EventObject

An event which indicates that a zoom occurred in a component. This event is usually fired by ZoomPane.

Since:
2.0
Version:
$Id: ZoomChangeEvent.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ZoomChangeEvent(java.lang.Object source, java.awt.geom.AffineTransform change)
          Constructs a new event.
 
Method Summary
 java.awt.geom.AffineTransform getChange()
          Returns the affine transform indicating the zoom change.
 
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

ZoomChangeEvent

public ZoomChangeEvent(java.lang.Object source,
                       java.awt.geom.AffineTransform change)
Constructs a new event. If and are the affine transforms before and after the change respectively, then the following relation must hold (within the limits of rounding error): newZoom = oldZoom.concatenate(change)

Parameters:
source - The event source (usually a ZoomPane).
change - An affine transform indicating the zoom change.
Method Detail

getChange

public java.awt.geom.AffineTransform getChange()
Returns the affine transform indicating the zoom change. Note: for performance reasons, this method does not clone the returned transform. Do not change!



Copyright © GeoTools. All Rights Reserved.