Class PanTool

  • All Implemented Interfaces:
    MapMouseListener

    public class PanTool
    extends CursorTool
    A cursor tool to pan the map pane display.
    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

      • PanTool

        public PanTool()
        Constructor
    • Method Detail

      • getCursor

        public Cursor getCursor()
        Get the mouse cursor for this tool
        Overrides:
        getCursor in class CursorTool
        Returns:
        the default cursor
      • drawDragBox

        public boolean drawDragBox()
        Returns false to indicate that this tool does not draw a box on the map display when the mouse is being dragged
        Overrides:
        drawDragBox in class CursorTool
        Returns:
        true if this tool supports drawing a drag-box on the map; false otherwise