Package hec.map

Class PointerMouseAdapter

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

public class PointerMouseAdapter extends MapMouseAdapter implements MouseListener, MouseMotionListener
Mouse adapter for editing FIA time series locations.
See Also:
  • Field Details

  • Constructor Details

    • PointerMouseAdapter

      public PointerMouseAdapter(MapPanel panel, MapCanvas canvas)
  • 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
    • 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
    • handleEmptyRightClick

      protected void handleEmptyRightClick(MouseEvent e)
    • 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
    • objectSelect

      protected void objectSelect(List glyphList, LocalPt pt, int modifiers)
      Parameters:
      glyphList -
      pt -
      modifiers -
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Description copied from class: MapMouseAdapter
      called when the mouse is Pressed. This method translates the current mouse coordinates into world coordinates and tells the MapPanel to display the information This method is expected to be overridden by subclasses that are interested in this event.
      Specified by:
      mouseMoved in interface MouseMotionListener
      Overrides:
      mouseMoved 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()