|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary> it.stefanochizzolini.clown.documents.interaction.annotations.Annotation
public class Annotation
Annotation [PDF:1.6:8.4].
Nested Class Summary | |
---|---|
static class |
Annotation.FlagsEnum
Field flags [PDF:1.6:8.4.2]. |
Constructor Summary | |
---|---|
protected |
Annotation(Document context,
PdfName subtype,
Rectangle2D box,
Page page)
|
protected |
Annotation(PdfDirectObject baseObject,
PdfIndirectObject container)
|
Method Summary | |
---|---|
Annotation |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
Action |
getAction()
Gets the action to be performed when the annotation is activated. |
AnnotationActions |
getActions()
Gets the annotation's behavior in response to various trigger events. |
Appearance |
getAppearance()
Gets the appearance specifying how the annotation is presented visually on the page. |
Border |
getBorder()
Gets the border style. |
Rectangle2D |
getBox()
Gets the annotation rectangle. |
EnumSet<Annotation.FlagsEnum> |
getFlags()
Gets the annotation flags. |
Date |
getModificationDate()
Gets the date and time when the annotation was most recently modified. |
String |
getName()
Gets the annotation name. |
Page |
getPage()
Gets the associated page. |
String |
getText()
Gets the annotation text. |
boolean |
isPrintable()
Gets whether to print the annotation when the page is printed. |
boolean |
isVisible()
Gets whether the annotation is visible. |
void |
setAction(Action value)
|
void |
setActions(AnnotationActions value)
|
void |
setAppearance(Appearance value)
|
void |
setBorder(Border value)
|
void |
setBox(Rectangle2D value)
|
void |
setFlags(EnumSet<Annotation.FlagsEnum> value)
|
void |
setModificationDate(Date value)
|
void |
setName(String value)
|
void |
setPage(Page value)
|
void |
setPrintable(boolean value)
|
void |
setText(String value)
|
void |
setVisible(boolean value)
|
static Annotation |
wrap(PdfDirectObject baseObject,
PdfIndirectObject container)
Wraps an annotation base object into an annotation object. |
static Annotation |
wrap(PdfReference reference)
Wraps an annotation reference into an annotation object. |
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper |
---|
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Annotation(Document context, PdfName subtype, Rectangle2D box, Page page)
protected Annotation(PdfDirectObject baseObject, PdfIndirectObject container)
Method Detail |
---|
public static final Annotation wrap(PdfReference reference)
reference
- Reference to an annotation object.
public static final Annotation wrap(PdfDirectObject baseObject, PdfIndirectObject container)
baseObject
- Annotation base object.container
- Annotation base object container.
public Annotation clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfDictionary>
context
- Which document the clone has to be registered in.public Action getAction()
public AnnotationActions getActions()
public Appearance getAppearance()
public Border getBorder()
public Rectangle2D getBox()
public EnumSet<Annotation.FlagsEnum> getFlags()
public Date getModificationDate()
public String getName()
The annotation name uniquely identifies the annotation among all the annotations on its page.
public Page getPage()
public String getText()
Depending on the annotation type, the text may be either directly displayed or (in case of non-textual annotations) used as alternate description.
public boolean isPrintable()
public boolean isVisible()
public void setAction(Action value)
getAction()
public void setActions(AnnotationActions value)
getActions()
public void setAppearance(Appearance value)
getAppearance()
public void setBorder(Border value)
getBorder()
public void setBox(Rectangle2D value)
getBox()
public void setFlags(EnumSet<Annotation.FlagsEnum> value)
getFlags()
public void setModificationDate(Date value)
getModificationDate()
public void setName(String value)
getName()
public void setPage(Page value)
getPage()
public void setPrintable(boolean value)
isPrintable()
public void setText(String value)
getText()
public void setVisible(boolean value)
isVisible()
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |