public class

AnnotIndicatorManger

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.controls.AnnotIndicatorManger

Class Overview

This class manages annotation indicators

Summary

Constants
int STATE_IS_FLUNG Page has been flung.
int STATE_IS_NORMAL Page is in a normal state that is "good" for drawing annotation indicators.
int STATE_IS_ZOOMING Page is being zoomed.
Public Constructors
AnnotIndicatorManger(ToolManager toolManager)
Public Methods
void cleanup()
Cleans up resources.
void drawAnnotIndicators(Canvas canvas)
Draws annotation indicators onto the specified canvas.
void reset(boolean all)
Resets annotation indicators
void setCustomIndicatorBitmap(int drawableId)
Sets the custom indicator icon.
void setCustomIndicatorBitmap(Bitmap icon)
Sets the custom indicator icon.
void setIndicatorIconSize(int size)
Sets the size of indicator icons.
void updateState(int state)
Updates state.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int STATE_IS_FLUNG

Page has been flung. Only used in continuous modes.

Constant Value: 2 (0x00000002)

public static final int STATE_IS_NORMAL

Page is in a normal state that is "good" for drawing annotation indicators.

Constant Value: 0 (0x00000000)

public static final int STATE_IS_ZOOMING

Page is being zoomed.

Constant Value: 1 (0x00000001)

Public Constructors

public AnnotIndicatorManger (ToolManager toolManager)

Public Methods

public void cleanup ()

Cleans up resources.

public void drawAnnotIndicators (Canvas canvas)

Draws annotation indicators onto the specified canvas.

Parameters
canvas The canvas

public void reset (boolean all)

Resets annotation indicators

Parameters
all True if all annotation indicators should be reset, False if only visible annotation indicators should be reset

public void setCustomIndicatorBitmap (int drawableId)

Sets the custom indicator icon. Pass null if you want the default indicator icon.

Parameters
drawableId The drawable ID of the custom indicator icon

public void setCustomIndicatorBitmap (Bitmap icon)

Sets the custom indicator icon. Pass null if you want the default indicator icon.

Parameters
icon The custom indicator icon

public void setIndicatorIconSize (int size)

Sets the size of indicator icons.

Parameters
size The size of indicator icons

public void updateState (int state)

Updates state.

Parameters
state The state that can be one of STATE_IS_NORMAL, STATE_IS_ZOOMING, STATE_IS_FLUNG