Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.annotation

public Class PDAppearanceCharacteristicsDictionary

extends Object
implements COSObjectable
Class Inheritance
All Implemented Interfaces
org.apache.pdfbox.pdmodel.common.COSObjectable
Imports
org.apache.pdfbox.cos.COSArray, .COSDictionary, .COSName, .COSStream, org.apache.pdfbox.pdmodel.common.COSObjectable, org.apache.pdfbox.pdmodel.graphics.color.PDColor, .PDColorSpace, .PDDeviceCMYK, .PDDeviceGray, .PDDeviceRGB, org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject

This class represents an appearance characteristics dictionary.

Field Summary

Modifier and TypeField and Description
private final COSDictionary

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the alternate caption.
getAlternateCaption
()

This will retrieve the alternate caption.

public PDFormXObject

Returns:

the alternate icon.
getAlternateIcon
()

This will retrieve the alternate icon.

public PDColor

Returns:

the background color.
getBackground
()

This will retrieve the background color.

public PDColor

Returns:

the border color.
getBorderColour
()

This will retrieve the border color.

private PDColor
getColor(COSName itemName)

public COSDictionary

Returns:

the dictionary
getCOSObject
()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

returns the dictionary.

public String

Returns:

the normal caption.
getNormalCaption
()

This will retrieve the normal caption.

public PDFormXObject

Returns:

the normal icon.
getNormalIcon
()

This will retrieve the normal icon.

public String

Returns:

the rollover caption.
getRolloverCaption
()

This will retrieve the rollover caption.

public PDFormXObject

Returns:

the rollover icon
getRolloverIcon
()

This will retrieve the rollover icon.

public int

Returns:

the rotation
getRotation
()

This will retrieve the rotation of the annotation widget.

public void
setAlternateCaption(String
the alternate caption
caption
)

This will set the alternate caption.

public void
setBackground(PDColor
the background color
c
)

This will set the background color.

public void
setBorderColour(PDColor
the border color
c
)

This will set the border color.

public void
setNormalCaption(String
the normal caption
caption
)

This will set the normal caption.

public void
setRolloverCaption(String
the rollover caption
caption
)

This will set the rollover caption.

public void
setRotation(int
the rotation as a multiple of 90
rotation
)

This will set the rotation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dictionaryback to summary
private final COSDictionary dictionary

Constructor Detail

PDAppearanceCharacteristicsDictionaryback to summary
public PDAppearanceCharacteristicsDictionary(COSDictionary dict)

Constructor.

Parameters
dict:COSDictionary

dictionary

Method Detail

getAlternateCaptionback to summary
public String getAlternateCaption()

This will retrieve the alternate caption.

Returns:String

the alternate caption.

getAlternateIconback to summary
public PDFormXObject getAlternateIcon()

This will retrieve the alternate icon.

Returns:PDFormXObject

the alternate icon.

getBackgroundback to summary
public PDColor getBackground()

This will retrieve the background color.

Returns:PDColor

the background color.

getBorderColourback to summary
public PDColor getBorderColour()

This will retrieve the border color.

Returns:PDColor

the border color.

getColorback to summary
private PDColor getColor(COSName itemName)
getCOSObjectback to summary
public COSDictionary getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

returns the dictionary.

Returns:COSDictionary

the dictionary

Annotations
@Override
getNormalCaptionback to summary
public String getNormalCaption()

This will retrieve the normal caption.

Returns:String

the normal caption.

getNormalIconback to summary
public PDFormXObject getNormalIcon()

This will retrieve the normal icon.

Returns:PDFormXObject

the normal icon.

getRolloverCaptionback to summary
public String getRolloverCaption()

This will retrieve the rollover caption.

Returns:String

the rollover caption.

getRolloverIconback to summary
public PDFormXObject getRolloverIcon()

This will retrieve the rollover icon.

Returns:PDFormXObject

the rollover icon

getRotationback to summary
public int getRotation()

This will retrieve the rotation of the annotation widget. It must be a multiple of 90. Default is 0

Returns:int

the rotation

setAlternateCaptionback to summary
public void setAlternateCaption(String caption)

This will set the alternate caption.

Parameters
caption:String

the alternate caption

setBackgroundback to summary
public void setBackground(PDColor c)

This will set the background color.

Parameters
c:PDColor

the background color

setBorderColourback to summary
public void setBorderColour(PDColor c)

This will set the border color.

Parameters
c:PDColor

the border color

setNormalCaptionback to summary
public void setNormalCaption(String caption)

This will set the normal caption.

Parameters
caption:String

the normal caption

setRolloverCaptionback to summary
public void setRolloverCaption(String caption)

This will set the rollover caption.

Parameters
caption:String

the rollover caption

setRotationback to summary
public void setRotation(int rotation)

This will set the rotation.

Parameters
rotation:int

the rotation as a multiple of 90