This class represents an appearance characteristics dictionary.
Method from org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceCharacteristicsDictionary Detail: |
public String getAlternateCaption() {
return this.getDictionary().getString("AC");
}
This will retrieve the alternate caption. |
public PDXObjectForm getAlternateIcon() {
COSBase i = this.getDictionary().getDictionaryObject("IX");
if (i instanceof COSStream)
{
return new PDXObjectForm((COSStream) i);
}
return null;
}
This will retrieve the alternate icon. |
public PDGamma getBackground() {
COSBase c = this.getDictionary().getItem(COSName.getPDFName("BG"));
if (c instanceof COSArray)
{
return new PDGamma((COSArray) c);
}
return null;
}
This will retrieve the background color. |
public PDGamma getBorderColour() {
COSBase c = this.getDictionary().getItem(COSName.getPDFName("BC"));
if (c instanceof COSArray)
{
return new PDGamma((COSArray) c);
}
return null;
}
This will retrieve the border color. |
public COSBase getCOSObject() {
return this.dictionary;
}
|
public COSDictionary getDictionary() {
return this.dictionary;
}
|
public String getNormalCaption() {
return this.getDictionary().getString("CA");
}
This will retrieve the normal caption. |
public PDXObjectForm getNormalIcon() {
COSBase i = this.getDictionary().getDictionaryObject("I");
if (i instanceof COSStream)
{
return new PDXObjectForm((COSStream) i);
}
return null;
}
This will retrieve the normal icon. |
public String getRolloverCaption() {
return this.getDictionary().getString("RC");
}
This will retrieve the rollover caption. |
public PDXObjectForm getRolloverIcon() {
COSBase i = this.getDictionary().getDictionaryObject("RI");
if (i instanceof COSStream)
{
return new PDXObjectForm((COSStream) i);
}
return null;
}
This will retrieve the rollover icon. |
public int getRotation() {
return this.getDictionary().getInt(COSName.R, 0);
}
This will retrieve the rotation of the annotation widget.
It must be a multiple of 90. Default is 0 |
public void setAlternateCaption(String caption) {
this.getDictionary().setString("AC", caption);
}
This will set the alternate caption. |
public void setBackground(PDGamma c) {
this.getDictionary().setItem("BG", c);
}
This will set the background color. |
public void setBorderColour(PDGamma c) {
this.getDictionary().setItem("BC", c);
}
This will set the border color. |
public void setNormalCaption(String caption) {
this.getDictionary().setString("CA", caption);
}
This will set the normal caption. |
public void setRolloverCaption(String caption) {
this.getDictionary().setString("RC", caption);
}
This will set the rollover caption. |
public void setRotation(int rotation) {
this.getDictionary().setInt(COSName.R, rotation);
}
This will set the rotation. |