Schnittstelle FontProperties
- Alle bekannten Implementierungsklassen:
AbstractFontElement, AbstractValueElement, FieldElement, FieldPart, JavaBean, Subreport, TextPart
public interface FontProperties
- Seit:
- 6.0
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final StringConstant for the logical font Dialog.static final StringConstant for the logical font Monospace (e.g.static final StringConstant for the logical font SansSerif (e.g.static final StringConstant for the logical font Serif (e.g.static final intConstant for the font style boldstatic final intConstant for the font style italicstatic final intConstant for the font style strikethroughstatic final intConstant for the font style underline -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns 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.Returns the property formula for the font color.Returns the font name for the text in this element.Returns the property formula for the font name.intReturns the font size for the text in this element, in points.Returns the property formula for the font size.intReturns the font size for the text in this element, in twips.intReturns the font style for the text in this element.Returns the property formula for the font style.Returns the formula field for whether the text is struck through or not.Returns the formula field for whether the text is underlined or not.booleanisBold()Returns whether the text in this element is bold or not.booleanisItalic()Returns whether the text in this element is italic or not.booleanReturns whether the text in this element is struck through or not.booleanReturns whether the text in this element is underlined or not.voidsetBold(boolean newValue) Sets whether the text in this element is to be bold or not.voidsetFontColor(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.voidsetFontColorFormula(FormulaField newFormula) Sets the property formula for the font color.voidsetFontName(String newValue) Sets the font name for the text in this element.voidsetFontNameFormula(FormulaField newFormula) Sets a property formula for the font name.voidsetFontSize(int newValue) Sets the font size for the text in this element in points.voidsetFontSizeFormula(FormulaField newFormula) Sets a property formula for the font size.voidsetFontSizeTwips(int newValue) Sets the font size for the text in this element in twips.voidsetFontStyle(int newValue) Sets the font style for the text.voidsetFontStyleFormula(FormulaField newFormula) Sets a property formula for the font style.voidsetItalic(boolean newValue) Sets whether the text in this element is to be italic or not.voidsetStrikeout(boolean newValue) Sets whether the text in this element is to be struck through or not.voidsetStrikeoutFormula(FormulaField newFormula) Sets the formula field for whether the text is to be struck through or not.voidsetUnderline(boolean newValue) Sets whether the text in this element is to be underlined or not.voidsetUnderlineFormula(FormulaField newFormula) Sets the formula field for whether the text is to be underlined or not.
-
Felddetails
-
FONT_SANS_SERIF
Constant for the logical font SansSerif (e.g. Arial).- Siehe auch:
-
FONT_SERIF
-
FONT_MONOSPACED
Constant for the logical font Monospace (e.g. Courier New).- Siehe auch:
-
FONT_DIALOG
-
FONT_STYLE_BOLD
static final int FONT_STYLE_BOLDConstant for the font style bold- Siehe auch:
-
FONT_STYLE_ITALIC
static final int FONT_STYLE_ITALICConstant for the font style italic- Siehe auch:
-
FONT_STYLE_UNDERLINE
static final int FONT_STYLE_UNDERLINEConstant for the font style underline- Siehe auch:
-
FONT_STYLE_STRIKETHROUGH
static final int FONT_STYLE_STRIKETHROUGHConstant for the font style strikethrough- Siehe auch:
-
-
Methodendetails
-
setFontSize
void setFontSize(int newValue) Sets the font size for the text in this element in points.- Parameter:
newValue- The font size in points- Seit:
- 6.0
-
getFontSize
int getFontSize()Returns the font size for the text in this element, in points.- Gibt zurück:
- The font size in points.
- Seit:
- 6.0
-
setFontSizeFormula
Sets a property formula for the font size.- Parameter:
newFormula- The new property formula for the font size.- Seit:
- 6.0
-
getFontSizeFormula
FormulaField getFontSizeFormula()Returns the property formula for the font size.- Gibt zurück:
- The
FormulaFieldfor the font size. - Seit:
- 6.0
- Siehe auch:
-
setFontName
Sets the font name for the text in this element.- Parameter:
newValue- The font name- Seit:
- 6.0
-
getFontName
String getFontName()Returns the font name for the text in this element.- Gibt zurück:
- The font name
- Seit:
- 6.0
-
setFontNameFormula
Sets a property formula for the font name.- Parameter:
newFormula- The new property formula for the font name.- Seit:
- 6.0
-
getFontNameFormula
FormulaField getFontNameFormula()Returns the property formula for the font name.- Gibt zurück:
- The
FormulaFieldfor the font name. - Seit:
- 6.0
-
setFontStyle
void setFontStyle(int newValue) Sets the font style for the text. The font style can be FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_UNDERLINE, and/or FONT_STYLE_STRIKETHROUGH. If more than one of these properties is to be set, they are to be connected via bitwise "OR", e.g. (FONT_STYLE_BOLD | FONT_STYLE_UNDERLINE).- Parameter:
newValue- Font style to set for this element.- Seit:
- 6.0
- Siehe auch:
-
getFontStyle
int getFontStyle()Returns the font style for the text in this element. The font style can be FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_UNDERLINE, and/or FONT_STYLE_STRIKETHROUGH. If more than one of these properties is set, they are connected via bitwise "OR", e.g. (FONT_STYLE_BOLD | FONT_STYLE_UNDERLINE).- Gibt zurück:
- The font style
- Seit:
- 6.0
- Siehe auch:
-
setFontStyleFormula
Sets a property formula for the font style.- Parameter:
newFormula- The new property formula for the font style.- Seit:
- 6.0
-
getFontStyleFormula
FormulaField getFontStyleFormula()Returns the property formula for the font style.- Gibt zurück:
- The
FormulaFieldfor the font style. - Seit:
- 6.0
-
setItalic
void setItalic(boolean newValue) Sets whether the text in this element is to be italic or not.- Parameter:
newValue-trueif the text is to be italic,falseotherwise.- Seit:
- 6.0
- Siehe auch:
-
isItalic
boolean isItalic()Returns whether the text in this element is italic or not.- Gibt zurück:
trueif the text is italic,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
isUnderline
boolean isUnderline()Returns whether the text in this element is underlined or not.- Gibt zurück:
trueif the text is underlined,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
getUnderlineFormula
FormulaField getUnderlineFormula()Returns the formula field for whether the text is underlined or not.- Gibt zurück:
- the formula field for whether the text is underlined or not.
- Seit:
- 6.0
-
isStrikeout
boolean isStrikeout()Returns whether the text in this element is struck through or not.- Gibt zurück:
trueif the text is struck through,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
getStrikeoutFormula
FormulaField getStrikeoutFormula()Returns the formula field for whether the text is struck through or not.- Gibt zurück:
- the formula field for whether the text is struck through or not.
- Seit:
- 6.0
-
setUnderline
void setUnderline(boolean newValue) Sets whether the text in this element is to be underlined or not.- Parameter:
newValue-trueif the text is to be underlined,falseotherwise.- Seit:
- 6.0
- Siehe auch:
-
setUnderlineFormula
Sets the formula field for whether the text is to be underlined or not.- Parameter:
newFormula- the formula field for whether the text is to be underlined or not.- Seit:
- 6.0
-
setStrikeout
void setStrikeout(boolean newValue) Sets whether the text in this element is to be struck through or not.- Parameter:
newValue-trueif the text is to be struck through,falseotherwise.- Seit:
- 6.0
- Siehe auch:
-
setStrikeoutFormula
Sets the formula field for whether the text is to be struck through or not.- Parameter:
newFormula- the formula field for whether the text is to be struck through or not.- Seit:
- 6.0
-
isBold
boolean isBold()Returns whether the text in this element is bold or not.- Gibt zurück:
trueif the text is bold,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
setBold
void setBold(boolean newValue) Sets whether the text in this element is to be bold or not.- Parameter:
newValue-trueif the text is to be bold,falseotherwise.- Seit:
- 6.0
- Siehe auch:
-
setFontColor
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.- Parameter:
newValue- The new RGB value to set as the font color for the text- Seit:
- 6.0
-
setFontColorFormula
Sets the property formula for the font color.- Parameter:
newFormula- The new property formula for the font color- Seit:
- 6.0
-
getFontColor
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.- Gibt zurück:
- The font color of the text
- Seit:
- 6.0
-
getFontColorFormula
FormulaField getFontColorFormula()Returns the property formula for the font color.- Gibt zurück:
- The new property formula for the font color
- Seit:
- 6.0
-
setFontSizeTwips
void setFontSizeTwips(int newValue) Sets the font size for the text in this element in twips.- Parameter:
newValue- The font size in twips- Seit:
- 6.0
-
getFontSizeTwips
int getFontSizeTwips()Returns the font size for the text in this element, in twips.- Gibt zurück:
- The font size in twips.
- Seit:
- 6.0
-