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.
|
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 resourceName) |
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 resourceName)
public Font getFont()
Gets font specified as default for text.
public String getText()
Gets the list of pdf operators which represent appearence.