public static interface

AnnotStyle.OnAnnotStyleChangeListener

com.pdftron.pdf.model.AnnotStyle.OnAnnotStyleChangeListener
Known Indirect Subclasses

Class Overview

This interface is used for changing annotation appearance

Summary

Public Methods
abstract void onChangeAnnotBorderStyle(ShapeBorderStyle borderStyle)
This method is invoked when the border style of an annotation is changed
abstract void onChangeAnnotFillColor(int color)
The method is invoked when fill color is selected
abstract void onChangeAnnotFont(FontResource font)
The method is invoked when font resource is selected in font spinner
abstract void onChangeAnnotIcon(String icon)
The method is invoked when icon is selected in icon picker
abstract void onChangeAnnotLineEndStyle(LineEndingStyle lineEndStyle)
This method is invoked when the line end style of an annotation is changed
abstract void onChangeAnnotLineStartStyle(LineEndingStyle lineStartStyle)
This method is invoked when the line start style of an annotation is changed
abstract void onChangeAnnotLineStyle(LineStyle lineStyle)
This method is invoked when the line style of an annotation is changed
abstract void onChangeAnnotOpacity(float opacity, boolean done)
The method is invoked when opacity is changed in style picker
abstract 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 annotation, it will change text color
abstract void onChangeAnnotTextColor(int textColor)
The method is invoked when text color is changed in style picker
abstract void onChangeAnnotTextSize(float textSize, boolean done)
The method is invoked when text size is changed in style picker
abstract void onChangeAnnotThickness(float thickness, boolean done)
The method is invoked when thickness is changed in style picker
abstract void onChangeDateFormat(String dateFormat)
This method is invoked when date format change
abstract void onChangeOverlayText(String overlayText)
The method is invoked when overlay text change
abstract void onChangeRichContentEnabled(boolean enabled)
The method is invoked when rich content enabled change
abstract void onChangeRulerProperty(RulerItem rulerItem)
The method is invoked when any of the ruler properties change
abstract void onChangeSnapping(boolean snap)
The method is invoked when snap switch change
abstract void onChangeTextAlignment(int horizontalAlignment, int verticalAlignment)
This method is invoked when the text alignment is changed

Public Methods

public abstract void onChangeAnnotBorderStyle (ShapeBorderStyle borderStyle)

This method is invoked when the border style of an annotation is changed

Parameters
borderStyle the border style

public abstract void onChangeAnnotFillColor (int color)

The method is invoked when fill color is selected

Parameters
color fill color of annotation

public abstract void onChangeAnnotFont (FontResource font)

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

Parameters
font font resource

public abstract void onChangeAnnotIcon (String icon)

The method is invoked when icon is selected in icon picker

Parameters
icon icon name of sticky note

public abstract void onChangeAnnotLineEndStyle (LineEndingStyle lineEndStyle)

This method is invoked when the line end style of an annotation is changed

Parameters
lineEndStyle the line end style

public abstract void onChangeAnnotLineStartStyle (LineEndingStyle lineStartStyle)

This method is invoked when the line start style of an annotation is changed

Parameters
lineStartStyle the line start style

public abstract void onChangeAnnotLineStyle (LineStyle lineStyle)

This method is invoked when the line style of an annotation is changed

Parameters
lineStyle the line style

public abstract void onChangeAnnotOpacity (float opacity, boolean done)

The method is invoked when opacity is changed in style picker

Parameters
opacity opacity of annotation

public abstract 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 annotation, it will change text color

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

public abstract void onChangeAnnotTextColor (int textColor)

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

Parameters
textColor text color of annotation style.

public abstract 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 abstract void onChangeAnnotThickness (float thickness, boolean done)

The method is invoked when thickness is changed in style picker

Parameters
thickness thickness of annotation style.

public abstract void onChangeDateFormat (String dateFormat)

This method is invoked when date format change

Parameters
dateFormat the date format

public abstract void onChangeOverlayText (String overlayText)

The method is invoked when overlay text change

Parameters
overlayText the overlay text

public abstract void onChangeRichContentEnabled (boolean enabled)

The method is invoked when rich content enabled change

Parameters
enabled whether to enable rich content

public abstract void onChangeRulerProperty (RulerItem rulerItem)

The method is invoked when any of the ruler properties change

Parameters
rulerItem the ruler item

public abstract void onChangeSnapping (boolean snap)

The method is invoked when snap switch change

Parameters
snap whether to snap

public abstract void onChangeTextAlignment (int horizontalAlignment, int verticalAlignment)

This method is invoked when the text alignment is changed

Parameters
horizontalAlignment the horizontal text alignment
verticalAlignment the vertical text alignment