|
jPod PDF library | |||||||||
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.PDAppearance
public class PDAppearance
The PDAppearance describes the visual content of a PDAnnotation.
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.
Nested Class Summary | |
---|---|
static class |
PDAppearance.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static COSName |
DK_D
|
static COSName |
DK_N
|
static COSName |
DK_R
|
static PDAppearance.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Method Summary | |
---|---|
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)
|
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString |
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, invalidateCaches, 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 COSName DK_D
public static final COSName DK_N
public static final COSName DK_R
public static final PDAppearance.MetaClass META
Method Detail |
---|
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 PDForm getDownAppearance(COSName state)
public List<PDForm> getForms()
public PDForm getNormalAppearance(COSName state)
public PDForm getRolloverAppearance(COSName state)
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.public void setDownAppearance(COSName state, PDForm form)
public void setNormalAppearance(COSName state, PDForm form)
public void setRolloverAppearance(COSName state, PDForm form)
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |