|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.utils.move.ZoomPanState
public class ZoomPanState
Class that stores the state of a ZoomPan instance and transform coordinates accordingly. Modifiable only from classes within the package. Only intended to be created and modified by ZoomPan. Used by ZoomPan internally to store its state.
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of this zoomPan state. |
processing.core.PVector |
getCoordToDisp(double x,
double y)
|
processing.core.PVector |
getCoordToDisp(processing.core.PVector p)
Transforms the given point from coordinate to display space. |
processing.core.PVector |
getDispToCoord(processing.core.PVector p)
Transforms the given point from display to coordinate space. |
processing.core.PVector |
getPanOffset()
Reports the current pan offset. |
double |
getZoomScale()
Reports the current zoom scale. |
void |
transform()
Performs the zooming/panning transformation. |
void |
transform(processing.core.PGraphics offScreenBuffer)
Performs the zooming/panning transformation in the given graphics context. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public processing.core.PVector getDispToCoord(processing.core.PVector p)
p
- 2D point in zoomed display space.
public processing.core.PVector getCoordToDisp(processing.core.PVector p)
p
- 2D point in original coordinate space.
public processing.core.PVector getCoordToDisp(double x, double y)
public void transform()
public void transform(processing.core.PGraphics offScreenBuffer)
public double getZoomScale()
public processing.core.PVector getPanOffset()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |