public class CPDFStampAnnotImpl extends CPDFAnnotDefaultImpl
enableDragShowMagnifier, enableZoomShowMagnifier
annotIndex, isDirty
Constructor and Description |
---|
CPDFStampAnnotImpl() |
Modifier and Type | Method and Description |
---|---|
android.graphics.PointF |
convertPointFromPage(float px,
float py) |
void |
onAnnotAttrChange()
Called when annotation attribute changes
|
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 . |
boolean |
onTouchEvent(android.view.MotionEvent event)
This method to handle touch screen motion events.
|
void |
setEnableRotate(boolean enable) |
getRequest, getSize, onDestroy, onGetAnnotation, 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 void setEnableRotate(boolean enable)
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 android.graphics.PointF convertPointFromPage(float px, float py)
public boolean onTouchEvent(android.view.MotionEvent event)
IInputEventHandler
onTouchEvent
in interface IInputEventHandler
onTouchEvent
in class CPDFAnnotDefaultImpl
event
- The motion event.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 void onAnnotAttrChange()
IAnnotationAttrChange
onAnnotAttrChange
in interface IAnnotationAttrChange<CPDFAnnotation>
onAnnotAttrChange
in class CPDFAnnotDefaultImpl