public class

RotateDialogFragment

extends DialogFragment
implements PDFViewCtrl.ThumbAsyncListener
java.lang.Object
   ↳ DialogFragment
     ↳ com.pdftron.pdf.dialog.RotateDialogFragment

Class Overview

A rotate dialog fragment allows users to rotate pages of the document by 90, 180 and 270 degree with ease while they see the thumbnail of the current page as they rotate pages.

Summary

Nested Classes
interface RotateDialogFragment.OnRotationListener  
Constants
String FRAGMENT_TAG
Public Constructors
RotateDialogFragment()
Public Methods
static RotateDialogFragment newInstance()
Use this factory method to create a new instance of this fragment.
Dialog onCreateDialog(Bundle savedInstanceState)
The overloaded implementation of DialogFragment#onCreateDialog(Bundle).
void onDestroy()
The overloaded implementation of DialogFragment#onDestroy().
void onThumbReceived(int page, int[] buf, int width, int height)
The overloaded implementation of onThumbReceived(int, int[], int, int).
void setOnRotationListener(RotateDialogFragment.OnRotationListener listener)
RotateDialogFragment setPdfViewCtrl(PDFViewCtrl pdfViewCtrl)
Sets the PDFViewCtrl
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.PDFViewCtrl.ThumbAsyncListener

Constants

public static final String FRAGMENT_TAG

Constant Value: "rotate_dialog"

Public Constructors

public RotateDialogFragment ()

Public Methods

public static RotateDialogFragment newInstance ()

Use this factory method to create a new instance of this fragment.

Returns
  • A new instance of fragment RotateDialogFragment.

public Dialog onCreateDialog (Bundle savedInstanceState)

The overloaded implementation of DialogFragment#onCreateDialog(Bundle).

public void onDestroy ()

The overloaded implementation of DialogFragment#onDestroy().

public void onThumbReceived (int page, int[] buf, int width, int height)

The overloaded implementation of onThumbReceived(int, int[], int, int).

Parameters
page the page number which this thumbnail refers to
buf the image data buffer
width the width of the bitmap
height the height of the bitmap

public void setOnRotationListener (RotateDialogFragment.OnRotationListener listener)

public RotateDialogFragment setPdfViewCtrl (PDFViewCtrl pdfViewCtrl)

Sets the PDFViewCtrl

Parameters
pdfViewCtrl The PDFViewCtrl
Returns
  • This class