public class CPDFWidgetDefaultImpl extends CPDFAnnotDefaultImpl
enableDragShowMagnifier, enableZoomShowMagnifier
annotIndex, isDirty
Constructor and Description |
---|
CPDFWidgetDefaultImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkFocusable() |
CPDFReaderView.CheckFocusType |
checkFocusType() |
void |
onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
Draw
|
void |
onInit(ReaderView readerView,
PageView pageView,
CPDFPage tpdfPage,
CPDFAnnotation pdfAnnotation)
Initialization, set initial value of
CPDFReaderView in current class instance, CPDFPageView , CPDFPage , CPDFAnnotation . |
getRequest, getSize, onAnnotAttrChange, onDestroy, onGetAnnotation, onLoadCleared, onLoadFailed, onLoadStarted, onResourceReady, onSingleTapUp, onStart, onStop, onTouchEvent, 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 CPDFAnnotDefaultImpl
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 boolean checkFocusable()
checkFocusable
in class CPDFBaseAnnotImpl<CPDFAnnotation>
public CPDFReaderView.CheckFocusType checkFocusType()
checkFocusType
in class CPDFBaseAnnotImpl<CPDFAnnotation>
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 factor