public class SpenContentDrawing extends SpenContentBase
SpenContentBase since 5.0.0.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 |
|---|
SpenContentDrawing()
Creates an SpenContentDrawing instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachFile(String path)
Attach the drawing file.
|
void |
copy(SpenContentBase source)
Copy data from the specified content.
|
String |
getAttachedFile()
Get the attached file.
|
RectF |
getObjectRect()
Get the rectangle of the region.
|
float |
getRatio()
Get the ratio of drawing
|
void |
setObjectRect(RectF rect)
Set the specified rectangle for the region.
|
void |
setRatio(float ratio)
Set the ratio of drawing thumbnail
|
appendSpan, clearChangedFlag, equals, findSpan, getItemHeight, getLength, getSpan, getState, getTaskId, getTaskNumber, getTaskStyle, getText, getThumbnailPath, getType, isChanged, removeSpan, setItemHeight, setSpan, setState, setTaskId, setTaskNumber, setTaskStyle, setText, setThumbnailPathpublic SpenContentDrawing()
public void setObjectRect(RectF rect)
rect - The rectangle of region.getObjectRect()public RectF getObjectRect()
setObjectRect(RectF)public void attachFile(String path)
SpenPaintingDocpath - The file pathIllegalArgumentException - Thrown if the path is not a spp file.getAttachedFile()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 void setRatio(float ratio)
ratio - ratiopublic float getRatio()
public String getAttachedFile()
attachFile(String)