Class PickEvent

java.lang.Object
java.util.EventObject
ucar.unidata.view.geoloc.PickEvent
All Implemented Interfaces:
Serializable

public class PickEvent extends EventObject
User wants to pick an object at 2D location.
Version:
$Id: PickEvent.java,v 1.8 2005/05/13 18:33:14 jeffmc Exp $
Author:
John Caron
See Also:
  • Constructor Details

    • PickEvent

      public PickEvent(Object source, Point2D location, MouseEvent mouseEvent)
      Create a new PickEvent
      Parameters:
      source - source of event
      location - location of event
      mouseEvent - mouse event sparking this event
    • PickEvent

      public PickEvent(Object source, Rectangle2D bounds, MouseEvent mouseEvent)
      Create a new PickEvent
      Parameters:
      source - source of event
      bounds - bounding rectangle (for rubber banding)
      mouseEvent - mouse event sparking this event
  • Method Details

    • isRegionSelect

      public boolean isRegionSelect()
      Is this pick event a region (as opposed to a point).
      Returns:
      Is a region.
    • isPointSelect

      public boolean isPointSelect()
      Is this pick event a point (as opposed to a region).
      Returns:
      Is a point.
    • getBounds

      public Rectangle2D getBounds()
      Get the Bounds property.
      Returns:
      The Bounds
    • getLocation

      public Point2D getLocation()
      Return the pick point.
      Returns:
      The pick point.
    • getMouseEvent

      public MouseEvent getMouseEvent()
      Get the MouseEvent property.
      Returns:
      The MouseEvent