java.lang.Object | |||
↳ | com.pdftron.pdf.tools.Tool | ||
↳ | com.pdftron.pdf.tools.BaseTool | ||
↳ | com.pdftron.pdf.tools.AnnotEdit |
Known Direct Subclasses |
This class is responsible for editing a selected annotation, e.g., moving and resizing.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | RECTANGULAR_CTRL_PTS_CNT | ||||||||||
int | e_ll | lower left control point | |||||||||
int | e_lm | lower middle control point | |||||||||
int | e_lr | lower right control point | |||||||||
int | e_ml | middle left control point | |||||||||
int | e_moving | moving control | |||||||||
int | e_mr | middle right control point | |||||||||
int | e_ul | upper left control point | |||||||||
int | e_um | upper middle control point | |||||||||
int | e_unknown | unknown control point | |||||||||
int | e_ur | upper right control point |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.tools.BaseTool
| |||||||||||
From class
com.pdftron.pdf.tools.Tool
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.tools.Tool
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnnotEdit(PDFViewCtrl ctrl)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | afterTextChanged(Editable s) | ||||||||||
void | beforeTextChanged(CharSequence s, int start, int count, int after) | ||||||||||
void | enterDate() | ||||||||||
void | enterText() | ||||||||||
int |
getCreateAnnotType()
Gets what annotation type this tool can create
| ||||||||||
int |
getEffectCtrlPointId(float x, float y)
Returns which effective control point is closest to the specified coordinate.
| ||||||||||
EditText |
getFreeTextEditText()
Returns the edit text used for editing Free Text annotations, and returns null when not editing a
Free Text annotation.
| ||||||||||
RectF |
getInlineEditTextPosition()
The overload implementation of
getInlineEditTextPosition() . | ||||||||||
ToolManager.ToolModeBase |
getToolMode()
The overload implementation of
getToolMode() . | ||||||||||
boolean | hasAnnotSelected() | ||||||||||
boolean |
isCreatingAnnotation()
The overload implementation of
isCreatingAnnotation() . | ||||||||||
boolean | isCtrlPtsHidden() | ||||||||||
boolean |
isEditAnnotTool()
The overload implementation of
isEditAnnotTool() | ||||||||||
boolean | isFreeTextEditing() | ||||||||||
void |
onAnnotButtonPressed(int button)
The overload implementation of
onAnnotButtonPressed(int) . | ||||||||||
void |
onChangeAnnotBorderStyle(ShapeBorderStyle borderStyle)
This method is invoked when the border style of an annotation is changed
| ||||||||||
void |
onChangeAnnotFillColor(int color)
The method is invoked when fill color is selected
| ||||||||||
void |
onChangeAnnotFont(FontResource font)
The method is invoked when font resource is selected in font spinner
| ||||||||||
void |
onChangeAnnotIcon(String icon)
The method is invoked when icon is selected in icon picker
| ||||||||||
void |
onChangeAnnotLineEndStyle(LineEndingStyle lineEndStyle)
This method is invoked when the line end style of an annotation is changed
| ||||||||||
void |
onChangeAnnotLineStartStyle(LineEndingStyle lineStartStyle)
This method is invoked when the line start style of an annotation is changed
| ||||||||||
void |
onChangeAnnotLineStyle(LineStyle lineStyle)
This method is invoked when the line style of an annotation is changed
| ||||||||||
void |
onChangeAnnotOpacity(float opacity, boolean done)
The method is invoked when opacity is changed in style picker
| ||||||||||
void | onChangeAnnotStrokeColor(int color) | ||||||||||
void |
onChangeAnnotTextColor(int textColor)
The method is invoked when text color is changed in style picker
| ||||||||||
void |
onChangeAnnotTextSize(float textSize, boolean done)
The method is invoked when text size is changed in style picker
| ||||||||||
void |
onChangeAnnotThickness(float thickness, boolean done)
The method is invoked when thickness is changed in style picker
| ||||||||||
void |
onChangeDateFormat(String dateFormat)
This method is invoked when date format change
| ||||||||||
void |
onChangeOverlayText(String overlayText)
The method is invoked when overlay text change
| ||||||||||
void |
onChangeRichContentEnabled(boolean enabled)
The method is invoked when rich content enabled change
| ||||||||||
void |
onChangeRulerProperty(RulerItem rulerItem)
The method is invoked when any of the ruler properties change
| ||||||||||
void |
onChangeSnapping(boolean snap)
The method is invoked when snap switch change
| ||||||||||
void |
onChangeTextAlignment(int horizontalAlignment, int verticalAlignment)
This method is invoked when the text alignment is changed
| ||||||||||
void |
onClose()
The overload implementation of
onClose() . | ||||||||||
void |
onConfigurationChanged(Configuration newConfig)
The overload implementation of
onConfigurationChanged(Configuration) . | ||||||||||
void |
onCreate()
The overload implementation of
onCreate() . | ||||||||||
boolean |
onDown(MotionEvent e)
The overload implementation of
onDown(MotionEvent) . | ||||||||||
void |
onDraw(Canvas canvas, Matrix tfm)
The overload implementation of
onDraw(Canvas, Matrix) . | ||||||||||
boolean |
onFlingStop()
The overload implementation of
onFlingStop() . | ||||||||||
boolean |
onKeyUp(int keyCode, KeyEvent event)
The overload implementation of
onKeyUp(int, KeyEvent) . | ||||||||||
void |
onLayout(boolean changed, int l, int t, int r, int b)
The overload implementation of
onLayout(boolean, int, int, int, int) . | ||||||||||
boolean |
onLongPress(MotionEvent e)
The overload implementation of
onLongPress(MotionEvent) . | ||||||||||
boolean |
onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
The overload implementation of
onMove(MotionEvent, MotionEvent, float, float) . | ||||||||||
void |
onPageTurning(int old_page, int cur_page)
The overload implementation of
onPageTurning(int, int) . | ||||||||||
boolean |
onQuickMenuClicked(QuickMenuItem menuItem)
The overload implementation of
onQuickMenuClicked(QuickMenuItem) . | ||||||||||
void |
onRenderingFinished()
The overload implementation of
onRenderingFinished() . | ||||||||||
boolean |
onScale(float x, float y)
The overload implementation of
onScale(float, float) . | ||||||||||
boolean |
onScaleBegin(float x, float y)
The overload implementation of
onScaleBegin(float, float) . | ||||||||||
boolean |
onScaleEnd(float x, float y)
The overload implementation of
onScaleEnd(float, float) . | ||||||||||
void |
onScrollChanged(int l, int t, int oldl, int oldt)
The overload implementation of
onScrollChanged(int, int, int, int) . | ||||||||||
boolean |
onSingleTapConfirmed(MotionEvent e)
The overload implementation of
onSingleTapConfirmed(MotionEvent) . | ||||||||||
void | onTextChanged(CharSequence s, int start, int before, int count) | ||||||||||
boolean |
onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
The overload implementation of
onUp(MotionEvent, PDFViewCtrl.PriorEventMode) . | ||||||||||
void |
selectAnnot(Annot annot, int pageNum)
The overload implementation of
selectAnnot(Annot, int) . | ||||||||||
static void | setDebug(boolean debug) | ||||||||||
void | setUpFromFreeTextCreate(boolean flag) | ||||||||||
void | setUpFromStickyCreate(boolean flag) | ||||||||||
void |
setupAnnotProperty(AnnotStyle annotStyle)
Setup annotation properties.
| ||||||||||
boolean |
showMenu(RectF anchor_rect, QuickMenu quickMenu)
The overload implementation of
showMenu(RectF, QuickMenu) . | ||||||||||
void |
toggleToFreeTextDialog(String interImText)
The overload implementation of
toggleToFreeTextDialog(String) . | ||||||||||
void | updateRotateView() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.tools.BaseTool
| |||||||||||
From class
com.pdftron.pdf.tools.Tool
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.text.TextWatcher
| |||||||||||
From interface
com.pdftron.pdf.model.AnnotStyle.OnAnnotStyleChangeListener
| |||||||||||
From interface
com.pdftron.pdf.tools.DialogAnnotNote.DialogAnnotNoteListener
| |||||||||||
From interface
com.pdftron.pdf.tools.ToolManager.Tool
| |||||||||||
From interface
com.pdftron.pdf.utils.InlineEditText.InlineEditTextListener
|
lower left control point
lower middle control point
lower right control point
middle left control point
moving control
middle right control point
upper left control point
upper middle control point
unknown control point
upper right control point
Gets what annotation type this tool can create
Returns the edit text used for editing Free Text annotations, and returns null when not editing a Free Text annotation.
The overload implementation of getInlineEditTextPosition()
.
The overload implementation of getToolMode()
.
AnnotEditRectGroup
multiple annots can be selected
while Tool#mAnnot is null
The overload implementation of onAnnotButtonPressed(int)
.
button | The button ID. See android.content.DialogInterface |
---|
This method is invoked when the border style of an annotation is changed
borderStyle | the border style |
---|
The method is invoked when fill color is selected
color | fill color of annotation |
---|
The method is invoked when font resource is selected in font spinner
font | font resource |
---|
The method is invoked when icon is selected in icon picker
icon | icon name of sticky note |
---|
This method is invoked when the line end style of an annotation is changed
lineEndStyle | the line end style |
---|
This method is invoked when the line start style of an annotation is changed
lineStartStyle | the line start style |
---|
This method is invoked when the line style of an annotation is changed
lineStyle | the line style |
---|
The method is invoked when opacity is changed in style picker
opacity | opacity of annotation |
---|
The method is invoked when text color is changed in style picker
textColor | text color of annotation style. |
---|
The method is invoked when text size is changed in style picker
textSize | text size of annotation style. |
---|
The method is invoked when thickness is changed in style picker
thickness | thickness of annotation style. |
---|
This method is invoked when date format change
dateFormat | the date format |
---|
The method is invoked when overlay text change
overlayText | the overlay text |
---|
The method is invoked when rich content enabled change
enabled | whether to enable rich content |
---|
The method is invoked when any of the ruler properties change
rulerItem | the ruler item |
---|
The method is invoked when snap switch change
snap | whether to snap |
---|
This method is invoked when the text alignment is changed
horizontalAlignment | the horizontal text alignment |
---|---|
verticalAlignment | the vertical text alignment |
The overload implementation of onConfigurationChanged(Configuration)
.
The overload implementation of onDraw(Canvas, Matrix)
.
The overload implementation of onKeyUp(int, KeyEvent)
.
The overload implementation of onLayout(boolean, int, int, int, int)
.
The overload implementation of onMove(MotionEvent, MotionEvent, float, float)
.
The overload implementation of onPageTurning(int, int)
.
The overload implementation of onQuickMenuClicked(QuickMenuItem)
.
menuItem | The clicked menu item. |
---|
The overload implementation of onScaleBegin(float, float)
.
The overload implementation of onScaleEnd(float, float)
.
The overload implementation of onScrollChanged(int, int, int, int)
.
The overload implementation of onSingleTapConfirmed(MotionEvent)
.
The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode)
.
The overload implementation of selectAnnot(Annot, int)
.
annot | The annotaion |
---|---|
pageNum | The page number where the annotaion is on |
The overload implementation of showMenu(RectF, QuickMenu)
.
The overload implementation of toggleToFreeTextDialog(String)
.
interImText | The interim text |
---|