public abstract class CPDFFakeInkAnnotAttachHelper extends java.lang.Object implements IAnnotAttachHelper, IInkDrawCallback
| Modifier and Type | Class and Description |
|---|---|
static interface |
CPDFFakeInkAnnotAttachHelper.HandwritingHelper |
IInkDrawCallback.Effect, IInkDrawCallback.Mode| Constructor and Description |
|---|
CPDFFakeInkAnnotAttachHelper() |
| 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 |
onClean()
Clears canvas
|
void |
onDraw(android.graphics.Canvas canvas)
Implement this to do your drawing.
|
void |
onInit(CPDFReaderView readerView,
CPDFPageView pageView)
Initialization, set initial value of
CPDFReaderView and CPDFPageView in current class instance. |
void |
onRedo()
Redo
|
void |
onSave()
Saves ink annotation
|
boolean |
onTouchEvent(android.view.MotionEvent event)
This method to handle touch screen motion events
|
void |
onUndo()
Undo
|
void |
setEffect(IInkDrawCallback.Effect effect)
Sets stroke effect, more:
IInkDrawCallback.Effect |
void |
setHandwritingHelper(CPDFFakeInkAnnotAttachHelper.HandwritingHelper handwritingHelper) |
void |
setMode(IInkDrawCallback.Mode mode)
Sets drawing mode, more:
IInkDrawCallback.Mode |
void |
setPDFPage(CPDFPage pdfPage)
Sets page object of the document, more:
CPDFPage |
public void onInit(CPDFReaderView readerView, CPDFPageView pageView)
IAnnotAttachHelperCPDFReaderView and CPDFPageView in current class instance.onInit in interface IAnnotAttachHelperreaderView - Used for showing View in the whole documentpageView - Used for showing View of each page in the document.public void setHandwritingHelper(CPDFFakeInkAnnotAttachHelper.HandwritingHelper handwritingHelper)
public void setPDFPage(CPDFPage pdfPage)
IAnnotAttachHelperCPDFPagesetPDFPage in interface IAnnotAttachHelperpdfPage - Page object of the document, more: CPDFPagepublic boolean onTouchEvent(android.view.MotionEvent event)
IAnnotAttachHelperonTouchEvent in interface IAnnotAttachHelperevent - The motion event.public void onDraw(android.graphics.Canvas canvas)
IAnnotAttachHelperonDraw in interface IAnnotAttachHelpercanvas - The canvas on which the background will be drawnpublic void onUndo()
IInkDrawCallbackonUndo in interface IInkDrawCallbackpublic void onRedo()
IInkDrawCallbackonRedo in interface IInkDrawCallbackpublic boolean canUndo()
IInkDrawCallbackcanUndo in interface IInkDrawCallbackpublic boolean canRedo()
IInkDrawCallbackcanRedo in interface IInkDrawCallbackpublic void onClean()
IInkDrawCallbackonClean in interface IInkDrawCallbackpublic void onSave()
IInkDrawCallbackonSave in interface IInkDrawCallbackpublic void setMode(IInkDrawCallback.Mode mode)
IInkDrawCallbackIInkDrawCallback.ModesetMode in interface IInkDrawCallbackmode - Drawing mode, more: IInkDrawCallback.Modepublic void setEffect(IInkDrawCallback.Effect effect)
IInkDrawCallbackIInkDrawCallback.EffectsetEffect in interface IInkDrawCallbackeffect - Stroke effect