public class HitTestEvent
extends java.util.EventObject
| Constructor and Description |
|---|
HitTestEvent(java.lang.Object source,
DiagramItem item,
android.graphics.PointF pointerPosition)
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.
|
android.graphics.PointF |
getPointerPosition()
Gets the current pointer 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,
android.graphics.PointF pointerPosition)
source - The event source.item - The DiagramItem related to the event.pointerPosition - 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 android.graphics.PointF getPointerPosition()