org.geotools.gui.swing.event
Class ZoomChangeEvent
Object
EventObject
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:
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.
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.