public final class DefaultAppearance extends Object
Describes default appearance of field (font, text size and color).
Constructor and Description |
---|
DefaultAppearance()
Constructor of DefaultAppearance.
|
DefaultAppearance(Font font,
double fontSize,
Color textColor)
Constructor of DefaultAppearance.
|
DefaultAppearance(com.aspose.pdf.engine.data.IPdfDictionary engineDict) |
DefaultAppearance(com.aspose.pdf.engine.data.IPdfPrimitive appearance) |
DefaultAppearance(String fontName,
double fontSize,
Color textColor)
Constructor of DefaultAppearance.
|
Modifier and Type | Method and Description |
---|---|
Font |
getFont()
Gets font specified as default for text.
|
String |
getFontName()
Gets font name in the default appearance.
|
String |
getFontResourceName()
Gets font name in the default appearance.
|
double |
getFontSize()
Gets font size in default appearance.
|
String |
getText()
Gets the list of pdf operators which represent appearence.
|
Color |
getTextColor()
Gets color of text in the default appearance.
|
void |
setFontName(String value)
Gets font name in the default appearance.
|
void |
setFontResourceName(String value)
Gets font name in the default appearance.
|
void |
setFontSize(double value)
Sets font size in default appearance.
|
void |
setTextColor(Color color)
Sets color of text in the default appearance.
|
public DefaultAppearance()
Constructor of DefaultAppearance.
public DefaultAppearance(com.aspose.pdf.engine.data.IPdfDictionary engineDict)
public DefaultAppearance(com.aspose.pdf.engine.data.IPdfPrimitive appearance)
public DefaultAppearance(String fontName, double fontSize, Color textColor)
Constructor of DefaultAppearance.
fontName
- Font name.fontSize
- Font size.textColor
- Color of text.public double getFontSize()
Gets font size in default appearance.
public void setFontSize(double value)
Sets font size in default appearance.
value
- font sizepublic Color getTextColor()
Gets color of text in the default appearance.
public void setTextColor(Color color)
Sets color of text in the default appearance.
color
- Color objectpublic String getFontName()
Gets font name in the default appearance.
public void setFontName(String value)
Gets font name in the default appearance.
value
- String valuepublic final String getFontResourceName()
Gets font name in the default appearance.
public final void setFontResourceName(String value)
Gets font name in the default appearance.
value
- String valuepublic Font getFont()
Gets font specified as default for text.
public String getText()
Gets the list of pdf operators which represent appearence.
Copyright © 2022 Aspose. All Rights Reserved.