Class ModifierTouchEventArgs
Defines a event args, used by various classes within SciChart to process motion events
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class ModifierTouchEventArgs implements ICleanable
Constructors
ModifierTouchEventArgs(IPublishMotionEvents source, IReceiveMotionEvents target)
Creates new instance of ModifierTouchEventArgs
Declaration
public ModifierTouchEventArgs(IPublishMotionEvents source, IReceiveMotionEvents target)
Parameters
Type | Name | Description |
---|---|---|
IPublishMotionEvents | source | The source of touch event |
IReceiveMotionEvents | target | The target, that subscribed on events from #source |
Fields
e
The MotionEvent instance
Declaration
public MotionEvent e
Field Value
Type | Description |
---|---|
android.view.MotionEvent |
isHandled
Gets or sets whether this event is Handled
Declaration
public boolean isHandled
Field Value
Type | Description |
---|---|
boolean |
source
Publisher of motion event
Declaration
public final IPublishMotionEvents source
Field Value
Type | Description |
---|---|
IPublishMotionEvents |
target
Source of event
Declaration
public final IReceiveMotionEvents target
Field Value
Type | Description |
---|---|
IReceiveMotionEvents |
Methods
clear()
Clears the current state of this object
Declaration
public void clear()
getPointRelativeTo(PointF point, IHitTestable relativeTo)
Transforms point with coordinates relative to #source and transforms it relative to specified IHitTestable instance
Declaration
public final boolean getPointRelativeTo(PointF point, IHitTestable relativeTo)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.PointF | point | The point to translate |
IHitTestable | relativeTo | The target IHitTestable instance |
Returns
Type | Description |
---|---|
boolean | True if translate was successful |
isEventWithinBounds(IHitTestable hitTestable)
Checks if #e is within bounds of specified IHitTestable
Declaration
public final boolean isEventWithinBounds(IHitTestable hitTestable)
Parameters
Type | Name | Description |
---|---|---|
IHitTestable | hitTestable | The hitTestable to check bounds |
Returns
Type | Description |
---|---|
boolean | True if current motion event is within specified hitTestable, otherwise false |
setEventPointRelativeTo(PointF point, IHitTestable relativeTo)
Sets specified point to #e relative to specified IHitTestable
Declaration
public final boolean setEventPointRelativeTo(PointF point, IHitTestable relativeTo)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.PointF | point | The point to set |
IHitTestable | relativeTo | The IHitTestable to set point relative to |
Returns
Type | Description |
---|---|
boolean | True if operation was successful, otherwise false |