Class StreamNodeAdapter

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

public class StreamNodeAdapter extends MapMouseAdapter implements MouseListener, MouseMotionListener
Mouse adapter for the stream nodes.
  • 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
    • 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
    • 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