|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject jpicedt.graphic.event.ZoomEvent
public class ZoomEvent
Class for notifications of zoom-factor changes sourced by a PECanvas.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ZoomEvent(PECanvas source,
double oldZoom,
double newZoom,
PicPoint ptCenter)
a new ZoomEvent sourced from the given PECanvas |
Method Summary | |
---|---|
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 |
String |
toString()
a textual representation of this event |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public double getOldZoomValue()
public double getNewZoomValue()
public PicPoint getCenterPoint()
public String toString()
toString
in class EventObject
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |