Class ZoomInTool

  • All Implemented Interfaces:
    MapMouseListener

    public class ZoomInTool
    extends AbstractZoomTool
    A cursor tool to zoom in the map pane display.

    For mouse clicks, the display will be zoomed-in such that the map centre is the position of the mouse click and the map width and height are calculated as:

       len = len.old / z 
    where z is the linear zoom increment (>= 1.0)

    The tool also responds to the user drawing a box on the map mapPane with mouse click-and-drag to define the zoomed-in area.

    Since:
    2.6
    Author:
    Michael Bedward
    • Field Detail

      • TOOL_NAME

        public static final String TOOL_NAME
        Tool name
      • TOOL_TIP

        public static final String TOOL_TIP
        Tool tip text
      • CURSOR_HOTSPOT

        public static final Point CURSOR_HOTSPOT
        Cursor hotspot coordinates
    • Constructor Detail

      • ZoomInTool

        public ZoomInTool()
        Constructor