|
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
de.intarsys.pdf.pd.PDWidgetAnnotation
public class PDWidgetAnnotation
The annotation representing a field in an AcroForm.
Nested Class Summary | |
---|---|
static class |
PDWidgetAnnotation.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static COSName |
CN_H_I
highlightning: I: Invert |
static COSName |
CN_H_N
highlightning: N: None |
static COSName |
CN_H_O
highlightning: O: Outline |
static COSName |
CN_H_P
highlightning: P: Push |
static COSName |
CN_H_T
highlightning: T: Toggle |
static COSName |
CN_State_Off
|
static COSName |
CN_Subtype_Widget
|
static COSName |
DK_H
Highlighting Mode |
static COSName |
DK_MK
|
static PDWidgetAnnotation.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDAnnotation |
---|
ANNOTATION_ACTION_TRIGGERS, CN_Type_Annot, DK_A, DK_AP, DK_AS, DK_Border, DK_BS, DK_C, DK_CA, DK_Contents, DK_F, DK_IC, DK_M, DK_NM, DK_OC, DK_P, DK_Rect, DK_StructParent |
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 | |
---|---|
boolean |
canReceiveFocus()
true if this can receive the focus in an interactive
viewer. |
COSObject |
cosSetField(COSName name,
COSObject cosObj)
Set a field value in this. |
void |
dispose()
|
PDAcroFormField |
getAcroFormField()
|
COSName |
getAltAppearanceState()
|
PDAppearanceCharacteristics |
getAppearanceCharacteristics()
|
COSName |
getHighlightingMode()
|
CDSRectangle |
getNormalizedRectangle()
Convenience method to access a normalized copy of the receivers rectangle. |
String |
getSubtypeLabel()
A String representation of this. |
boolean |
isOff()
|
boolean |
isWidgetAnnotation()
true if this is a PDWidgetAnnotation . |
void |
setAppearanceCharacteristics(PDAppearanceCharacteristics newAppearanceCharacteristics)
|
void |
setHighlightingMode(COSName newHighlightingMode)
|
void |
transform(CDSRectangle rect,
CDSMatrix matrix)
Change a given rectangle and matrix (belonging to a form) according to the annotations defined rotation. |
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, 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 PDWidgetAnnotation.MetaClass META
public static final COSName DK_H
public static final COSName CN_H_N
public static final COSName CN_H_I
public static final COSName CN_H_O
public static final COSName CN_H_P
public static final COSName CN_H_T
public static final COSName DK_MK
public static final COSName CN_Subtype_Widget
public static final COSName CN_State_Off
Method Detail |
---|
public PDAcroFormField getAcroFormField()
public COSName getAltAppearanceState()
public void setAppearanceCharacteristics(PDAppearanceCharacteristics newAppearanceCharacteristics)
public PDAppearanceCharacteristics getAppearanceCharacteristics()
public void setHighlightingMode(COSName newHighlightingMode)
public COSName getHighlightingMode()
public CDSRectangle getNormalizedRectangle()
PDAnnotation
getNormalizedRectangle
in class PDAnnotation
public boolean isOff()
public boolean isWidgetAnnotation()
PDAnnotation
true
if this is a PDWidgetAnnotation
.
isWidgetAnnotation
in class PDAnnotation
true
if this is a PDWidgetAnnotation
.public boolean canReceiveFocus()
PDAnnotation
true
if this can receive the focus in an interactive
viewer.
canReceiveFocus
in class PDAnnotation
true
if this can receive the focus in an
interactive viewer.public void transform(CDSRectangle rect, CDSMatrix matrix)
rect
- The rectangle to transformmatrix
- The matrix to changepublic String getSubtypeLabel()
PDAnnotation
String
representation of this.
getSubtypeLabel
in class PDAnnotation
String
representation of this.public void dispose()
dispose
in class PDAnnotation
public COSObject cosSetField(COSName name, COSObject cosObj)
COSBasedObject
This method requires the base object to be a COSDictionary
.
cosSetField
in class COSBasedObject
name
- The field to setcosObj
- The object to set in the field
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |