public class SpenWritingControl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SpenWritingControl.TextSpanType
The type of text span.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SpenWritingControl(com.samsung.android.sdk.composer.writing.WritingManager writingManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendImageObject(String filePath)
Add the specified image object to the current page.
The add object action is recorded in the history stack. |
void |
appendText(String str)
Append the specified text to the text box control.
|
void |
appendTextObject(String str)
Add the specified text object to the current page.
The add object action is recorded in the history stack. |
boolean |
canSelectAllText()
Check the text box can select all or not.
|
protected void |
close() |
void |
closeControl()
Close the native SpenControlBase instance.
|
RectF |
getDrawnRect()
Get the region that the rectangle takes up in the viewport.
|
String |
getSelectedText()
Get the text that is selected in the text box control.
|
void |
hideToolbar()
Hide handwriting toolbar
Only you use to be focused the ContentHandwriting.
|
boolean |
isRedoable()
Check if the action is redoable.
Check if the redo stack in the history manager is empty. If it is empty, there is no command to redo, and the method returns false. If it is not empty, it returns true. Always use this method before calling Redo(). |
boolean |
isUndoable()
Check if the action is undoable.
Check if the undo stack in the history manager is empty. If it is empty, there is no command to undo, and this method returns false. If it is not empty, it returns true. Always call this method before calling Undo(). |
boolean |
playVideo(SpenObjectBase objectBase)
Play the attached video in handwriting.
|
void |
Redo()
Updates the screen after executing redo command
Only you use to be focused the ContentHandwriting.
|
void |
removeText()
Remove the text in the text box control.
|
void |
selectAllText()
Select all the text in the text box control.
|
void |
showToolbar()
Show handwriting toolbar
Only you use to be focused the ContentHandwriting.
|
void |
stopActionMode()
Finish and close this action mode.
|
void |
Undo()
Updates the screen after executing undo command
Only you use to be focused the ContentHandwriting.
|
void |
updateCanvas()
Update the canvas.
|
void |
updateTextSettingInfo(SpenSettingTextInfo info,
SpenWritingControl.TextSpanType type)
Set the specified text settings information for the text box control.
|
protected SpenWritingControl(com.samsung.android.sdk.composer.writing.WritingManager writingManager)
protected void close()
public void closeControl()
public void updateCanvas()
public void appendText(String str)
str - The text to add to the control.IllegalArgumentException - Thrown if str is null.public void removeText()
public String getSelectedText()
public void selectAllText()
public boolean canSelectAllText()
public void updateTextSettingInfo(SpenSettingTextInfo info, SpenWritingControl.TextSpanType type)
info - The text settings information object.NullPointerException - Thrown if info is null.public RectF getDrawnRect()
public boolean playVideo(SpenObjectBase objectBase)
objectBase - The object to play the video.public void stopActionMode()
public void appendTextObject(String str)
str - The text that you want to add.IllegalArgumentException - Thrown if str is null.public void appendImageObject(String filePath)
filePath - The absolute path of the files that you want to add.IllegalArgumentException - Thrown if filePath is null.public void showToolbar()
public void hideToolbar()
public void Undo()
public void Redo()
public boolean isUndoable()
Undo()public boolean isRedoable()
Redo()