public class SpenContentHandWriting extends SpenContentBase
getNoteDoc().| Modifier and Type | Field and Description |
|---|---|
static int |
CANVAS_TYPE_FINITE
Canvas type finite.
|
static int |
CANVAS_TYPE_INFINITE
Canvas type infinite.
|
STATE_CANCELED, STATE_DONE, STATE_EXCEPTION, STATE_FAIL, STATE_INIT, STATE_NONE, STATE_READY, STATE_RUNNING, TASK_BULLET, TASK_DONE, TASK_NONE, TASK_NUMBER, TASK_TODO, TYPE_DRAWING, TYPE_HANDWRITING, TYPE_IMAGE, TYPE_NONE, TYPE_TEXT| Constructor and Description |
|---|
SpenContentHandWriting()
Create a SpenContentHandWriting instance
|
SpenContentHandWriting(int canvasType)
Create a SpenContentHandWriting instance with
canvasType |
| Modifier and Type | Method and Description |
|---|---|
void |
attachFile(String path)
Attach a handwriting spd file.
|
void |
copy(SpenContentBase source)
Copy data from the source content
|
SpenNoteDoc |
createNoteDoc(Context context,
int width,
int height)
Create NoteDoc instance for handwriting canvas.
|
void |
deleteNoteDoc()
Delete NoteDoc instance.
|
String |
getAttachedFile()
Get Attached handwriting spd file.
|
int |
getCanvasType()
Get the handwriting canvas type.
|
SpenNoteDoc |
getNoteDoc()
Get NoteDoc instance.
|
RectF |
getObjectRect()
Get a rectangle area of the content
|
int |
getThumbnailCount()
Get thumbnail image count.
|
ArrayList<String> |
getThumbnailPathList()
Get the thumbnail file path list.
|
boolean |
isImageIncluded()
Check the image object inside handwriting canvas.
|
void |
setObjectRect(RectF rect)
Set a specified region of content
|
void |
setThumbnailCount(int count)
Set thumbnail image count.
|
void |
setThumbnailPathList(ArrayList<String> pathList)
Set the thumbnail file path list.
|
appendSpan, clearChangedFlag, equals, findSpan, getItemHeight, getLength, getSpan, getState, getTaskId, getTaskNumber, getTaskStyle, getText, getThumbnailPath, getType, isChanged, removeSpan, setItemHeight, setSpan, setState, setTaskId, setTaskNumber, setTaskStyle, setText, setThumbnailPathpublic static final int CANVAS_TYPE_INFINITE
SpenContentHandWriting(int),
Constant Field Valuespublic static final int CANVAS_TYPE_FINITE
SpenContentHandWriting(int),
Constant Field Valuespublic SpenContentHandWriting()
public SpenContentHandWriting(int canvasType)
canvasTypecanvasType - The canvas type of SpenContentHandWriting.#CANVAS_TYPE_FINITE},
#CANVAS_TYPE_INFINITE}public void setObjectRect(RectF rect)
rect - The region of the content.public RectF getObjectRect()
public void attachFile(String path)
path - The file path.public void setThumbnailPathList(ArrayList<String> pathList)
pathList - The file path list.IllegalArgumentException - Thrown if pathList is null.public ArrayList<String> getThumbnailPathList()
public void copy(SpenContentBase source)
copy in class SpenContentBasesource - The source content.IllegalArgumentException - Thrown if class type is different.
Or if source is null.public String getAttachedFile()
#getAttachedFile()}public int getCanvasType()
#CANVAS_TYPE_FINITE},
#CANVAS_TYPE_INFINITE}public SpenNoteDoc createNoteDoc(Context context, int width, int height) throws IOException
context - context.width - NoteDoc width.height - NoteDoc height.NullPointerException - Thrown if context is null.IllegalStateException - Thrown if handwriting canvas already contain the NoteDoc instance.IllegalArgumentException - Thrown if width or height less than 32.IOExceptionpublic SpenNoteDoc getNoteDoc()
#createNoteDoc(Context, int, int)}public void deleteNoteDoc()
#createNoteDoc(Context, int, int)}public boolean isImageIncluded()
public void setThumbnailCount(int count)
count - thumbnail countIllegalArgumentException - Thrown if count is negativepublic int getThumbnailCount()
#setThumbnailCount(int)}