public class PDAppearance extends PDObject
The annotation supports different visual feedback dependent on the kind of
user interaction currently in effect.
- Normal
- Down
- Rollover
Additionaly, each of these appearances is supported for the different logical
states an annotation can enter (for example "On" and "Off" in a checkbox).
The PDForm objects responsible for this feedback are described here.
| Modifier and Type | Class and Description |
|---|---|
static class |
PDAppearance.MetaClass
The meta class implementation
|
| Modifier and Type | Field and Description |
|---|---|
static COSName |
DK_D |
static COSName |
DK_N |
static COSName |
DK_R |
static PDAppearance.MetaClass |
META
The meta class instance
|
DK_Subtype, DK_Type| Modifier and Type | Method and Description |
|---|---|
PDForm |
getAppearance(COSName key,
COSName state)
The
PDForm for state state. |
PDForm |
getDownAppearance(COSName state) |
List<PDForm> |
getForms()
Collects all appearance forms within this annotation dictionary.
|
PDForm |
getNormalAppearance(COSName state) |
PDForm |
getRolloverAppearance(COSName state) |
boolean |
isDefined()
true if this appearance dictionary has valid contents. |
boolean |
isDefined(COSName key,
COSName state)
true if this appearance dictionary has valid contents for
the requested rendering context and appearance state. |
void |
setDownAppearance(COSName state,
PDForm form) |
void |
setNormalAppearance(COSName state,
PDForm form) |
void |
setRolloverAppearance(COSName state,
PDForm form) |
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toStringchanged, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldStringpublic static final COSName DK_D
public static final COSName DK_N
public static final COSName DK_R
public static final PDAppearance.MetaClass META
public PDForm getAppearance(COSName key, COSName state)
PDForm for state state. key defines
the interaction context and is one of "/D", "/R" or "/N". If no
PDForm is available, return the PDForm for the "/N"
context.key - The interaction contextstate - The PDAnnotation state.PDForm for state state.public List<PDForm> getForms()
public boolean isDefined()
true if this appearance dictionary has valid contents. From
time to time there may be an empty /AP stub around, in this case this
method returns false.true if this appearance dictionary has valid
contents.public boolean isDefined(COSName key, COSName state)
true if this appearance dictionary has valid contents for
the requested rendering context and appearance state.true if this appearance dictionary has valid
contents for the requested rendering context and appearance
state.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.