org.geotools.gui.swing.event
Class ZoomChangeEvent

Object
  extended by EventObject
      extended by ZoomChangeEvent
All Implemented Interfaces:
Serializable

public class ZoomChangeEvent
extends EventObject

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

Since:
2.0
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form
Module:

Field Summary
 
Fields inherited from class EventObject
source
 
Constructor Summary
ZoomChangeEvent(Object source, AffineTransform change)
          Constructs a new event.
 
Method Summary
 AffineTransform getChange()
          Returns the affine transform indicating the zoom change.
 
Methods inherited from class EventObject
getSource, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZoomChangeEvent

public ZoomChangeEvent(Object source,
                       AffineTransform change)
Constructs a new event. If oldZoom and newZoom 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 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 © 1996-2009 Geotools. All Rights Reserved.