public class

HtcPenStroke

extends Stroke
java.lang.Object
   ↳ com.htc.painting.engine.stroke.Stroke
     ↳ com.htc.painting.engine.stroke.HtcPenStroke

Summary

[Expand]
Inherited Constants
From class com.htc.painting.engine.stroke.Stroke
[Expand]
Inherited Fields
From class com.htc.painting.engine.stroke.Stroke
Public Constructors
HtcPenStroke(int id, ByteArrayInputStream is)
HtcPenStroke(int id, Pen pen, StrokeProperties properties)
Public Methods
int deserialize(ByteArrayInputStream is)
void draw(Canvas canvas, int startIndex, int endIndex)
if stroke support partial render.
void draw(Canvas canvas)
int getTotalBytes()
if stroke could provide memory information, override this function
boolean serialize(ByteArrayOutputStream os)
TODO : need to consider to move serialize/deserialize to Base class
Protected Methods
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
void updateBoundingRect(RectF dirtyRect)
[Expand]
Inherited Methods
From class com.htc.painting.engine.stroke.Stroke
From class java.lang.Object

Public Constructors

public HtcPenStroke (int id, ByteArrayInputStream is)

public HtcPenStroke (int id, Pen pen, StrokeProperties properties)

Public Methods

public int deserialize (ByteArrayInputStream is)

Throws
IOException

public void draw (Canvas canvas, int startIndex, int endIndex)

if stroke support partial render. override this function

public void draw (Canvas canvas)

public int getTotalBytes ()

if stroke could provide memory information, override this function

public boolean serialize (ByteArrayOutputStream os)

TODO : need to consider to move serialize/deserialize to Base class

Throws
IOException

Protected Methods

protected void onEnd (Canvas canvas, RectF dirtyRect)

Implement this to customized your own data

protected void onMove (Canvas canvas, float x, float y, float pressure, float size, RectF dirtyRect)

Implement this to customized your own data

protected void onStart (Canvas canvas, RectF dirtyRect)

Implement this to customized your own data

protected void updateBoundingRect (RectF dirtyRect)