public class CPDFFreetextAnnotImpl extends CPDFAnnotDefaultImpl
Modifier and Type | Field and Description |
---|---|
static boolean |
enableDragShowMagnifier |
static boolean |
enableZoomShowMagnifier |
annotIndex, isDirty
Constructor and Description |
---|
CPDFFreetextAnnotImpl() |
Modifier and Type | Method and Description |
---|---|
void |
onAnnotAttrChange()
Called when annotation attribute changes
|
void |
onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
Draw
|
CPDFFreetextAnnotation |
onGetAnnotation()
Gets the currently binding annotation instance
|
void |
onInit(ReaderView readerView,
PageView pageView,
CPDFPage tpdfPage,
CPDFFreetextAnnotation pdfFreetextAnnotation) |
boolean |
onTouchEvent(android.view.MotionEvent event)
This method to handle touch screen motion events.
|
getRequest, getSize, onDestroy, onInit, onLoadCleared, onLoadFailed, onLoadStarted, onResourceReady, onSingleTapUp, onStart, onStop, removeCallback, setRequest
checkFocusable, checkFocusType, close, compare, getAnnotationRect, getAnnotAttr, getAnnotType, getId, isFocused, isVisible, onLongPress, redo, release, setFocused, setVisible, undo
public static boolean enableDragShowMagnifier
public static boolean enableZoomShowMagnifier
public void onInit(ReaderView readerView, PageView pageView, CPDFPage tpdfPage, CPDFFreetextAnnotation pdfFreetextAnnotation)
public CPDFFreetextAnnotation onGetAnnotation()
IAnnotationAttrChange
onGetAnnotation
in interface IAnnotationAttrChange<CPDFAnnotation>
onGetAnnotation
in class CPDFAnnotDefaultImpl
CPDFAnnotation
public void onAnnotAttrChange()
IAnnotationAttrChange
onAnnotAttrChange
in interface IAnnotationAttrChange<CPDFAnnotation>
onAnnotAttrChange
in class CPDFAnnotDefaultImpl
public void onDraw(android.content.Context context, android.graphics.Canvas canvas, float scale)
IAnnotationRender
onDraw
in interface IAnnotationRender
onDraw
in class CPDFAnnotDefaultImpl
context
- Contextcanvas
- The canvas on which the background will be drawnscale
- Current scaling factorpublic boolean onTouchEvent(android.view.MotionEvent event)
IInputEventHandler
onTouchEvent
in interface IInputEventHandler
onTouchEvent
in class CPDFAnnotDefaultImpl
event
- The motion event.