public class CPDFTextWidgetImpl extends CPDFWidgetDefaultImpl
enableDragShowMagnifier, enableZoomShowMagnifier
annotIndex, isDirty
Constructor and Description |
---|
CPDFTextWidgetImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getstaticLayoutHeight() |
void |
onAnnotAttrChange()
Called when annotation attribute changes
|
void |
onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
Draw
|
CPDFTextWidget |
onGetAnnotation()
Gets the currently binding annotation instance
|
void |
onInit(ReaderView readerView,
PageView pageView,
CPDFPage tpdfPage,
CPDFAnnotation pdfAnnotation)
Initialization, set initial value of
CPDFReaderView in current class instance, CPDFPageView , CPDFPage , CPDFAnnotation . |
boolean |
onSingleTapUp(float x,
float y)
Called when a tap occurs.
|
void |
onTextWidgetFocused() |
boolean |
onTouchEvent(android.view.MotionEvent event)
This method to handle touch screen motion events.
|
checkFocusable, checkFocusType
getRequest, getSize, onDestroy, onLoadCleared, onLoadFailed, onLoadStarted, onResourceReady, onStart, onStop, removeCallback, setRequest
close, compare, getAnnotationRect, getAnnotAttr, getAnnotType, getId, isFocused, isVisible, onLongPress, redo, release, setFocused, setVisible, undo
public void onInit(ReaderView readerView, PageView pageView, CPDFPage tpdfPage, CPDFAnnotation pdfAnnotation)
IAnnotationImpl
CPDFReaderView
in current class instance, CPDFPageView
, CPDFPage
, CPDFAnnotation
.onInit
in interface IAnnotationImpl<CPDFAnnotation>
onInit
in class CPDFWidgetDefaultImpl
readerView
- Used for showing View
in the whole documentpageView
- Used for showing View
of each page in the documenttpdfPage
- Page object of document, more: CPDFPage
pdfAnnotation
- Annotation object of document, more: CPDFAnnotation
public CPDFTextWidget 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 CPDFWidgetDefaultImpl
context
- Contextcanvas
- The canvas on which the background will be drawnscale
- Current scaling factorpublic boolean onSingleTapUp(float x, float y)
IInputEventHandler
onSingleTapUp
in interface IInputEventHandler
onSingleTapUp
in class CPDFAnnotDefaultImpl
x
- The x coordinate on the page.y
- The y coordinate on the page.public boolean onTouchEvent(android.view.MotionEvent event)
IInputEventHandler
onTouchEvent
in interface IInputEventHandler
onTouchEvent
in class CPDFAnnotDefaultImpl
event
- The motion event.public void onTextWidgetFocused()
public int getstaticLayoutHeight()