Package hec.map.image

Class ImageMouseAdapter

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

public class ImageMouseAdapter extends MapMouseAdapter
  • Constructor Details

    • ImageMouseAdapter

      public ImageMouseAdapter(MapPanel panel, MapCanvas canvas)
      Creates a new instance of ImageMouseAdapter
  • Method Details

    • createButtonGifStrings

      public static ButtonGifStrings createButtonGifStrings()
    • 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
    • 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