Class 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 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)