public class TapEventArgs extends InputModeEventArgs
Tapped
.EMPTY
Constructor and Description |
---|
TapEventArgs(IInputModeContext context,
PointD location)
Initializes a new instance of the
TapEventArgs class. |
TapEventArgs(PointD location)
Initializes a new instance of the
TapEventArgs class. |
Modifier and Type | Method and Description |
---|---|
PointD |
getLocation()
Gets the location of the tap.
|
boolean |
isHandled()
Gets a value indicating whether this
TapEventArgs have been handled. |
void |
setHandled(boolean value)
Sets a value indicating whether this
TapEventArgs have been handled. |
getContext
public TapEventArgs(IInputModeContext context, PointD location)
TapEventArgs
class.context
- The context in which the tap occurred.location
- The location.public TapEventArgs(PointD location)
TapEventArgs
class.location
- The location.public final PointD getLocation()
public final boolean isHandled()
TapEventArgs
have been handled.
Client code that is triggered by the event and does not want the event to become handled by other handles should set
this property to true
to stop propagation of the event.
true
if handled; false
otherwise.setHandled(boolean)
public final void setHandled(boolean value)
TapEventArgs
have been handled.
Client code that is triggered by the event and does not want the event to become handled by other handles should set
this property to true
to stop propagation of the event.
value
- true
if handled; false
otherwise.isHandled()