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 IInkDrawCallback
public void onRedo()
onRedo
in interface IInkDrawCallback
public void onClean()
onClean
in interface IInkDrawCallback
public boolean canUndo()
IInkDrawCallback
canUndo
in interface IInkDrawCallback
public boolean canRedo()
IInkDrawCallback
canRedo
in interface IInkDrawCallback
public void onSave()
onSave
in interface IInkDrawCallback
public void setMode(IInkDrawCallback.Mode mode)
setMode
in interface IInkDrawCallback
mode
- Ink draw mode, more:Mode
public void setEffect(IInkDrawCallback.Effect effect)
setEffect
in interface IInkDrawCallback
effect
- Stroke effect of the pen, more: Effect
public void setInkUndoRedoCallback(InkUndoRedoCallback inkUndoRedoCallback)