AppearanceCharacteristics

AppearanceCharacteristics

Overview

AppearanceCharacteristics is a class in Aspose.PDF FOSS for Java.

Wrapper around the widget appearance-characteristics dictionary ({@code /MK}, ISO 32000-1:2008 §12.5.6.19).

This class provides 14 methods for working with AppearanceCharacteristics objects in Java programs. Available methods include: AppearanceCharacteristics, getAlternateCaption, getBackground, getBorder, getCaption, getPdfDictionary, getRolloverCaption, getRotate, setAlternateCaption, setBackground, setBorder, setCaption, and 2 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: alternateCaption, background, border, caption, pdfDictionary, rolloverCaption, and 1 more.

Properties

NameTypeAccessDescription
backgroundColorReadGets the background.
borderColorReadGets the border.
rotateintReadReturns the rotation in degrees (0, 90, 180, or 270).
captionStringReadReturns the normal caption (/CA), or {@code null} if not set.
rolloverCaptionStringReadReturns the rollover caption (/RC), or {@code null}.
alternateCaptionStringReadReturns the alternate (“down”) caption (/AC), or {@code null}.
pdfDictionaryPdfDictionaryReadReturns the underlying {@code /MK} dictionary, creating it on demand.

Methods

SignatureDescription
AppearanceCharacteristics(owner: PdfDictionary)
getBackground()ColorReturns the background.
setBackground(color: Color)Sets the background value.
getBorder()ColorReturns the border.
setBorder(color: Color)Sets the border value.
getRotate()intReturns the rotation in degrees (0, 90, 180, or 270).
setRotate(rotate: int)Sets the rotation.
getCaption()StringReturns the normal caption (/CA), or {@code null} if not set.
setCaption(caption: String)Sets the caption value.
getRolloverCaption()StringReturns the rollover caption (/RC), or {@code null}.
setRolloverCaption(caption: String)Sets the rollover caption value.
getAlternateCaption()StringReturns the alternate (“down”) caption (/AC), or {@code null}.
setAlternateCaption(caption: String)Sets the alternate caption value.
getPdfDictionary()PdfDictionaryReturns the underlying {@code /MK} dictionary, creating it on demand.

See Also

 English