public class CPDFTextAnnotImpl extends CPDFAnnotImpl<CPDFTextAnnotation>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
enableDragShowMagnifier |
static boolean |
enableZoomShowMagnifier |
annotIndex, isDirty| Constructor and Description |
|---|
CPDFTextAnnotImpl() |
| 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
|
CPDFTextAnnotation |
onGetAnnotation()
Gets the currently binding annotation instance
|
void |
onInit(ReaderView readerView,
PageView pageView,
CPDFPage tpdfPage,
CPDFTextAnnotation textAnnotation)
Initialization, set initial value of
CPDFReaderView in current class instance, CPDFPageView, CPDFPage, CPDFAnnotation. |
boolean |
onLongPress(float x,
float y)
Called when a long press occurs .
|
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.
|
checkFocusable, checkFocusType, close, compare, getAnnotationRect, getAnnotAttr, getAnnotType, getId, isFocused, isVisible, redo, release, setFocused, setVisible, undopublic static boolean enableDragShowMagnifier
public static boolean enableZoomShowMagnifier
public void onInit(ReaderView readerView, PageView pageView, CPDFPage tpdfPage, CPDFTextAnnotation textAnnotation)
IAnnotationImplCPDFReaderView in current class instance, CPDFPageView, CPDFPage, CPDFAnnotation.onInit in interface IAnnotationImpl<CPDFTextAnnotation>onInit in class CPDFBaseAnnotImpl<CPDFTextAnnotation>readerView - Used for showing View in the whole documentpageView - Used for showing View of each page in the documenttpdfPage - Page object of document, more: CPDFPagetextAnnotation - Annotation object of document, more: CPDFAnnotationpublic CPDFTextAnnotation onGetAnnotation()
IAnnotationAttrChangeCPDFAnnotationpublic void onAnnotAttrChange()
IAnnotationAttrChangepublic void onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
IAnnotationRendercontext - Contextcanvas - The canvas on which the background will be drawnscale - Current scaling factorpublic boolean onSingleTapUp(float x,
float y)
IInputEventHandlerx - The x coordinate on the page.y - The y coordinate on the page.public boolean onLongPress(float x,
float y)
IInputEventHandleronLongPress in interface IInputEventHandleronLongPress in class CPDFBaseAnnotImpl<CPDFTextAnnotation>x - The x coordinate on the page.y - The y coordinate on the page.public boolean onTouchEvent(android.view.MotionEvent event)
IInputEventHandlerevent - The motion event.