public static class

AnnotationDialogFragment.AnnotationInfo

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.controls.AnnotationDialogFragment.AnnotationInfo
Known Direct Subclasses

Class Overview

Annotation Info class. Internal use in AnnotationListUtil

Summary

Public Constructors
AnnotationInfo(int type, int pageNum, String content, String author, String date, Annot annotation, double yPos)
Class constructor specifying the type, page and content of the annotation.
Public Methods
boolean equals(Object o)
Annot getAnnotation()
String getAuthor()
String getContent()
String getDate()
Get date in string format
int getPageNum()
int getType()
Returns the type of this annotation.
double getY2()
Get the Y-position of of the top edge of the Rect containing this annotation.
int hashCode()
void setAuthor(String author)
Sets the author.
void setContent(String mContent)
Sets the content.
void setPageNum(int mPageNum)
Sets he page number where the annotation is on.
void setType(int mType)
Sets the type of the annotation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AnnotationInfo (int type, int pageNum, String content, String author, String date, Annot annotation, double yPos)

Class constructor specifying the type, page and content of the annotation.

Parameters
type the type of the annotation
pageNum the page where this annotation lies in
content the content of the annotation
author the author of this annotation
date the date
annotation the annotation
yPos y-position of of the top edge of the Rect containing this annotation.
See Also
  • {@link Annot}

Public Methods

public boolean equals (Object o)

public Annot getAnnotation ()

Returns
  • The annotation

public String getAuthor ()

Returns
  • The author

public String getContent ()

Returns
  • The content

public String getDate ()

Get date in string format

Returns
  • Date of the annotation

public int getPageNum ()

Returns
  • The page number where the annotation is on

public int getType ()

Returns the type of this annotation.

Returns
  • The type of the annotation
See Also

public double getY2 ()

Get the Y-position of of the top edge of the Rect containing this annotation. Obtained from normalized Rect's Y2 field.

Returns
  • y-position of the top edge of the Rect containing this annotation.

public int hashCode ()

public void setAuthor (String author)

Sets the author.

Parameters
author The author

public void setContent (String mContent)

Sets the content.

Parameters
mContent The content

public void setPageNum (int mPageNum)

Sets he page number where the annotation is on.

Parameters
mPageNum The page number

public void setType (int mType)

Sets the type of the annotation.

Parameters
mType The type of the annotation
See Also