public class HitTestEvent
extends java.util.EventObject
Constructor and Description |
---|
HitTestEvent(java.lang.Object source,
DiagramItem item,
java.awt.geom.Point2D mousePosition)
Initializes a new instance of the HitTestEvent class.
|
Modifier and Type | Method and Description |
---|---|
AdjustmentHandle |
getHitResult()
Gets the adjustment handle that has been hit.
|
DiagramItem |
getItem()
Gets the item whose adjustment handles are being hit-tested.
|
java.awt.geom.Point2D |
getPointerPosition()
Gets the current cursor position, expressed in document coordinates.
|
void |
setHitResult(AdjustmentHandle hitResult)
Sets the adjustment handle that has been hit.
|
public HitTestEvent(java.lang.Object source, DiagramItem item, java.awt.geom.Point2D mousePosition)
source
- The event source.item
- The DiagramItem
related to the event.mousePosition
- The cursor location at the time the event is raised, expressed in document coordinates.public AdjustmentHandle getHitResult()
AdjustmentHandle
instance representing the handle.public void setHitResult(AdjustmentHandle hitResult)
hitResult
- An AdjustmentHandle
instance representing the handle.public DiagramItem getItem()
DiagramItem
instance.public java.awt.geom.Point2D getPointerPosition()