com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class DefaultAppearance



  • public final class DefaultAppearance
    extends Object

    Describes default appearance of field (font, text size and color).

    • Constructor Detail

      • DefaultAppearance

        public DefaultAppearance()

        Constructor of DefaultAppearance.

      • DefaultAppearance

        public DefaultAppearance(com.aspose.pdf.engine.data.IPdfDictionary engineDict)
      • DefaultAppearance

        public DefaultAppearance(com.aspose.pdf.engine.data.IPdfPrimitive appearance)
      • DefaultAppearance

        public DefaultAppearance(String fontName,
                         double fontSize,
                         Color textColor)

        Constructor of DefaultAppearance.

        Parameters:
        fontName - Font name.
        fontSize - Font size.
        textColor - Color of text.
      • DefaultAppearance

        public DefaultAppearance(Font font,
                         double fontSize,
                         Color textColor)

        Constructor of DefaultAppearance.

        Parameters:
        font - Font which will be used as default.
        fontSize - Font size.
        textColor - Color of text.
    • Method Detail

      • getFontSize

        public double getFontSize()

        Gets font size in default apperance.

        Returns:
        font size
      • setFontSize

        public void setFontSize(double value)

        Sets font size in default apperance.

        Parameters:
        value - font size
      • getTextColor

        public Color getTextColor()

        Gets color of text in the default appearance.

        Returns:
        Color object
      • setTextColor

        public void setTextColor(Color color)

        Sets color of text in the default appearance.

        Parameters:
        color - Color object
      • getFontName

        public String getFontName()

        Gets font name in the default appearance.

        Returns:
        String value
      • setFontName

        public void setFontName(String resourceName)
      • getFont

        public Font getFont()

        Gets font specified as default for text.

        Returns:
        Font value
      • getText

        public String getText()

        Gets the list of pdf operators which represent appearence.

        Returns:
        String value