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.
|
Color |
getColor()
Get the annotation color.
|
COSDictionary |
getCOSDictionary()
Convert this standard java object to a COS object.
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
Calendar |
getCreationDate()
The annotation create date.
|
String |
getDate()
Modification date.
|
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 |
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 |
setColor(Color c)
Set the annotation color.
|
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 |
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 |
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 COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public COSDictionary getCOSDictionary()
public Integer getPage()
public void setPage(int page)
page
- The page number.public Color getColor()
public void setColor(Color c)
c
- The annotation color.public String getDate()
public void setDate(String date)
date
- The date to store in the FDF 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 void setName(String name)
name
- The unique annotation name.public String getName()
public void setRectangle(PDRectangle rectangle)
rectangle
- The annotation rectangle.public PDRectangle getRectangle()
public 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 void setCreationDate(Calendar date)
date
- The date the annotation was created.public void setOpacity(float opacity)
opacity
- The new opacity value.public float getOpacity()
public void setSubject(String subject)
subject
- The annotation subject.public String getSubject()
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.