public class PickEvent
extends java.util.EventObject
Constructor and Description |
---|
PickEvent(java.lang.Object source,
java.awt.geom.Point2D location,
java.awt.event.MouseEvent mouseEvent)
Create a new PickEvent
|
PickEvent(java.lang.Object source,
java.awt.geom.Rectangle2D bounds,
java.awt.event.MouseEvent mouseEvent)
Create a new PickEvent
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the Bounds property.
|
java.awt.geom.Point2D |
getLocation()
Return the pick point.
|
java.awt.event.MouseEvent |
getMouseEvent()
Get the MouseEvent property.
|
boolean |
isPointSelect()
Is this pick event a point (as opposed to a region).
|
boolean |
isRegionSelect()
Is this pick event a region (as opposed to a point).
|
public PickEvent(java.lang.Object source, java.awt.geom.Point2D location, java.awt.event.MouseEvent mouseEvent)
source
- source of eventlocation
- location of eventmouseEvent
- mouse event sparking this eventpublic PickEvent(java.lang.Object source, java.awt.geom.Rectangle2D bounds, java.awt.event.MouseEvent mouseEvent)
source
- source of eventbounds
- bounding rectangle (for rubber banding)mouseEvent
- mouse event sparking this eventpublic boolean isRegionSelect()
public boolean isPointSelect()
public java.awt.geom.Rectangle2D getBounds()
public java.awt.geom.Point2D getLocation()
public java.awt.event.MouseEvent getMouseEvent()