|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.pd.PDObject
de.intarsys.pdf.pd.PDAnnotation
public abstract class PDAnnotation
An Annotation is an abstract object that allows a PDF document to be changed and extended in a variety of ways. Annotations are recorded with a page in the PDF document. The behavior of an annotation depends on the subtype.
Nested Class Summary | |
---|---|
static class |
PDAnnotation.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static Set |
ANNOTATION_ACTION_TRIGGERS
supported additional action triggers |
static COSName |
CN_Type_Annot
|
static COSName |
DK_A
|
static COSName |
DK_AP
|
static COSName |
DK_AS
|
static COSName |
DK_Border
|
static COSName |
DK_BS
|
static COSName |
DK_C
|
static COSName |
DK_CA
|
static COSName |
DK_Contents
|
static COSName |
DK_F
The name for the F entry. |
static COSName |
DK_IC
|
static COSName |
DK_M
|
static COSName |
DK_NM
|
static COSName |
DK_OC
|
static COSName |
DK_P
|
static COSName |
DK_Rect
|
static COSName |
DK_StructParent
|
static PDAnnotation.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Fields inherited from interface de.intarsys.pdf.pd.IAdditionalActionSupport |
---|
DK_AA |
Method Summary | |
---|---|
void |
addAction(PDAction newAction)
Add a PDAction to be executed when this is "activated". |
int |
basicGetFlags()
The annotation flags in its integer representation. |
void |
basicSetFlags(int newFlags)
Assign the annotation flags in integer representation. |
boolean |
canReceiveFocus()
true if this can receive the focus in an interactive
viewer. |
PDAnnotation |
copy()
Create a copy of the receiver. |
void |
dispose()
Deprecated. |
PDAction |
getAction()
The PDAction to be executed when this is "activated". |
PDAdditionalActions |
getAdditionalActions()
|
PDAppearance |
getAppearance()
The visual appearance of this. |
COSName |
getAppearanceState()
The visual appearance state of this. |
Set |
getAppearanceStates()
All defined appearance states in this. |
PDBorderStyle |
getBorderStyle()
The annotations border style. |
COSName |
getBorderStyleName()
The name of the border style. |
float |
getBorderStyleWidth()
The width of the annotations border. |
float[] |
getColor()
The color values for this. |
String |
getContents()
The contents String for this. |
AnnotationFlags |
getFlags()
The annotation flags. |
CDSDate |
getModified()
The last modification date. |
String |
getName()
The annotations name. |
CDSRectangle |
getNormalizedRectangle()
Convenience method to access a normalized copy of the receivers rectangle. |
PDPage |
getPage()
Try to access the PDPage we are on. |
CDSRectangle |
getRectangle()
The CDSRectangle for the visual appearance of this. |
abstract String |
getSubtypeLabel()
A String representation of this. |
Set |
getSupportedTriggerEvents()
|
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed. |
boolean |
isHidden()
Convenience method to access "Hidden" flag. |
boolean |
isInvisible()
Convenience method to access "Invisible" flag. |
boolean |
isLocked()
Convenience method to access "Locked" flag. |
boolean |
isMarkupAnnotation()
true if this is a PDMarkupAnnotation . |
boolean |
isNoRotate()
Convenience method to access "NoRotate" flag. |
boolean |
isNoView()
Convenience method to access "NoView" flag. |
boolean |
isNoZoom()
Convenience method to access "NoZoom" flag. |
boolean |
isPrint()
Convenience method to access "Print" flag. |
boolean |
isReadOnly()
Convenience method to access "ReadOnly" flag. |
boolean |
isToggleNoView()
Convenience method to access "ToggleNoView" flag. |
boolean |
isWidgetAnnotation()
true if this is a PDWidgetAnnotation . |
void |
setAction(PDAction newAction)
Set the PDAction for the "activation" of this. |
void |
setAdditionalActions(PDAdditionalActions actions)
|
void |
setAppearance(PDAppearance newAppearance)
Assign a PDAppearance to this. |
void |
setAppearanceState(COSName newAppearanceState)
Select a concrete PDForm from the PDAppearance . |
void |
setBorderStyle(PDBorderStyle newBorderStyle)
Assign a PDBorderStyle . |
void |
setBorderStyleName(COSName newStyle)
Assign a border style name. |
void |
setBorderStyleWidth(float newWidth)
Assign a border width. |
void |
setColor(float[] color)
Assign a color. |
void |
setContents(String newContents)
Assign a content String . |
void |
setHidden(boolean f)
Convenience method to access "Hidden" flag. |
void |
setInvisible(boolean f)
Convenience method to access "Invisible" flag. |
void |
setLocked(boolean f)
Convenience method to access "Locked" flag. |
void |
setName(String newName)
Assign a name. |
void |
setNoRotate(boolean f)
Convenience method to access "NoRotate" flag. |
void |
setNoView(boolean f)
Convenience method to access "NoView" flag. |
void |
setNoZoom(boolean f)
Convenience method to access "NoZoom" flag. |
void |
setPrint(boolean f)
Convenience method to access "Print" flag. |
void |
setReadOnly(boolean readOnly)
Convenience method to access "ReadOnly" flag. |
void |
setRectangle(CDSRectangle newRectangle)
Assign a CDSRectangle for the visual appearance of this. |
void |
setToggleNoView(boolean f)
Convenience method to access "ToggleNoView" flag. |
boolean |
supportsPrint()
true if print flag can be selected/changed for this kind
of annotation. |
String |
toString()
|
void |
touch()
Assign the current date as the date of last modification. |
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PDAnnotation.MetaClass META
public static final COSName DK_Contents
public static final COSName DK_P
public static final COSName DK_Rect
public static final COSName DK_NM
public static final COSName DK_M
public static final COSName DK_F
Currently:
public static final COSName DK_BS
public static final COSName DK_Border
public static final COSName DK_AP
public static final COSName DK_AS
public static final COSName DK_C
public static final COSName DK_CA
public static final COSName DK_IC
public static final COSName DK_A
public static final COSName DK_StructParent
public static final COSName DK_OC
public static final COSName CN_Type_Annot
public static final Set ANNOTATION_ACTION_TRIGGERS
Method Detail |
---|
public void addAction(PDAction newAction)
PDAction
to be executed when this is "activated".
newAction
- The PDAction
to be executed.public int basicGetFlags()
public void basicSetFlags(int newFlags)
newFlags
- The new annotation flags.public boolean canReceiveFocus()
true
if this can receive the focus in an interactive
viewer.
true
if this can receive the focus in an
interactive viewer.public PDAnnotation copy()
public void dispose()
public PDAction getAction()
PDAction
to be executed when this is "activated".
PDAction
to be executed when this is "activated".public PDAdditionalActions getAdditionalActions()
getAdditionalActions
in interface IAdditionalActionSupport
public PDAppearance getAppearance()
PDAction
to be executed when this is "activated".public COSName getAppearanceState()
PDAppearance
.
public Set getAppearanceStates()
public PDBorderStyle getBorderStyle()
public COSName getBorderStyleName()
public float getBorderStyleWidth()
public float[] getColor()
public String getContents()
String
for this.
String
for this.public AnnotationFlags getFlags()
public CDSDate getModified()
public String getName()
public CDSRectangle getNormalizedRectangle()
public PDPage getPage()
PDPage
we are on. This may return null, as this
reference is not required by the spec.
PDPage
we are on.public CDSRectangle getRectangle()
CDSRectangle
for the visual appearance of this.
CDSRectangle
for the visual appearance of this.public abstract String getSubtypeLabel()
String
representation of this.
String
representation of this.public Set getSupportedTriggerEvents()
getSupportedTriggerEvents
in interface IAdditionalActionSupport
public void invalidateCaches()
COSBasedObject
invalidateCaches
in class COSBasedObject
public boolean isHidden()
public boolean isInvisible()
public boolean isLocked()
public boolean isMarkupAnnotation()
true
if this is a PDMarkupAnnotation
.
true
if this is a PDMarkupAnnotation
.public boolean isNoRotate()
public boolean isNoView()
public boolean isNoZoom()
public boolean isPrint()
public boolean supportsPrint()
true
if print flag can be selected/changed for this kind
of annotation.
true
if print flag can be selected/changed for
this kind of annotation.public boolean isReadOnly()
public boolean isToggleNoView()
public boolean isWidgetAnnotation()
true
if this is a PDWidgetAnnotation
.
true
if this is a PDWidgetAnnotation
.public void setAction(PDAction newAction)
PDAction
for the "activation" of this.
newAction
- Set the PDAction
for the "activation" of this.public void setAdditionalActions(PDAdditionalActions actions)
setAdditionalActions
in interface IAdditionalActionSupport
public void setAppearance(PDAppearance newAppearance)
PDAppearance
to this.
newAppearance
- The new PDAppearance
.public void setAppearanceState(COSName newAppearanceState)
PDForm
from the PDAppearance
.
newAppearanceState
- The new state name.public void setBorderStyle(PDBorderStyle newBorderStyle)
PDBorderStyle
.
newBorderStyle
- The new PDBorderStyle
public void setBorderStyleName(COSName newStyle)
newStyle
- The new border style name.public void setBorderStyleWidth(float newWidth)
newWidth
- The new Border width.public void setColor(float[] color)
color
- The new color values.public void setContents(String newContents)
String
.
newContents
- The new content String
.public void setHidden(boolean f)
public void setInvisible(boolean f)
public void setLocked(boolean f)
public void setName(String newName)
newName
- The new name.public void setNoRotate(boolean f)
public void setNoView(boolean f)
public void setNoZoom(boolean f)
public void setPrint(boolean f)
public void setReadOnly(boolean readOnly)
public void setRectangle(CDSRectangle newRectangle)
CDSRectangle
for the visual appearance of this.
newRectangle
- Assign a CDSRectangle
for the visual appearance of
this.public void setToggleNoView(boolean f)
public String toString()
toString
in class PDObject
public void touch()
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |