public interface FontProperties
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FONT_DIALOG
Constant for the logical font Dialog.
|
static java.lang.String |
FONT_MONOSPACED
Constant for the logical font Monospace (e.g.
|
static java.lang.String |
FONT_SANS_SERIF
Constant for the logical font SansSerif (e.g.
|
static java.lang.String |
FONT_SERIF
Constant for the logical font Serif (e.g.
|
static int |
FONT_STYLE_BOLD
Constant for the font style bold
|
static int |
FONT_STYLE_ITALIC
Constant for the font style italic
|
static int |
FONT_STYLE_STRIKETHROUGH
Constant for the font style strikethrough
|
static int |
FONT_STYLE_UNDERLINE
Constant for the font style underline
|
Modifier and Type | Method and Description |
---|---|
int |
getFontColor()
Returns the font color for the text in this element as an RGB value
consisting of the red component in bits 16-23, the green component
in bits 8-15, and the blue component in bits 0-7.
|
FormulaField |
getFontColorFormula()
Returns the property formula for the font color.
|
java.lang.String |
getFontName()
Returns the font name for the text in this element.
|
FormulaField |
getFontNameFormula()
Returns the property formula for the font name.
|
int |
getFontSize()
Returns the font size for the text in this element, in points.
|
FormulaField |
getFontSizeFormula()
Returns the property formula for the font size.
|
int |
getFontSizeTwips()
Returns the font size for the text in this element, in twips.
|
int |
getFontStyle()
Returns the font style for the text in this element.
|
FormulaField |
getFontStyleFormula()
Returns the property formula for the font style.
|
FormulaField |
getStrikeoutFormula()
Returns the formula field for whether the text is struck through or not.
|
FormulaField |
getUnderlineFormula()
Returns the formula field for whether the text is underlined or not.
|
boolean |
isBold()
Returns whether the text in this element is bold or not.
|
boolean |
isItalic()
Returns whether the text in this element is italic or not.
|
boolean |
isStrikeout()
Returns whether the text in this element is struck through or not.
|
boolean |
isUnderline()
Returns whether the text in this element is underlined or not.
|
void |
setBold(boolean newValue)
Sets whether the text in this element is to be bold or not.
|
void |
setFontColor(int newValue)
Sets the font color for the text in this element to the given RGB value
consisting of the red component in bits 16-23, the green component
in bits 8-15, and the blue component in bits 0-7.
|
void |
setFontColorFormula(FormulaField newFormula)
Sets the property formula for the font color.
|
void |
setFontName(java.lang.String newValue)
Sets the font name for the text in this element.
|
void |
setFontNameFormula(FormulaField newFormula)
Sets a property formula for the font name.
|
void |
setFontSize(int newValue)
Sets the font size for the text in this element in points.
|
void |
setFontSizeFormula(FormulaField newFormula)
Sets a property formula for the font size.
|
void |
setFontSizeTwips(int newValue)
Sets the font size for the text in this element in twips.
|
void |
setFontStyle(int newValue)
Sets the font style for the text.
|
void |
setFontStyleFormula(FormulaField newFormula)
Sets a property formula for the font style.
|
void |
setItalic(boolean newValue)
Sets whether the text in this element is to be italic or not.
|
void |
setStrikeout(boolean newValue)
Sets whether the text in this element is to be struck through or not.
|
void |
setStrikeoutFormula(FormulaField newFormula)
Sets the formula field for whether the text is to be struck through or not.
|
void |
setUnderline(boolean newValue)
Sets whether the text in this element is to be underlined or not.
|
void |
setUnderlineFormula(FormulaField newFormula)
Sets the formula field for whether the text is to be underlined or not.
|
static final java.lang.String FONT_SANS_SERIF
static final java.lang.String FONT_SERIF
static final java.lang.String FONT_MONOSPACED
static final java.lang.String FONT_DIALOG
static final int FONT_STYLE_BOLD
static final int FONT_STYLE_ITALIC
static final int FONT_STYLE_UNDERLINE
static final int FONT_STYLE_STRIKETHROUGH
void setFontSize(int newValue)
newValue
- The font size in pointsint getFontSize()
void setFontSizeFormula(FormulaField newFormula)
newFormula
- The new property formula for the font size.FormulaField getFontSizeFormula()
FormulaField
for the font size.FormulaField
void setFontName(java.lang.String newValue)
newValue
- The font namejava.lang.String getFontName()
void setFontNameFormula(FormulaField newFormula)
newFormula
- The new property formula for the font name.FormulaField getFontNameFormula()
FormulaField
for the font name.void setFontStyle(int newValue)
newValue
- Font style to set for this element.FONT_STYLE_BOLD
,
FONT_STYLE_ITALIC
,
FONT_STYLE_UNDERLINE
,
FONT_STYLE_STRIKETHROUGH
int getFontStyle()
FONT_STYLE_BOLD
,
FONT_STYLE_ITALIC
,
FONT_STYLE_UNDERLINE
,
FONT_STYLE_STRIKETHROUGH
void setFontStyleFormula(FormulaField newFormula)
newFormula
- The new property formula for the font style.FormulaField getFontStyleFormula()
FormulaField
for the font style.void setItalic(boolean newValue)
newValue
- true
if the text is to be italic, false
otherwise.setFontStyle(int)
boolean isItalic()
true
if the text is italic, false
otherwise.setFontStyle(int)
boolean isUnderline()
true
if the text is underlined, false
otherwise.setFontStyle(int)
FormulaField getUnderlineFormula()
boolean isStrikeout()
true
if the text is struck through, false
otherwise.setFontStyle(int)
FormulaField getStrikeoutFormula()
void setUnderline(boolean newValue)
newValue
- true
if the text is to be underlined, false
otherwise.setFontStyle(int)
void setUnderlineFormula(FormulaField newFormula)
newFormula
- the formula field for whether the text is to be underlined or not.void setStrikeout(boolean newValue)
newValue
- true
if the text is to be struck through, false
otherwise.setFontStyle(int)
void setStrikeoutFormula(FormulaField newFormula)
newFormula
- the formula field for whether the text is to be struck through or not.boolean isBold()
true
if the text is bold, false
otherwise.setFontStyle(int)
void setBold(boolean newValue)
newValue
- true
if the text is to be bold, false
otherwise.setFontStyle(int)
void setFontColor(int newValue)
newValue
- The new RGB value to set as the font color for the textvoid setFontColorFormula(FormulaField newFormula)
newFormula
- The new property formula for the font colorint getFontColor()
FormulaField getFontColorFormula()
void setFontSizeTwips(int newValue)
newValue
- The font size in twipsint getFontSizeTwips()
Copyright © 1999-2020 by i-net software GmbH