java.lang.Object | |
↳ | com.htc.painting.engine.stroke.Stroke |
![]() |
A Stroke is a drawing that is generated when a user touches, moves, and leaves the screen. The user can touch the screen either by hand or by a pen. A Stroke is represented by a path and other informations that determines the drawing texture.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | INVALID_STROKE_ID | Invalid stroke id |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mCreationTime | |||||||||||
mId | |||||||||||
mIsDestroyed | |||||||||||
mIsEffective | |||||||||||
mPath | |||||||||||
mPoints | |||||||||||
mRectF | |||||||||||
mStrokeProperties |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor os an stroke
| |||||||||||
Constructor of an stroke
| |||||||||||
Constructor of a Stroke.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
if stroke support partial render.
| |||||||||||
creation time of stroke
| |||||||||||
getter function for the Stroke's id
| |||||||||||
Get sequence of MotionPoint
| |||||||||||
Get path of the Stroke
| |||||||||||
Get the StrokeProperties of the Stroke
| |||||||||||
Get Bounding Rect of Stroke
| |||||||||||
if stroke could provide memory information,
override this function
| |||||||||||
Indicates whether this Stroke is destroyed
| |||||||||||
Indicates whether this Stroke is effective
| |||||||||||
mark this Stroke to be effective or ineffective
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Given previous and current points to decide filter out point or not
| |||||||||||
Implement this to customized your own data
| |||||||||||
Implement this to customized your own data
| |||||||||||
Implement this to customized your own data
| |||||||||||
Implement this to customized your own data
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Invalid stroke id
Constructor os an stroke
id | the id of the Stroke |
---|
Constructor of an stroke
id | the id of the Stroke |
---|---|
is | an intput stream that provides the data to convert to a Stroke |
Constructor of a Stroke.
id | the id of the Stroke |
---|---|
property | the StrokeProperties of with this Stroke |
if stroke support partial render. override this function
getter function for the Stroke's id
Get the StrokeProperties of the Stroke
if stroke could provide memory information, override this function
Indicates whether this Stroke is destroyed
Indicates whether this Stroke is effective
IOException |
---|
mark this Stroke to be effective or ineffective
effective | true to mark Stroke effective, false otherwise |
---|
Given previous and current points to decide filter out point or not
preX | x of previous point |
---|---|
preY | y of previous point |
currentX | x of current point |
currentY | y of current point |
Implement this to customized your own data
Implement this to customized your own data
Implement this to customized your own data