public class ZoomEvent
extends java.util.EventObject
Constructor and Description |
---|
ZoomEvent(PECanvas source,
double oldZoom,
double newZoom,
PicPoint ptCenter)
a new ZoomEvent sourced from the given PECanvas
|
Modifier and Type | Method and Description |
---|---|
PicPoint |
getCenterPoint()
Return the coordinates of the point that was at the center of the canvas before the zoom changed.
|
double |
getNewZoomValue()
Return the new zoom factor value
|
double |
getOldZoomValue()
Return the old zoom factor value
|
java.lang.String |
toString()
a textual representation of this event
|
public ZoomEvent(PECanvas source, double oldZoom, double newZoom, PicPoint ptCenter)
source
- the originator of the eventoldZoom
- the previous zoom valuenewZoom
- the new zoom valueptCenter
- the point (in model-coordinates) that is expected to be at the center of the
view-port. Can be null.public double getOldZoomValue()
public double getNewZoomValue()
public PicPoint getCenterPoint()
public java.lang.String toString()
toString
in class java.util.EventObject
Submit a bug : syd@jpicedt.org