|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.interactive.annotation.PDAnnotation
This class represents a PDF annotation.
Field Summary | |
static int |
FLAG_HIDDEN
An annotation flag. |
static int |
FLAG_INVISIBLE
An annotation flag. |
static int |
FLAG_LOCKED
An annotation flag. |
static int |
FLAG_NO_ROTATE
An annotation flag. |
static int |
FLAG_NO_VIEW
An annotation flag. |
static int |
FLAG_NO_ZOOM
An annotation flag. |
static int |
FLAG_PRINTED
An annotation flag. |
static int |
FLAG_READ_ONLY
An annotation flag. |
static int |
FLAG_TOGGLE_NO_VIEW
An annotation flag. |
Constructor Summary | |
PDAnnotation()
Constructor. |
|
PDAnnotation(COSDictionary dict)
Constructor. |
Method Summary | |
PDAdditionalActions |
getActions()
Get the additional actions for this field. |
int |
getAnnotationFlags()
This will get the flags for this field. |
PDAppearanceDictionary |
getAppearance()
This will get the appearance dictionary associated with this annotation. |
String |
getAppearanceStream()
This will get the name of the current appearance stream if any. |
COSBase |
getCOSObject()
Interface method for COSObjectable. |
COSDictionary |
getDictionary()
returns the dictionary. |
PDRectangle |
getRectangle()
The annotation rectangle, defining the location of the annotation on the page in default user space units. |
boolean |
isHidden()
Get the hidden flag. |
boolean |
isInvisible()
Get the invisible flag. |
boolean |
isLocked()
Get the locked flag. |
boolean |
isNoRotate()
Get the noRotate flag. |
boolean |
isNoView()
Get the noView flag. |
boolean |
isNoZoom()
Get the noZoom flag. |
boolean |
isPrinted()
Get the printed flag. |
boolean |
isReadOnly()
Get the readOnly flag. |
boolean |
isToggleNoView()
Get the toggleNoView flag. |
void |
setActions(PDAdditionalActions actions)
Set the actions of the field. |
void |
setAnnotationFlags(int flags)
This will set the flags for this field. |
void |
setAppearance(PDAppearanceDictionary appearance)
This will set the appearance associated with this annotation. |
void |
setAppearanceStream(String as)
This will set the annotations appearance stream name. |
void |
setHidden(boolean hidden)
Set the hidden flag. |
void |
setInvisible(boolean invisible)
Set the invisible flag. |
void |
setLocked(boolean locked)
Set the locked flag. |
void |
setNoRotate(boolean noRotate)
Set the noRotate flag. |
void |
setNoView(boolean noView)
Set the noView flag. |
void |
setNoZoom(boolean noZoom)
Set the noZoom flag. |
void |
setPrinted(boolean printed)
Set the printed flag. |
void |
setReadOnly(boolean readOnly)
Set the readOnly flag. |
void |
setRectangle(PDRectangle rectangle)
This will set the rectangle for this annotation. |
void |
setToggleNoView(boolean toggleNoView)
Set the toggleNoView flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FLAG_INVISIBLE
public static final int FLAG_HIDDEN
public static final int FLAG_PRINTED
public static final int FLAG_NO_ZOOM
public static final int FLAG_NO_ROTATE
public static final int FLAG_NO_VIEW
public static final int FLAG_READ_ONLY
public static final int FLAG_LOCKED
public static final int FLAG_TOGGLE_NO_VIEW
Constructor Detail |
public PDAnnotation()
public PDAnnotation(COSDictionary dict)
dict
- The annotations dictionary.Method Detail |
public COSDictionary getDictionary()
public PDRectangle getRectangle()
public void setRectangle(PDRectangle rectangle)
rectangle
- The new rectangle values.public int getAnnotationFlags()
public void setAnnotationFlags(int flags)
flags
- The new flags.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public String getAppearanceStream()
public void setAppearanceStream(String as)
as
- The name of the appearance stream.public PDAppearanceDictionary getAppearance()
public void setAppearance(PDAppearanceDictionary appearance)
appearance
- The appearance dictionary for this annotation.public boolean isInvisible()
public void setInvisible(boolean invisible)
invisible
- The new invisible flag.public boolean isHidden()
public void setHidden(boolean hidden)
hidden
- The new hidden flag.public boolean isPrinted()
public void setPrinted(boolean printed)
printed
- The new printed flag.public boolean isNoZoom()
public void setNoZoom(boolean noZoom)
noZoom
- The new noZoom flag.public boolean isNoRotate()
public void setNoRotate(boolean noRotate)
noRotate
- The new noRotate flag.public boolean isNoView()
public void setNoView(boolean noView)
noView
- The new noView flag.public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- The new readOnly flag.public boolean isLocked()
public void setLocked(boolean locked)
locked
- The new locked flag.public boolean isToggleNoView()
public void setToggleNoView(boolean toggleNoView)
toggleNoView
- The new toggleNoView flag.public PDAdditionalActions getActions()
public void setActions(PDAdditionalActions actions)
actions
- The field actions.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |