abstract
Stroke
|
create(List<MotionPoint> points)
|
abstract
int
|
deserialize(ByteArrayInputStream is)
|
final
void
|
destroy()
|
void
|
draw(Canvas canvas, int startIndex, int endIndex)
if stroke support partial render.
|
abstract
void
|
draw(Canvas canvas)
|
final
void
|
end(Canvas canvas, RectF dirtyRect)
|
boolean
|
filterOutPoint(float preX, float preY, float currentX, float currentY)
Given previous and current points to decide filter out point or not
|
long
|
getCreationTime()
creation time of stroke
|
int
|
getId()
getter function for the Stroke's id
|
List<MotionPoint>
|
getMotionPoints()
Get sequence of MotionPoint
|
Path
|
getPath()
Get path of the Stroke
|
StrokeProperties
|
getProperties()
Get the StrokeProperties of the Stroke
|
RectF
|
getRect()
Get Bounding Rect of Stroke
|
int
|
getTotalBytes()
if stroke could provide memory information,
override this function
|
boolean
|
isDestroyed()
Indicates whether this Stroke is destroyed
|
boolean
|
isEffective()
Indicates whether this Stroke is effective
|
final
void
|
move(Canvas canvas, float x, float y, float pressure, float size, RectF dirtyRect)
|
void
|
onDestroy()
Implement this to customized your own data
|
void
|
onEnd(Canvas canvas, RectF dirtyRect)
Implement this to customized your own data
|
void
|
onMove(Canvas canvas, float x, float y, float pressure, float size, RectF dirtyRect)
Implement this to customized your own data
|
void
|
onStart(Canvas canvas, RectF dirtyRect)
Implement this to customized your own data
|
abstract
boolean
|
serialize(ByteArrayOutputStream os)
|
void
|
setEffective(boolean effective)
mark this Stroke to be effective or ineffective
|
void
|
setStrokeId(int id)
|
final
void
|
start(Canvas canvas, RectF dirtyRect)
|
void
|
transform(Matrix m)
|
void
|
updateBoundingRect(RectF dirtyRect)
|