DefaultAppearance
Inheritance: java.lang.Object
public final class DefaultAppearance
Describes default appearance of field (font, text size and color).
Constructors
Constructor | Description |
---|---|
DefaultAppearance() | Constructor of DefaultAppearance. |
DefaultAppearance(IPdfDictionary engineDict) | |
DefaultAppearance(IPdfPrimitive appearance) | |
DefaultAppearance(String fontName, double fontSize, Color textColor) | Constructor of DefaultAppearance. |
DefaultAppearance(Font font, double fontSize, Color textColor) | Constructor of DefaultAppearance. |
Methods
Method | Description |
---|---|
getFontSize() | Gets font size in default appearance. |
setFontSize(double value) | Sets font size in default appearance. |
getTextColor() | Gets color of text in the default appearance. |
setTextColor(Color color) | Sets color of text in the default appearance. |
getFontName() | Gets font name in the default appearance. |
setFontName(String value) | Gets font name in the default appearance. |
getFontResourceName() | Gets font name in the default appearance. |
setFontResourceName(String value) | Gets font name in the default appearance. |
getFont() | Gets font specified as default for text. |
getText() | Gets the list of pdf operators which represent appearence. |
DefaultAppearance()
public DefaultAppearance()
Constructor of DefaultAppearance.
DefaultAppearance(IPdfDictionary engineDict)
public DefaultAppearance(IPdfDictionary engineDict)
Parameters:
Parameter | Type | Description |
---|---|---|
engineDict | IPdfDictionary |
DefaultAppearance(IPdfPrimitive appearance)
public DefaultAppearance(IPdfPrimitive appearance)
Parameters:
Parameter | Type | Description |
---|---|---|
appearance | IPdfPrimitive |
DefaultAppearance(String fontName, double fontSize, Color textColor)
public DefaultAppearance(String fontName, double fontSize, Color textColor)
Constructor of DefaultAppearance.
Parameters:
Parameter | Type | Description |
---|---|---|
fontName | java.lang.String | Font name. |
fontSize | double | Font size. |
textColor | java.awt.Color | Color of text. |
DefaultAppearance(Font font, double fontSize, Color textColor)
public DefaultAppearance(Font font, double fontSize, Color textColor)
Constructor of DefaultAppearance.
Parameters:
Parameter | Type | Description |
---|---|---|
font | Font | Font which will be used as default. |
fontSize | double | Font size. |
textColor | java.awt.Color | Color of text. |
getFontSize()
public double getFontSize()
Gets font size in default appearance.
Returns: double - font size
setFontSize(double value)
public void setFontSize(double value)
Sets font size in default appearance.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | font size |
getTextColor()
public Color getTextColor()
Gets color of text in the default appearance.
Returns: Color - Color object
setTextColor(Color color)
public void setTextColor(Color color)
Sets color of text in the default appearance.
Parameters:
Parameter | Type | Description |
---|---|---|
color | java.awt.Color | Color object |
getFontName()
public String getFontName()
Gets font name in the default appearance.
Returns: java.lang.String - String value
setFontName(String value)
public void setFontName(String value)
Gets font name in the default appearance.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value |
getFontResourceName()
public final String getFontResourceName()
Gets font name in the default appearance.
Returns: java.lang.String - String value
setFontResourceName(String value)
public final void setFontResourceName(String value)
Gets font name in the default appearance.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value |
getFont()
public Font getFont()
Gets font specified as default for text.
Returns: Font - Font value
getText()
public String getText()
Gets the list of pdf operators which represent appearence.
Returns: java.lang.String - String value