Package hec.map

Class MouseZoomAdapter

java.lang.Object
hec.map.MapMouseAdapter
hec.map.MouseZoomAdapter
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener

public class MouseZoomAdapter extends MapMouseAdapter
Zoom adapter for MapCanvas.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init()
      Description copied from class: MapMouseAdapter
      called when this MouseAdapter is made the active adapter. Sub classes should do any initialization that they need done here.
      Overrides:
      init in class MapMouseAdapter
    • abort

      public void abort()
      Description copied from class: MapMouseAdapter
      called when this MouseAdapter is made no longer the active adapter. Sub classes should do any cleanup that they need done here.
      Overrides:
      abort in class MapMouseAdapter
    • shiftKeyAction

      protected void shiftKeyAction(boolean keyDown)
      Parameters:
      keyDown -
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Description copied from class: MapMouseAdapter
      called when the mouse is released. This method is expected to be overridden by subclasses that are interested in this event.
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class MapMouseAdapter
      Parameters:
      e - the MouseEvent
    • mousePressed

      public void mousePressed(MouseEvent e)
      Description copied from class: MapMouseAdapter
      called when the mouse is Pressed. This method is expected to be overridden by subclasses that are interested in this event.
      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class MapMouseAdapter
      Parameters:
      e - the MouseEvent
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Description copied from class: MapMouseAdapter
      called when the mouse is dragged. This method is expected to be overridden by subclasses that are interested in this event.
      Specified by:
      mouseDragged in interface MouseMotionListener
      Overrides:
      mouseDragged in class MapMouseAdapter
      Parameters:
      e - the MouseEvent
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Description copied from class: MapMouseAdapter
      called when the mouse is clicked. This method is expected to be overridden by subclasses that are interested in this event.
      Specified by:
      mouseClicked in interface MouseListener
      Overrides:
      mouseClicked in class MapMouseAdapter
      Parameters:
      e - the MouseEvent
    • getCursor

      public Cursor getCursor()
      Description copied from class: MapMouseAdapter
      Gets the Cursor that should be displayed when this mouse adapter is active. By default it returns java.awt.Cursor.getDefaultCursor()
      Overrides:
      getCursor in class MapMouseAdapter
      Returns:
      the Cursor to use for this adapter
    • buildDefaultButtonGifStrings

      public static ButtonGifStrings buildDefaultButtonGifStrings()