Klasse AbstractFontElement
java.lang.Object
com.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractFontElement
- Alle implementierten Schnittstellen:
FontProperties, GeneralProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
- Bekannte direkte Unterklassen:
AbstractValueElement, JavaBean, Subreport, TextPart
The abstract class
AbstractFontElement implements
FontProperties class and extends Element. Inherit
from this class to support Elements that receive Font properties.- Seit:
- 6.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic enumFOR INTERNAL USE ONLYVon Klasse geerbte verschachtelte Klassen/Schnittstellen Element
Element.BorderProps, Element.CommonProperties, Element.ElementTypes, Element.HyperlinkProps, Element.StringProps -
Feldübersicht
Von Klasse geerbte Felder Element
BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPARTVon Schnittstelle geerbte Felder FontProperties
FONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINE -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns the value of the property 'font color'.Returns the formula for the property 'font color'.Returns the value of the property 'font name'.Returns the formula for the property 'font name'.intReturns the value of the property 'font size', rounded to an integer(!).Returns the formula for the property 'font size'.intReturns the value of the property 'font size' in Twips.intReturns the value of the property 'font style'.Returns the formula for the property 'font style'.Returns a list with all property formulas that are set for this report element.Returns The formula field for the property 'strike out'.Returns the formula field for the property 'underline'.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.parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidsetBold(boolean newValue) Sets the value of the property 'font bold'.voidsetFontColor(int newValue) Sets the value of the property 'font color'.voidsetFontColorFormula(FormulaField newFormula) Sets the formula of the property 'font color'.final voidsetFontName(String newValue) Sets the value of the property 'font name'.final voidsetFontNameFormula(FormulaField newFormula) Sets the formula for the property 'font name'.final voidsetFontSize(int newValue) Sets the value of the property 'font size'.final voidsetFontSizeFormula(FormulaField newFormula) Sets the formula for the property 'font size'.voidsetFontSizeTwips(int newValue) Sets the value of the property 'font size'.final voidsetFontStyle(int fontStyle) Sets the value of the property 'font style'.final voidsetFontStyleFormula(FormulaField newFormula) Sets the formula for the property 'font style'.final voidsetItalic(boolean newValue) Sets the value of the property 'italic'.final voidsetStrikeout(boolean newValue) Sets the value of the property 'strike out'.final voidsetStrikeoutFormula(FormulaField newFormula) Set the formula field for the property 'strike out'.final voidsetUnderline(boolean newValue) Sets the value of the property 'underline'.final voidsetUnderlineFormula(FormulaField newFormula) Sets the formula field for the property 'underline'.Von Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getListStack, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, getTypeAsString, getVerAlign, getVerAlignFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isCloseBorderOnPageBreakInternal, isDropShadow, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, paramString, parseText, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setListStack, setReferences, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula, setVerAlign, setVerAlignFormulaVon Klasse geerbte Methoden ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getHeight, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getStructElem, getSubComponents, getSuppressFormula, getType, getWidth, getX, getY, isDOMParser, isKeepTogether, isSuppress, parseDOM, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, resetReferences, setBackColor, setBackColorFormula, setCustomData, setHeight, setKeepTogether, setKeepTogetherFormula, setStructElem, setSuppress, setSuppressFormula, setWidth, setX, setYVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
-
Methodendetails
-
setFontSize
public final void setFontSize(int newValue) Sets the value of the property 'font size'. Use this property to change the font format of the labels in this field element.- Angegeben von:
setFontSizein SchnittstelleFontProperties- Parameter:
newValue- The font size in points, e.g. 8.- Löst aus:
IllegalArgumentException- if newValue is negative- Seit:
- 6.0
-
getFontSize
public int getFontSize()Returns the value of the property 'font size', rounded to an integer(!). For full accuracy you will want to usegetFontSizeTwips()instead. Use this property to change the font format of the labels in this field element.- Angegeben von:
getFontSizein SchnittstelleFontProperties- Gibt zurück:
- The font size in points, rounded to an integer. For full accuracy you will want to use
getFontSizeTwips()instead. - Seit:
- 6.0
-
setFontSizeFormula
Sets the formula for the property 'font size'. Use this property to change the font format of the labels in this field element.- Angegeben von:
setFontSizeFormulain SchnittstelleFontProperties- Parameter:
newFormula- The new formula for the property 'font size'.- Seit:
- 6.0
-
getFontSizeFormula
Returns the formula for the property 'font size'. Use this property to change the font format of the labels in this field element.- Angegeben von:
getFontSizeFormulain SchnittstelleFontProperties- Gibt zurück:
FormulaFieldThe formula for the property 'font size'.- Seit:
- 6.0
- Siehe auch:
-
getFontName
Returns the value of the property 'font name'. Use this property to change the name of the font, used by the labels in this field element.- Angegeben von:
getFontNamein SchnittstelleFontProperties- Gibt zurück:
- The value of the property 'font name'.
- Seit:
- 6.0
-
setFontName
Sets the value of the property 'font name'. Use this property to change the name of the font, used by the labels in this field element.
The font name will be used when the font-mapping to symbolic fonts is switched off in the i-net Clear Reports configuration (see UseNativeFonts and FontPath= for PDF export)- Angegeben von:
setFontNamein SchnittstelleFontProperties- Parameter:
newValue- The new value of the property 'font name'.- Seit:
- 6.0
-
setFontNameFormula
Sets the formula for the property 'font name'. Use this property to change the name of the font, used by the labels in this field element.- Angegeben von:
setFontNameFormulain SchnittstelleFontProperties- Parameter:
newFormula- The formula for the property 'font name'.- Seit:
- 6.0
-
getFontNameFormula
Returns the formula for the property 'font name'. Use this property to change the name of the font, used by the labels in this field element.- Angegeben von:
getFontNameFormulain SchnittstelleFontProperties- Gibt zurück:
FormulaFieldThe formula for the property 'font name'.- Seit:
- 6.0
-
getFontStyle
public int getFontStyle()Returns the value of the property 'font style'. The 'font style' property represents the different styles of a font, which can be italic, underline and/or strike out.- Angegeben von:
getFontStylein SchnittstelleFontProperties- Gibt zurück:
- The value of the property 'font style', where
italic is represented by second bit of newValue,
underline by the third bit of newValue,
strikeout by the fourth bit of newValue. - Seit:
- 6.0
- Siehe auch:
-
setFontStyle
public final void setFontStyle(int fontStyle) Sets the value of the property 'font style'. The 'font style' property represents the different styles of a font, which can be cursive, underline and/or strike out.- Angegeben von:
setFontStylein SchnittstelleFontProperties- Parameter:
fontStyle- The new font style, where
bold is represented by the first bit,
cursive is represented by the second bit,
underline by the third bit,
strikeout by the fourth bit.- Seit:
- 6.0
- Siehe auch:
-
setFontStyleFormula
Sets the formula for the property 'font style'. The 'font style' property represents the different styles of a font, which can be cursive, underline and/or strike out.- Angegeben von:
setFontStyleFormulain SchnittstelleFontProperties- Parameter:
newFormula- The new formula for the property 'font style'. The result of the formula should be within the range from 0 to 15, where
bold is represented by the first bit,
cursive is represented by the second bit,
underline by the third bit,
strikeout by the fourth bit.- Seit:
- 6.0
-
getFontStyleFormula
Returns the formula for the property 'font style'. The 'font style' property represents the different styles of a font, which can be cursive, underline and/or strike out.- Angegeben von:
getFontStyleFormulain SchnittstelleFontProperties- Gibt zurück:
FormulaFieldThe formula for the property 'font style'.- Seit:
- 6.0
-
setItalic
public final void setItalic(boolean newValue) Sets the value of the property 'italic'. Use this property to toggle the font style of a text.- Angegeben von:
setItalicin SchnittstelleFontProperties- Parameter:
newValue- true if the property should be set, elsefalse- Seit:
- 6.0
- Siehe auch:
-
isItalic
public boolean isItalic()Returns whether the text in this element is italic or not.- Angegeben von:
isItalicin SchnittstelleFontProperties- Gibt zurück:
trueif the text is italic,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
isUnderline
public boolean isUnderline()Returns whether the text in this element is underlined or not.- Angegeben von:
isUnderlinein SchnittstelleFontProperties- Gibt zurück:
trueif the text is underlined,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
getUnderlineFormula
Returns the formula field for the property 'underline'.- Angegeben von:
getUnderlineFormulain SchnittstelleFontProperties- Gibt zurück:
- the formula field for the property 'underline'.
- Seit:
- 6.0
-
isStrikeout
public boolean isStrikeout()Returns whether the text in this element is struck through or not.- Angegeben von:
isStrikeoutin SchnittstelleFontProperties- Gibt zurück:
trueif the text is struck through,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
getStrikeoutFormula
Returns The formula field for the property 'strike out'.- Angegeben von:
getStrikeoutFormulain SchnittstelleFontProperties- Gibt zurück:
- The formula field for the property 'strike out'.
- Seit:
- 6.0
-
setUnderline
public final void setUnderline(boolean newValue) Sets the value of the property 'underline'. Use this property to underline a text.- Angegeben von:
setUnderlinein SchnittstelleFontProperties- Parameter:
newValue- true if the property should be set, elsefalse- Seit:
- 6.0
- Siehe auch:
-
setUnderlineFormula
Sets the formula field for the property 'underline'.- Angegeben von:
setUnderlineFormulain SchnittstelleFontProperties- Parameter:
newFormula- the formula field for the property 'underline'.- Seit:
- 6.0
-
setStrikeout
public final void setStrikeout(boolean newValue) Sets the value of the property 'strike out'. Use this property to strike out a text.- Angegeben von:
setStrikeoutin SchnittstelleFontProperties- Parameter:
newValue- true if the property should be set, elsefalse- Seit:
- 6.0
- Siehe auch:
-
setStrikeoutFormula
Set the formula field for the property 'strike out'.- Angegeben von:
setStrikeoutFormulain SchnittstelleFontProperties- Parameter:
newFormula- The formula field for the property 'strike out'.- Seit:
- 6.0
-
isBold
public boolean isBold()Returns whether the text in this element is bold or not.- Angegeben von:
isBoldin SchnittstelleFontProperties- Gibt zurück:
trueif the text is bold,falseotherwise.- Seit:
- 7.0
- Siehe auch:
-
setBold
public void setBold(boolean newValue) Sets the value of the property 'font bold'. Use this property to toggle the font style of a text.- Angegeben von:
setBoldin SchnittstelleFontProperties- Parameter:
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.- Seit:
- 6.0
- Siehe auch:
-
setFontColor
public void setFontColor(int newValue) Sets the value of the property 'font color'. Use this property to change the color of the font.- Angegeben von:
setFontColorin SchnittstelleFontProperties- Parameter:
newValue- The new value of the property 'font color'.- Seit:
- 6.0
-
setFontColorFormula
Sets the formula of the property 'font color'. Use this property to change the color of the font.- Angegeben von:
setFontColorFormulain SchnittstelleFontProperties- Parameter:
newFormula- The new formula for the property 'font color'.- Seit:
- 6.0
-
getFontColor
public int getFontColor()Returns the value of the property 'font color'. Use this property to change the color of the font.- Angegeben von:
getFontColorin SchnittstelleFontProperties- Gibt zurück:
- The value of the property 'font color'.
- Seit:
- 6.0
-
getFontColorFormula
Returns the formula for the property 'font color'. Use this property to change the color of the font.- Angegeben von:
getFontColorFormulain SchnittstelleFontProperties- Gibt zurück:
FormulaFieldThe formula for the property 'font color'.- Seit:
- 6.0
-
setFontSizeTwips
public void setFontSizeTwips(int newValue) Sets the value of the property 'font size'.- Angegeben von:
setFontSizeTwipsin SchnittstelleFontProperties- Parameter:
newValue- The font size in Twips.- Löst aus:
IllegalArgumentException- if newValue is negative- Seit:
- 6.0
-
getFontSizeTwips
public int getFontSizeTwips()Returns the value of the property 'font size' in Twips.- Angegeben von:
getFontSizeTwipsin SchnittstelleFontProperties- Gibt zurück:
- The font size in Twips.
- Seit:
- 6.0
-
getPropertyFormulas
Returns a list with all property formulas that are set for this report element. This includes property formulas for any type of sub-component but excludes formulas for any descendantReportComponentof this one. To get the property formulas for descendantReportComponentuseReportComponent.getSubComponents()- Setzt außer Kraft:
getPropertyFormulasin KlasseElement- Gibt zurück:
- List of property formulas
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLParses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Setzt außer Kraft:
parseElementin KlasseElement- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag- The XMLTag to be parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-