public class CPDFInkAnnotImpl extends CPDFAnnotImpl<CPDFInkAnnotation> implements IInkDrawCallback
IInkDrawCallback.Effect, IInkDrawCallback.ModeannotIndex, isDirty| Constructor and Description |
|---|
CPDFInkAnnotImpl() |
| 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 |
eraseDraw(float x,
float y)
Eraser trajectory, erases points from the hand-drawn path.
|
IInkDrawCallback.Mode |
getMode() |
void |
onAnnotAttrChange()
Called when annotation attribute changes
|
void |
onClean()
Clears canvas
|
void |
onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
Draw
|
CPDFInkAnnotation |
onGetAnnotation()
Gets the currently binding annotation instance
|
void |
onInit(ReaderView readerView,
PageView pageView,
CPDFPage tpdfPage,
CPDFInkAnnotation pdfAnnotation)
Initialization, set initial value of
CPDFReaderView in current class instance, CPDFPageView, CPDFPage, CPDFAnnotation. |
void |
onRedo()
Redo
|
void |
onSave()
Saves ink annotation
|
boolean |
onSingleTapUp(float x,
float y)
Called when a tap occurs.
|
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 |
setMode(IInkDrawCallback.Mode mode)
Sets drawing mode, more:
IInkDrawCallback.Mode |
void |
showContextMenu() |
checkFocusable, checkFocusType, close, compare, getAnnotationRect, getAnnotAttr, getAnnotType, getId, isFocused, isVisible, onLongPress, redo, release, setFocused, setVisible, undopublic void onInit(ReaderView readerView, PageView pageView, CPDFPage tpdfPage, CPDFInkAnnotation pdfAnnotation)
IAnnotationImplCPDFReaderView in current class instance, CPDFPageView, CPDFPage, CPDFAnnotation.onInit in interface IAnnotationImpl<CPDFInkAnnotation>onInit in class CPDFBaseAnnotImpl<CPDFInkAnnotation>readerView - Used for showing View in the whole documentpageView - Used for showing View of each page in the documenttpdfPage - Page object of document, more: CPDFPagepdfAnnotation - Annotation object of document, more: CPDFAnnotationpublic CPDFInkAnnotation onGetAnnotation()
IAnnotationAttrChangeonGetAnnotation in interface IAnnotationAttrChange<CPDFInkAnnotation>CPDFAnnotationpublic void onAnnotAttrChange()
IAnnotationAttrChangeonAnnotAttrChange in interface IAnnotationAttrChange<CPDFInkAnnotation>public void eraseDraw(float x,
float y)
public void showContextMenu()
public void onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
IAnnotationRenderonDraw in interface IAnnotationRendercontext - Contextcanvas - The canvas on which the background will be drawnscale - Current scaling factorpublic boolean onSingleTapUp(float x,
float y)
IInputEventHandleronSingleTapUp in interface IInputEventHandlerx - The x coordinate on the page.y - The y coordinate on the page.public boolean onTouchEvent(android.view.MotionEvent event)
IInputEventHandleronTouchEvent in interface IInputEventHandlerevent - The motion event.public 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 IInkDrawCallback.Mode getMode()
public void setEffect(IInkDrawCallback.Effect effect)
IInkDrawCallbackIInkDrawCallback.EffectsetEffect in interface IInkDrawCallbackeffect - Stroke effect