public static class

StrokeEventArg.StrokeMoveEventArg

extends StrokeEventArg
java.lang.Object
   ↳ com.htc.painting.engine.StrokeEventArg
     ↳ com.htc.painting.engine.StrokeEventArg.StrokeMoveEventArg

Class Overview

This class contains information related to a move event

Summary

Fields
protected final PointF mPos
protected final StrokeEventArg.StrokeEndingState mState
[Expand]
Inherited Fields
From class com.htc.painting.engine.StrokeEventArg
Public Constructors
StrokeEventArg.StrokeMoveEventArg(Stroke d, int groupId, PointF pos)
StrokeEventArg.StrokeMoveEventArg(Stroke d, int groupId, PointF pos, StrokeEventArg.StrokeEndingState state)
Public Methods
StrokeEventArg.StrokeEndingState getEndingState()
This returns the ending state of the stroke that is related to this stroke event Ex.Return StrokeEndingState.NotEnding in OnStrokeListener.onStrokeBegin when the stroke is still ongoing Return StrokeEndingState.Standard when the stroke follow the regular action "down, move, up" sequence Return {@linkStrokeEndingState.ForceEnding } when the stroke in all other cases
PointF getPos()
Get the position of the event occurrence with respect to stroke group it belongs to
[Expand]
Inherited Methods
From class com.htc.painting.engine.StrokeEventArg
From class java.lang.Object

Fields

protected final PointF mPos

Since: API Level 2.0

protected final StrokeEventArg.StrokeEndingState mState

Since: API Level 2.0

Public Constructors

public StrokeEventArg.StrokeMoveEventArg (Stroke d, int groupId, PointF pos)

Since: API Level 2.0

public StrokeEventArg.StrokeMoveEventArg (Stroke d, int groupId, PointF pos, StrokeEventArg.StrokeEndingState state)

Since: API Level 2.0

Public Methods

public StrokeEventArg.StrokeEndingState getEndingState ()

Since: API Level 2.0

This returns the ending state of the stroke that is related to this stroke event Ex.Return StrokeEndingState.NotEnding in OnStrokeListener.onStrokeBegin when the stroke is still ongoing Return StrokeEndingState.Standard when the stroke follow the regular action "down, move, up" sequence Return {@linkStrokeEndingState.ForceEnding } when the stroke in all other cases

public PointF getPos ()

Since: API Level 2.0

Get the position of the event occurrence with respect to stroke group it belongs to