Package ucar.unidata.view.geoloc
Class PickEvent
java.lang.Object
java.util.EventObject
ucar.unidata.view.geoloc.PickEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPickEvent(Object source, Point2D location, MouseEvent mouseEvent) Create a new PickEventPickEvent(Object source, Rectangle2D bounds, MouseEvent mouseEvent) Create a new PickEvent -
Method Summary
Modifier and TypeMethodDescriptionGet the Bounds property.Return the pick point.Get the MouseEvent property.booleanIs this pick event a point (as opposed to a region).booleanIs this pick event a region (as opposed to a point).Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
PickEvent
Create a new PickEvent- Parameters:
source- source of eventlocation- location of eventmouseEvent- mouse event sparking this event
-
PickEvent
Create a new PickEvent- Parameters:
source- source of eventbounds- 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
Get the Bounds property.- Returns:
- The Bounds
-
getLocation
Return the pick point.- Returns:
- The pick point.
-
getMouseEvent
Get the MouseEvent property.- Returns:
- The MouseEvent
-