public static class CPDFReaderView.TInkDrawHelper extends java.lang.Object implements IInkDrawCallback
IInkDrawCallback.Effect, IInkDrawCallback.Mode| Constructor and Description |
|---|
TInkDrawHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRedo()
Whether to support Redo, is a time-consuming method.
|
boolean |
canUndo()
Whether to support Undo, is a time-consuming method.
|
void |
clearInkOperation()
Clears ink annotation class of all page.
|
IInkDrawCallback |
getInkDrawCallback(int pageNum)
Gets ink annotation class of corresponding page index.
|
android.util.SparseArray<IInkDrawCallback> |
getInkDrawCallbacks()
Get all ink annotation entity.
|
void |
onClean()
Clear
|
void |
onRedo()
Redo
|
void |
onSave()
Save
|
void |
onUndo()
Undo
|
void |
setEffect(IInkDrawCallback.Effect effect)
Sets the stroke effect of pen.
|
void |
setInkUndoRedoCallback(InkUndoRedoCallback inkUndoRedoCallback) |
void |
setMode(IInkDrawCallback.Mode mode)
Sets ink draw mode
|
public android.util.SparseArray<IInkDrawCallback> getInkDrawCallbacks()
public IInkDrawCallback getInkDrawCallback(int pageNum)
pageNum - Page index.public void clearInkOperation()
public void onUndo()
onUndo in interface IInkDrawCallbackpublic void onRedo()
onRedo in interface IInkDrawCallbackpublic void onClean()
onClean in interface IInkDrawCallbackpublic boolean canUndo()
IInkDrawCallbackcanUndo in interface IInkDrawCallbackpublic boolean canRedo()
IInkDrawCallbackcanRedo in interface IInkDrawCallbackpublic void onSave()
onSave in interface IInkDrawCallbackpublic void setMode(IInkDrawCallback.Mode mode)
setMode in interface IInkDrawCallbackmode - Ink draw mode, more:Modepublic void setEffect(IInkDrawCallback.Effect effect)
setEffect in interface IInkDrawCallbackeffect - Stroke effect of the pen, more: Effectpublic void setInkUndoRedoCallback(InkUndoRedoCallback inkUndoRedoCallback)