Package ucar.nc2.ui.geoloc
Class Navigation
- java.lang.Object
-
- ucar.nc2.ui.geoloc.Navigation
-
public class Navigation extends Object
Consider this a private inner class of NavigatedPanel. Handle display to world coordinate transformation, always linear. Call np.newMapAreaEvent() when MapArea changes. setMapArea() trigger a NewMapAreaEvent also.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ucar.unidata.geoloc.ProjectionRectgetMapArea(ucar.unidata.geoloc.ProjectionRect rect)Get current MapArea .doublegetPixPerWorld()doublegetScreenHeight()doublegetScreenWidth()AffineTransformgetTransform()Get the affine transform based on screen size and world bounding boxvoidzoomIn(double x, double y)voidzoomOut(double x, double y)
-
-
-
Method Detail
-
getScreenWidth
public double getScreenWidth()
-
getScreenHeight
public double getScreenHeight()
-
getTransform
public AffineTransform getTransform()
Get the affine transform based on screen size and world bounding box
-
getMapArea
public ucar.unidata.geoloc.ProjectionRect getMapArea(ucar.unidata.geoloc.ProjectionRect rect)
Get current MapArea .- Parameters:
rect- : place results here, or null to create new Object
-
getPixPerWorld
public double getPixPerWorld()
-
zoomIn
public void zoomIn(double x, double y)
-
zoomOut
public void zoomOut(double x, double y)
-
-