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 ProjectionRect
getMapArea(ProjectionRect rect)
Get current MapArea .double
getPixPerWorld()
double
getScreenHeight()
double
getScreenWidth()
AffineTransform
getTransform()
Get the affine transform based on screen size and world bounding boxvoid
zoomIn(double x, double y)
void
zoomOut(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 ProjectionRect getMapArea(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)
-
-