public abstract class FDFAnnotation extends Object implements COSObjectable
Modifier and Type | Field and Description |
---|---|
protected COSDictionary |
annot
Annotation dictionary.
|
Constructor and Description |
---|
FDFAnnotation()
Default constructor.
|
FDFAnnotation(COSDictionary a)
Constructor.
|
FDFAnnotation(Element element)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static FDFAnnotation |
create(COSDictionary fdfDic)
Create the correct FDFAnnotation.
|
PDBorderEffectDictionary |
getBorderEffect()
This will retrieve the border style dictionary, describing the effect applied to the border described by the BS
entry.
|
PDBorderStyleDictionary |
getBorderStyle()
This will retrieve the border style dictionary, specifying the width and dash pattern used in drawing the
annotation.
|
Color |
getColor()
Get the annotation color.
|
String |
getContents()
Get the text, or a description, of the annotation.
|
COSDictionary |
getCOSObject()
Convert this standard java object to a COS object.
|
Calendar |
getCreationDate()
The annotation create date.
|
String |
getDate()
Modification date.
|
String |
getIntent()
Get the intent of the annotation.
|
String |
getName()
Get the annotation name.
|
float |
getOpacity()
Get the opacity value.
|
Integer |
getPage()
This will get the page number or null if it does not exist.
|
PDRectangle |
getRectangle()
The rectangle associated with this annotation.
|
String |
getRichContents()
This will retrieve the rich text stream which is displayed in the popup window.
|
protected String |
getStringOrStream(COSBase base)
Get a text or text stream.
|
String |
getSubject()
Get the description of the annotation.
|
String |
getTitle()
Get the annotation title.
|
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 |
setBorderEffect(PDBorderEffectDictionary be)
This will set the border effect dictionary, describing the effect applied to the border described by the BS
entry.
|
void |
setBorderStyle(PDBorderStyleDictionary bs)
This will set the border style dictionary, specifying the width and dash pattern used in drawing the annotation.
|
void |
setColor(Color c)
Set the annotation color.
|
void |
setContents(String contents)
Set the contents, or a description, for an annotation.
|
void |
setCreationDate(Calendar date)
Set the creation date.
|
void |
setDate(String date)
The annotation modification date.
|
void |
setHidden(boolean hidden)
Set the hidden flag.
|
void |
setIntent(String intent)
The intent of the annotation.
|
void |
setInvisible(boolean invisible)
Set the invisible flag.
|
void |
setLocked(boolean locked)
Set the locked flag.
|
void |
setName(String name)
Set a unique name for an annotation.
|
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 |
setOpacity(float opacity)
Set the annotation opacity.
|
void |
setPage(int page)
This will set the page.
|
void |
setPrinted(boolean printed)
Set the printed flag.
|
void |
setReadOnly(boolean readOnly)
Set the readOnly flag.
|
void |
setRectangle(PDRectangle rectangle)
Set the rectangle associated with this annotation.
|
void |
setRichContents(String rc)
This will set the rich text stream which is displayed in the popup window.
|
void |
setSubject(String subject)
A short description of the annotation.
|
void |
setTitle(String title)
Set a unique title for an annotation.
|
void |
setToggleNoView(boolean toggleNoView)
Set the toggleNoView flag.
|
protected COSDictionary annot
public FDFAnnotation()
public FDFAnnotation(COSDictionary a)
a
- The FDF annotation.public FDFAnnotation(Element element) throws IOException
element
- An XFDF element.IOException
- If there is an error extracting data from the element.public static FDFAnnotation create(COSDictionary fdfDic) throws IOException
fdfDic
- The FDF dictionary.IOException
- If there is an error accessing the FDF information.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public Integer getPage()
public final void setPage(int page)
page
- The page number.public Color getColor()
public final void setColor(Color c)
c
- The annotation color.public String getDate()
public final void setDate(String date)
date
- The date to store in the FDF annotation.public boolean isInvisible()
public final void setInvisible(boolean invisible)
invisible
- The new invisible flag.public boolean isHidden()
public final void setHidden(boolean hidden)
hidden
- The new hidden flag.public boolean isPrinted()
public final void setPrinted(boolean printed)
printed
- The new printed flag.public boolean isNoZoom()
public final void setNoZoom(boolean noZoom)
noZoom
- The new noZoom flag.public boolean isNoRotate()
public final void setNoRotate(boolean noRotate)
noRotate
- The new noRotate flag.public boolean isNoView()
public final void setNoView(boolean noView)
noView
- The new noView flag.public boolean isReadOnly()
public final void setReadOnly(boolean readOnly)
readOnly
- The new readOnly flag.public boolean isLocked()
public final void setLocked(boolean locked)
locked
- The new locked flag.public boolean isToggleNoView()
public final void setToggleNoView(boolean toggleNoView)
toggleNoView
- The new toggleNoView flag.public final void setName(String name)
name
- The unique annotation name.public String getName()
public final void setRectangle(PDRectangle rectangle)
rectangle
- The annotation rectangle.public PDRectangle getRectangle()
public final void setContents(String contents)
contents
- The annotation contents, or a description.public String getContents()
public final void setTitle(String title)
title
- The annotation title.public String getTitle()
public Calendar getCreationDate() throws IOException
IOException
- If there is an error converting the string to a Calendar object.public final void setCreationDate(Calendar date)
date
- The date the annotation was created.public final void setOpacity(float opacity)
opacity
- The new opacity value.public float getOpacity()
public final void setSubject(String subject)
subject
- The annotation subject.public String getSubject()
public final void setIntent(String intent)
intent
- The annotation's intent.public String getIntent()
public String getRichContents()
public final void setRichContents(String rc)
rc
- the rich text stream.public final void setBorderStyle(PDBorderStyleDictionary bs)
bs
- the border style dictionary to set.public PDBorderStyleDictionary getBorderStyle()
public final void setBorderEffect(PDBorderEffectDictionary be)
be
- the border effect dictionary to set.public PDBorderEffectDictionary getBorderEffect()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.