public class CPDFLinkAnnotImpl extends CPDFAnnotImpl<CPDFLinkAnnotation>
Modifier and Type | Field and Description |
---|---|
static boolean |
enableDragShowMagnifier |
static boolean |
enableZoomShowMagnifier |
annotIndex, isDirty
Constructor and Description |
---|
CPDFLinkAnnotImpl() |
Modifier and Type | Method and Description |
---|---|
void |
doAction(CPDFDocument document,
CPDFLinkAnnotation linkAnnotation)
Response to the jump action of the link
|
void |
onAnnotAttrChange()
Called when annotation attribute changes
|
void |
onDraw(android.content.Context context,
android.graphics.Canvas canvas,
float scale)
Draw
|
CPDFLinkAnnotation |
onGetAnnotation()
Gets the currently binding annotation instance
|
void |
onInit(ReaderView readerView,
PageView pageView,
CPDFPage tpdfPage,
CPDFLinkAnnotation annotation)
Initialization, set initial value of
CPDFReaderView in current class instance, CPDFPageView , CPDFPage , CPDFAnnotation . |
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, onLongPress, redo, release, setFocused, setVisible, undo
public static boolean enableDragShowMagnifier
public static boolean enableZoomShowMagnifier
public void onInit(ReaderView readerView, PageView pageView, CPDFPage tpdfPage, CPDFLinkAnnotation annotation)
IAnnotationImpl
CPDFReaderView
in current class instance, CPDFPageView
, CPDFPage
, CPDFAnnotation
.onInit
in interface IAnnotationImpl<CPDFLinkAnnotation>
onInit
in class CPDFBaseAnnotImpl<CPDFLinkAnnotation>
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
annotation
- Annotation object of document, more: CPDFAnnotation
public CPDFLinkAnnotation onGetAnnotation()
IAnnotationAttrChange
CPDFAnnotation
public void onAnnotAttrChange()
IAnnotationAttrChange
public void onDraw(android.content.Context context, android.graphics.Canvas canvas, float scale)
IAnnotationRender
context
- Contextcanvas
- The canvas on which the background will be drawnscale
- Current scaling factorpublic boolean onSingleTapUp(float x, float y)
IInputEventHandler
x
- The x coordinate on the page.y
- The y coordinate on the page.public void doAction(CPDFDocument document, CPDFLinkAnnotation linkAnnotation)
public boolean onTouchEvent(android.view.MotionEvent event)
IInputEventHandler
event
- The motion event.