|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.objects.PdfObjectWrapper<PdfDictionary> org.pdfclown.documents.interaction.annotations.Annotation
@PDF(value=PDF10) 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(Page page,
PdfName subtype,
Rectangle2D box,
String text)
|
protected |
Annotation(PdfDirectObject baseObject)
|
Method Summary | |
---|---|
Annotation |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
boolean |
delete()
Deletes this annotation removing also its reference on the page. |
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 location of the annotation on the page in default user space units. |
DeviceColor |
getColor()
Gets the annotation color. |
EnumSet<Annotation.FlagsEnum> |
getFlags()
Gets the annotation flags. |
LayerEntity |
getLayer()
Gets the layer entity associated to this object. |
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 |
setColor(DeviceColor value)
|
void |
setFlags(EnumSet<Annotation.FlagsEnum> value)
|
void |
setLayer(LayerEntity value)
|
void |
setModificationDate(Date value)
|
void |
setName(String value)
|
void |
setPrintable(boolean value)
|
void |
setText(String value)
|
void |
setVisible(boolean value)
|
static Annotation |
wrap(PdfDirectObject baseObject)
Wraps an annotation base object into an annotation object. |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Annotation(Page page, PdfName subtype, Rectangle2D box, String text)
protected Annotation(PdfDirectObject baseObject)
Method Detail |
---|
public static final Annotation wrap(PdfDirectObject baseObject)
baseObject
- Annotation base object.
public Annotation clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfDictionary>
context
- Which document the clone has to be registered in.public boolean delete()
delete
in class PdfObjectWrapper<PdfDictionary>
@PDF(value=PDF11) public Action getAction()
@PDF(value=PDF12) public AnnotationActions getActions()
@PDF(value=PDF12) public Appearance getAppearance()
@PDF(value=PDF11) public Border getBorder()
public Rectangle2D getBox()
@PDF(value=PDF11) public DeviceColor getColor()
@PDF(value=PDF11) public EnumSet<Annotation.FlagsEnum> getFlags()
@PDF(value=PDF11) public Date getModificationDate()
@PDF(value=PDF14) public String getName()
The annotation name uniquely identifies the annotation among all the annotations on its page.
@PDF(value=PDF13) 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.
@PDF(value=PDF11) public boolean isPrintable()
@PDF(value=PDF11) 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 setColor(DeviceColor value)
getColor()
public void setFlags(EnumSet<Annotation.FlagsEnum> value)
getFlags()
public void setModificationDate(Date value)
getModificationDate()
public void setName(String value)
getName()
public void setPrintable(boolean value)
isPrintable()
public void setText(String value)
getText()
public void setVisible(boolean value)
isVisible()
@PDF(value=PDF15) public LayerEntity getLayer()
ILayerable
getLayer
in interface ILayerable
public void setLayer(LayerEntity value)
setLayer
in interface ILayerable
ILayerable.getLayer()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |