public class PDFAnnotation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PDFAnnotation.Type |
Constructor and Description |
---|
PDFAnnotation() |
Modifier and Type | Method and Description |
---|---|
void |
addBoundingBox(BoundingBox box) |
boolean |
cover(LayoutToken token)
Return true if the annotation covers the given LayoutToken, based on their
respective coordinates.
|
java.util.List<BoundingBox> |
getBoundingBoxes() |
java.lang.String |
getDestination() |
int |
getEndToken() |
int |
getPageNumber() |
int |
getStartToken() |
PDFAnnotation.Type |
getType() |
boolean |
isNull() |
void |
setBoundingBoxes(java.util.List<BoundingBox> boxes) |
void |
setDestination(java.lang.String destination) |
void |
setEndToken(int end) |
void |
setPageNumber(int pageNumber) |
void |
setStartToken(int start) |
void |
setType(PDFAnnotation.Type t) |
java.lang.String |
toString() |
public void setType(PDFAnnotation.Type t)
public PDFAnnotation.Type getType()
public java.util.List<BoundingBox> getBoundingBoxes()
public void setBoundingBoxes(java.util.List<BoundingBox> boxes)
public void addBoundingBox(BoundingBox box)
public int getStartToken()
public int getEndToken()
public void setStartToken(int start)
public void setEndToken(int end)
public int getPageNumber()
public void setPageNumber(int pageNumber)
public boolean isNull()
public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean cover(LayoutToken token)