org.geotoolkit.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 fired by ZoomPane.
- Since:
- 2.0
- Version:
- 3.00
- 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!
- Returns:
- The zoom change as an affine transform (not cloned).
Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.