Class CursorTool

    • Constructor Detail

      • CursorTool

        public CursorTool()
    • Method Detail

      • setMapPane

        public void setMapPane​(MapPane pane)
        Set the map pane that this cursor tool is associated with
        pane - the map pane
        IllegalArgumentException - if mapPane is null
      • getMapPane

        public MapPane getMapPane()
        Get the map pane that this tool is servicing
        the map pane
      • getCursor

        public Cursor getCursor()
        Get the cursor for this tool. Sub-classes should override this method to provide a custom cursor.
        the default cursor
      • drawDragBox

        public boolean drawDragBox()
        Query if the tool is one that draws a box on the map display when the mouse is being dragged (eg. to indicate a zoom area).
        true if this tool supports drawing a drag-box on the map; false otherwise