java.lang.Object
   ↳ com.pdftron.pdf.tools.Tool
     ↳ com.pdftron.pdf.tools.BaseTool
       ↳ com.pdftron.pdf.tools.SimpleShapeCreate
         ↳ com.pdftron.pdf.tools.StickyNoteCreate

Class Overview

This class is for creating a sticky note annotation.

Summary

[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
StickyNoteCreate(PDFViewCtrl ctrl)
Class constructor
Public Methods
int getCreateAnnotType()
Gets what annotation type this tool can create
ToolManager.ToolModeBase getToolMode()
The overload implementation of getToolMode().
void onAnnotButtonPressed(int button)
The overload implementation of onAnnotButtonPressed(int).
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 onChangeAnnotOpacity(float opacity, boolean done)
The method is invoked when opacity is changed in style picker
void onChangeAnnotStrokeColor(int color)
The method is invoked when color is selected If it is Text annotation, it will change sticky note icon color If it is FreeText annoation, it will change text 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 onChangeOverlayText(String overlayText)
The method is invoked when overlay text 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 onClose()
The overload implementation of onClose().
void onConfigurationChanged(Configuration newConfig)
The overload implementation of onConfigurationChanged(Configuration).
boolean onDown(MotionEvent e)
The overload implementation of onDown(MotionEvent).
boolean onFlingStop()
The overload implementation of onFlingStop().
boolean onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
The overload implementation of onMove(MotionEvent, MotionEvent, float, float).
boolean onQuickMenuClicked(QuickMenuItem menuItem)
Called when a menu in quick menu has been clicked.
boolean onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode).
void setTargetPoint(PointF point)
Sets the target point.
void setupAnnotProperty(int color, float opacity, float thickness, int fillColor, String icon, String pdfTronFontName)
[Expand]
Inherited Methods
From class com.pdftron.pdf.tools.SimpleShapeCreate
From class com.pdftron.pdf.tools.BaseTool
From class com.pdftron.pdf.tools.Tool
From class java.lang.Object
From interface com.pdftron.pdf.model.AnnotStyle.OnAnnotStyleChangeListener
From interface com.pdftron.pdf.tools.DialogAnnotNote.DialogAnnotNoteListener
From interface com.pdftron.pdf.tools.ToolManager.Tool

Public Constructors

public StickyNoteCreate (PDFViewCtrl ctrl)

Class constructor

Public Methods

public int getCreateAnnotType ()

Gets what annotation type this tool can create

Returns
  • annot type for annotation creation tool, or unknown for non-creation tool.

public ToolManager.ToolModeBase getToolMode ()

The overload implementation of getToolMode().

Returns
  • the mode/identifier of this tool.

public void onAnnotButtonPressed (int button)

The overload implementation of onAnnotButtonPressed(int).

Parameters
button The button ID. See android.content.DialogInterface

public void onChangeAnnotFillColor (int color)

The method is invoked when fill color is selected

Parameters
color fill color of annotation

public void onChangeAnnotFont (FontResource font)

The method is invoked when font resource is selected in font spinner

Parameters
font font resource

public void onChangeAnnotIcon (String icon)

The method is invoked when icon is selected in icon picker

Parameters
icon icon name of sticky note

public void onChangeAnnotOpacity (float opacity, boolean done)

The method is invoked when opacity is changed in style picker

Parameters
opacity opacity of annotation

public void onChangeAnnotStrokeColor (int color)

The method is invoked when color is selected If it is Text annotation, it will change sticky note icon color If it is FreeText annoation, it will change text color

Parameters
color stroke color/ icon color/ text color of annotation

public void onChangeAnnotTextColor (int textColor)

The method is invoked when text color is changed in style picker

Parameters
textColor text color of annotation style.

public void onChangeAnnotTextSize (float textSize, boolean done)

The method is invoked when text size is changed in style picker

Parameters
textSize text size of annotation style.

public void onChangeAnnotThickness (float thickness, boolean done)

The method is invoked when thickness is changed in style picker

Parameters
thickness thickness of annotation style.

public void onChangeOverlayText (String overlayText)

The method is invoked when overlay text change

Parameters
overlayText the overlay text

public void onChangeRulerProperty (RulerItem rulerItem)

The method is invoked when any of the ruler properties change

Parameters
rulerItem the ruler item

public void onChangeSnapping (boolean snap)

The method is invoked when snap switch change

Parameters
snap whether to snap

public void onClose ()

The overload implementation of onClose().

public void onConfigurationChanged (Configuration newConfig)

The overload implementation of onConfigurationChanged(Configuration).

public boolean onDown (MotionEvent e)

The overload implementation of onDown(MotionEvent).

public boolean onFlingStop ()

The overload implementation of onFlingStop().

public boolean onMove (MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)

The overload implementation of onMove(MotionEvent, MotionEvent, float, float).

public boolean onQuickMenuClicked (QuickMenuItem menuItem)

Called when a menu in quick menu has been clicked.

Parameters
menuItem The clicked menu item.
Returns
  • True if handled

public boolean onUp (MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)

The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode).

public void setTargetPoint (PointF point)

Sets the target point.

Parameters
point The target point

public void setupAnnotProperty (int color, float opacity, float thickness, int fillColor, String icon, String pdfTronFontName)

Parameters
color The color
opacity The opacity
thickness The thickness
fillColor The color for filling
icon The icon
pdfTronFontName The PDFTron font name