public abstract class AbstractFontElement extends Element implements FontProperties
AbstractFontElement
implements
FontProperties
class and extends Element
. Inherit
from this class to support Element
s that receive Font properties.Element
,
FontProperties
,
Serialized FormBOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPART
FONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINE
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT
Modifier and Type | Method and Description |
---|---|
int |
getFontColor()
Returns the value of the property 'font color'.
|
FormulaField |
getFontColorFormula()
Returns the formula for the property 'font color'.
|
java.lang.String |
getFontName()
Returns the value of the property 'font name'.
|
FormulaField |
getFontNameFormula()
Returns the formula for the property 'font name'.
|
int |
getFontSize()
Returns the value of the property 'font size', rounded to an integer(!).
|
FormulaField |
getFontSizeFormula()
Returns the formula for the property 'font size'.
|
int |
getFontSizeTwips()
Returns the value of the property 'font size' in Twips.
|
int |
getFontStyle()
Returns the value of the property 'font style'.
|
FormulaField |
getFontStyleFormula()
Returns the formula for the property 'font style'.
|
java.util.List<FormulaField> |
getPropertyFormulas()
Returns a list with all property formulas that are set for this report element.
|
FormulaField |
getStrikeoutFormula()
Returns The formula field for the property 'strike out'.
|
FormulaField |
getUnderlineFormula()
Returns the formula field for the property 'underline'.
|
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 the value of the property 'font bold'.
|
void |
setFontColor(int newValue)
Sets the value of the property 'font color'.
|
void |
setFontColorFormula(FormulaField newFormula)
Sets the formula of the property 'font color'.
|
void |
setFontName(java.lang.String newValue)
Sets the value of the property 'font name'.
|
void |
setFontNameFormula(FormulaField newFormula)
Sets the formula for the property 'font name'.
|
void |
setFontSize(int newValue)
Sets the value of the property 'font size'.
|
void |
setFontSizeFormula(FormulaField newFormula)
Sets the formula for the property 'font size'.
|
void |
setFontSizeTwips(int newValue)
Sets the value of the property 'font size'.
|
void |
setFontStyle(int fontStyle)
Sets the value of the property 'font style'.
|
void |
setFontStyleFormula(FormulaField newFormula)
Sets the formula for the property 'font style'.
|
void |
setItalic(boolean newValue)
Sets the value of the property 'italic'.
|
void |
setStrikeout(boolean newValue)
Sets the value of the property 'strike out'.
|
void |
setStrikeoutFormula(FormulaField newFormula)
Set the formula field for the property 'strike out'.
|
void |
setUnderline(boolean newValue)
Sets the value of the property 'underline'.
|
void |
setUnderlineFormula(FormulaField newFormula)
Sets the formula field for the property 'underline'.
|
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isDropShadow, isSuppressIfDuplicated, isTightHorizontal, paramString, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula
getBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSubComponents, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public final void setFontSize(int newValue)
setFontSize
in interface FontProperties
newValue
- The font size in points, e.g. 8.java.lang.IllegalArgumentException
- if newValue is negativepublic int getFontSize()
getFontSizeTwips()
instead.
Use this property to change the font format
of the labels in this field element.getFontSize
in interface FontProperties
getFontSizeTwips()
instead.public final void setFontSizeFormula(FormulaField newFormula)
setFontSizeFormula
in interface FontProperties
newFormula
- The new formula for the property 'font size'.public FormulaField getFontSizeFormula()
getFontSizeFormula
in interface FontProperties
FormulaField
The formula for the property 'font size'.FormulaField
public java.lang.String getFontName()
getFontName
in interface FontProperties
public final void setFontName(java.lang.String newValue)
setFontName
in interface FontProperties
newValue
- The new value of the property 'font name'.public final void setFontNameFormula(FormulaField newFormula)
setFontNameFormula
in interface FontProperties
newFormula
- The formula for the property 'font name'.public FormulaField getFontNameFormula()
getFontNameFormula
in interface FontProperties
FormulaField
The formula for the property 'font name'.public int getFontStyle()
getFontStyle
in interface FontProperties
FontProperties.FONT_STYLE_BOLD
,
FontProperties.FONT_STYLE_ITALIC
,
FontProperties.FONT_STYLE_UNDERLINE
,
FontProperties.FONT_STYLE_STRIKETHROUGH
public final void setFontStyle(int fontStyle)
setFontStyle
in interface FontProperties
fontStyle
- The new font style, whereFontProperties.FONT_STYLE_BOLD
,
FontProperties.FONT_STYLE_ITALIC
,
FontProperties.FONT_STYLE_UNDERLINE
,
FontProperties.FONT_STYLE_STRIKETHROUGH
public final void setFontStyleFormula(FormulaField newFormula)
setFontStyleFormula
in interface FontProperties
newFormula
- The new formula for the property 'font style'.
The result of the formula should be within the range from 0 to 15, wherepublic FormulaField getFontStyleFormula()
getFontStyleFormula
in interface FontProperties
FormulaField
The formula for the property 'font style'.public final void setItalic(boolean newValue)
setItalic
in interface FontProperties
newValue
- true if the property should be set, else false
setFontStyleFormula(com.inet.report.FormulaField)
public boolean isItalic()
isItalic
in interface FontProperties
true
if the text is italic, false
otherwise.FontProperties.setFontStyle(int)
public boolean isUnderline()
isUnderline
in interface FontProperties
true
if the text is underlined, false
otherwise.FontProperties.setFontStyle(int)
public FormulaField getUnderlineFormula()
getUnderlineFormula
in interface FontProperties
public boolean isStrikeout()
isStrikeout
in interface FontProperties
true
if the text is struck through, false
otherwise.FontProperties.setFontStyle(int)
public FormulaField getStrikeoutFormula()
getStrikeoutFormula
in interface FontProperties
public final void setUnderline(boolean newValue)
setUnderline
in interface FontProperties
newValue
- true if the property should be set, else false
FontProperties.setFontStyle(int)
public final void setUnderlineFormula(FormulaField newFormula)
setUnderlineFormula
in interface FontProperties
newFormula
- the formula field for the property 'underline'.public final void setStrikeout(boolean newValue)
setStrikeout
in interface FontProperties
newValue
- true if the property should be set, else false
FontProperties.setFontStyle(int)
public final void setStrikeoutFormula(FormulaField newFormula)
setStrikeoutFormula
in interface FontProperties
newFormula
- The formula field for the property 'strike out'.public boolean isBold()
isBold
in interface FontProperties
true
if the text is bold, false
otherwise.FontProperties.setFontStyle(int)
public void setBold(boolean newValue)
setBold
in interface FontProperties
newValue
- Whether or not this font element is to be set as bold. Note that this property
can be overridden if a property formula is defined.setFontStyleFormula(com.inet.report.FormulaField)
public void setFontColor(int newValue)
setFontColor
in interface FontProperties
newValue
- The new value of the property 'font color'.public void setFontColorFormula(FormulaField newFormula)
setFontColorFormula
in interface FontProperties
newFormula
- The new formula for the property 'font color'.public int getFontColor()
getFontColor
in interface FontProperties
public FormulaField getFontColorFormula()
getFontColorFormula
in interface FontProperties
FormulaField
The formula for the property 'font color'.public void setFontSizeTwips(int newValue)
setFontSizeTwips
in interface FontProperties
newValue
- The font size in Twips.java.lang.IllegalArgumentException
- if newValue is negativepublic int getFontSizeTwips()
getFontSizeTwips
in interface FontProperties
public java.util.List<FormulaField> getPropertyFormulas()
ReportComponent
of this one. To get the property formulas for descendant ReportComponent
use ReportComponent.getSubComponents()
getPropertyFormulas
in class Element
Copyright © 1999-2020 by i-net software GmbH