void
|
backToDefaultTool()
|
static
Pair<ToolManager.ToolMode, ArrayList<Annot>>
|
canSelectGroupAnnot(PDFViewCtrl pdfViewCtrl, Annot annot, int pageNum)
Check whether an annotation is part of a group annotation,
proceed to select the group instead.
|
void
|
clearTargetPoint()
Clears the target point.
|
void
|
closeQuickMenu()
Closes the quick menu
|
void
|
executeAction(ActionParameter actionParam)
Executes an action with the specified parameters.
|
static
String
|
findPDFTronFontName(Context context, String fontName)
Returns the PDFTron font name associated with the given font name.
|
Annot
|
getAnnot()
Returns the annotation associated with this tool.
|
static
Bundle
|
getAnnotationModificationBundle(Bundle bundle)
|
Bundle
|
getBundle()
|
abstract
int
|
getCreateAnnotType()
Gets what annotation type this tool can create
|
ToolManager.ToolModeBase
|
getCurrentDefaultToolMode()
|
static
String
|
getFontKey(int annotType)
Returns the storage key string for font
|
static
String
|
getHorizontalAlignmentKey(int annotType)
Returns the storage key string for horizontal text alignment
|
final
ToolManager.ToolModeBase
|
getNextToolMode()
|
boolean
|
getSnappingEnabled()
|
RectF
|
getTextSelectRect(float x, float y)
Gets a rectangle to use when selecting text.
|
abstract
ToolManager.ToolModeBase
|
getToolMode()
|
static
SharedPreferences
|
getToolPreferences(Context context)
|
static
String
|
getVerticalAlignmentKey(int annotType)
Returns the storage key string for vertical text alignment
|
boolean
|
hasAnnotSelected()
|
boolean
|
hasMenuEntry(int menuId)
Whether the current quick menu includes a certain menu type
|
boolean
|
isCreatingAnnotation()
|
boolean
|
isEditAnnotTool()
Whether the purpose of this tool is editing annotation
|
boolean
|
isEditingAnnot()
|
boolean
|
isForceSameNextToolMode()
Gets whether the mode that should forcefully remains.
|
boolean
|
isInsideQuickMenu(float x, float y)
Checks whether the specified point is inside the quick menu layout.
|
boolean
|
isQuickMenuShown()
check if quick menu is showing
|
void
|
onAnnotPainterUpdated(int page, long which, CurvePainter painter)
|
void
|
onClose()
|
void
|
onConfigurationChanged(Configuration newConfig)
|
void
|
onCreate()
Called after the tool is created by ToolManager.
|
void
|
onCustomEvent(Object o)
|
void
|
onDocumentDownloadEvent(PDFViewCtrl.DownloadState state, int page_num, int page_downloaded, int page_count, String message)
|
boolean
|
onDoubleTap(MotionEvent e)
|
void
|
onDoubleTapEnd(MotionEvent e)
|
boolean
|
onDoubleTapEvent(MotionEvent e)
|
void
|
onDoubleTapZoomAnimationBegin()
|
void
|
onDoubleTapZoomAnimationEnd()
|
boolean
|
onDown(MotionEvent e)
|
void
|
onDraw(Canvas canvas, Matrix tfm)
|
boolean
|
onDrawEdgeEffects(Canvas canvas, int width, int verticalOffset)
|
boolean
|
onFlingStop()
|
boolean
|
onKeyUp(int keyCode, KeyEvent event)
|
void
|
onLayout(boolean changed, int l, int t, int r, int b)
|
boolean
|
onLongPress(MotionEvent e)
|
boolean
|
onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
|
void
|
onNightModeUpdated(boolean isNightMode)
|
void
|
onPageTurning(int old_page, int cur_page)
|
boolean
|
onPointerDown(MotionEvent e)
|
void
|
onPostSingleTapConfirmed()
|
void
|
onPullEdgeEffects(int whichEdge, float deltaDistance)
|
boolean
|
onQuickMenuClicked(QuickMenuItem menuItem)
Called when a menu in quick menu has been clicked.
|
void
|
onReleaseEdgeEffects()
|
void
|
onRenderingFinished()
|
boolean
|
onScale(float x, float y)
|
boolean
|
onScaleBegin(float x, float y)
|
boolean
|
onScaleEnd(float x, float y)
|
void
|
onScrollChanged(int l, int t, int oldl, int oldt)
|
void
|
onSetDoc()
|
boolean
|
onShowPress(MotionEvent e)
|
boolean
|
onSingleTapConfirmed(MotionEvent e)
|
boolean
|
onSingleTapUp(MotionEvent e)
|
boolean
|
onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
|
void
|
selectAnnot(Annot annot, int pageNum)
Selects the specified annotation.
|
static
void
|
setAuthorForAnnot(ToolManager toolManager, Markup annot)
|
void
|
setCurrentDefaultToolModeHelper(ToolManager.ToolModeBase defaultToolMode)
Uses a helper to set current default tool mode.
|
static
void
|
setDebug(boolean debug)
|
void
|
setForceSameNextToolMode(boolean mode)
Specifies the mode that should forcefully remains.
|
void
|
setNextToolModeHelper(ToolManager.ToolMode nextToolMode)
Uses a helper to set the next tool mode.
|
void
|
setPageNumberIndicatorVisible(boolean visible)
Sets the visiblity of page number indicator.
|
void
|
setSnappingEnabled(boolean enabled)
|
void
|
setupAnnotProperty(int color, float opacity, float thickness, int fillColor, String icon, String pdfTronFontName, int textColor, float textSize)
Setup annotation properties.
|
void
|
setupAnnotProperty(AnnotStyle annotStyle)
Setup annotation properties.
|
void
|
setupAnnotProperty(int color, float opacity, float thickness, int fillColor, String icon, String pdfTronFontName)
Setup annotation properties.
|
void
|
setupAnnotStyles(ArrayList<AnnotStyle> annotStyles)
|
boolean
|
showMenu(RectF anchor_rect, QuickMenu quickMenu)
Shows the quick menu with given menu.
|
boolean
|
showMenu(RectF anchor_rect)
Shows the quick menu.
|
static
void
|
updateFont(PDFViewCtrl pdfViewCtrl, Widget widget, String contents)
Updates font of widget.
|
static
void
|
updateFontMap(Context context, int annotType, String pdfFontName, String fontName)
|
void
|
updateQuickMenuNoteText(String note)
Update quick menu note text based on if the note has contents
|
void
|
updateQuickMenuStyleColor(int color)
Update quick menu appearance item color
|
void
|
updateQuickMenuStyleOpacity(float opacity)
|