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,
com.aspose.java.awt.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,
com.aspose.java.awt.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 apperance.
|
String |
getText()
Gets the list of pdf operators which represent appearence.
|
com.aspose.java.awt.Color |
getTextColor()
Gets color of text in the default appearance.
|
void |
setFontName(String resourceName) |
void |
setFontSize(double value) |
void |
setTextColor(com.aspose.java.awt.Color color) |
void |
setTextColor(int color) |
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, com.aspose.java.awt.Color textColor)
Constructor of DefaultAppearance.
fontName
- Font name.fontSize
- Font size.textColor
- Color of text.public DefaultAppearance(Font font, double fontSize, com.aspose.java.awt.Color textColor)
Constructor of DefaultAppearance.
font
- Font which will be used as default.fontSize
- Font size.textColor
- Color of text.public double getFontSize()
Gets font size in default apperance.
public void setFontSize(double value)
public com.aspose.java.awt.Color getTextColor()
Gets color of text in the default appearance.
public void setTextColor(com.aspose.java.awt.Color color)
public void setTextColor(int color)
public 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.
Copyright © 2017 Aspose. All Rights Reserved.