|
i-net Crystal-Clear | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractFontElement
public abstract class AbstractFontElement
The abstract class AbstractFontElement implements
FontProperties class and extends Element. Inherit
from this class to support ElementS that receive Font properties.
Element,
FontProperties,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.inet.report.Element |
|---|
BOX, CHART, CROSSTAB, CROSSTABCELL, CROSSTABCOLUMN, CROSSTABROW, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPART |
| Fields inherited from interface com.inet.report.FontProperties |
|---|
FONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINE |
| Fields inherited from interface com.inet.report.BorderProperties |
|---|
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE |
| Fields inherited from interface com.inet.report.GeneralProperties |
|---|
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT |
| Method Summary | |
|---|---|
int |
getFontColor()
Gets the value of the property 'font color'. |
FormulaField |
getFontColorFormula()
Gets the formula for the property 'font color'. |
java.lang.String |
getFontName()
Gets the value of the property 'font name'. |
FormulaField |
getFontNameFormula()
Gets the formula for the property 'font name'. |
int |
getFontSize()
Gets the value of the property 'font size'. |
FormulaField |
getFontSizeFormula()
Gets the formula for the property 'font size'. |
int |
getFontSizeTwips()
Gets the value of the property 'font size' in Twips. |
int |
getFontStyle()
Gets the value of the property 'font style'. |
FormulaField |
getFontStyleFormula()
Gets the formula for the property 'font style'. |
java.util.List |
getPropertyFormulas()
Returns a list with all property formulas that are set for this element. |
FormulaField |
getStrikeoutFormula()
Returns The formula field for the property 'strikeout'. |
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. |
NodeParser |
parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
FOR INTERNAL USE ONLY Internal method for reading report XML Parses 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. |
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 'strikeout'. |
void |
setStrikeoutFormula(FormulaField newFormula)
Set the formula field for the property 'strikeout'. |
void |
setUnderline(boolean newValue)
Sets the value of the property 'underline'. |
void |
setUnderlineFormula(FormulaField newFormula)
Sets the formula field for the property 'underline'. |
| Methods inherited from class com.inet.report.ReportComponent |
|---|
getBackColor, getBackColorFormula, getCustomData, getHeight, getKeepTogetherFormula, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setCustomData, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY |
| Methods inherited from interface com.inet.report.BorderProperties |
|---|
getBackColor, getBackColorFormula, setBackColor, setBackColorFormula |
| Methods inherited from interface com.inet.report.GeneralProperties |
|---|
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula |
| Methods inherited from interface com.inet.report.parser.NodeParser |
|---|
isDOMParser, parseDOM, parseEndElement |
| Method Detail |
|---|
public final void setFontSize(int newValue)
setFontSize in interface FontPropertiesnewValue - The font size in points, i.e. 8.
java.lang.IllegalArgumentException - if newValue is negativepublic int getFontSize()
getFontSize in interface FontPropertiespublic final void setFontSizeFormula(FormulaField newFormula)
setFontSizeFormula in interface FontPropertiesnewFormula - The new formula for the property 'font size'.public FormulaField getFontSizeFormula()
getFontSizeFormula in interface FontPropertiesFormulaField The formula for the property 'font size'.FormulaFieldpublic java.lang.String getFontName()
getFontName in interface FontPropertiespublic final void setFontName(java.lang.String newValue)
setFontName in interface FontPropertiesnewValue - The new value of the property 'font name'.public final void setFontNameFormula(FormulaField newFormula)
setFontNameFormula in interface FontPropertiesnewFormula - The formula for the property 'font name'.public FormulaField getFontNameFormula()
getFontNameFormula in interface FontPropertiesFormulaField The formula for the property 'font name'.public int getFontStyle()
getFontStyle in interface FontPropertiesFontProperties.FONT_STYLE_BOLD,
FontProperties.FONT_STYLE_ITALIC,
FontProperties.FONT_STYLE_UNDERLINE,
FontProperties.FONT_STYLE_STRIKETHROUGHpublic final void setFontStyle(int fontStyle)
setFontStyle in interface FontPropertiesfontStyle - The new font style, whereFontProperties.FONT_STYLE_BOLD,
FontProperties.FONT_STYLE_ITALIC,
FontProperties.FONT_STYLE_UNDERLINE,
FontProperties.FONT_STYLE_STRIKETHROUGHpublic final void setFontStyleFormula(FormulaField newFormula)
setFontStyleFormula in interface FontPropertiesnewFormula - 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 FontPropertiesFormulaField The formula for the property 'font style'.public final void setItalic(boolean newValue)
setItalic in interface FontPropertiesnewValue - true if the property should be set, else false- See Also:
setFontStyleFormula(com.inet.report.FormulaField)public boolean isItalic()
isItalic in interface FontPropertiestrue if the text is italic, false otherwise.FontProperties.setFontStyle(int)public boolean isUnderline()
isUnderline in interface FontPropertiestrue if the text is underlined, false otherwise.FontProperties.setFontStyle(int)public FormulaField getUnderlineFormula()
getUnderlineFormula in interface FontPropertiespublic boolean isStrikeout()
isStrikeout in interface FontPropertiestrue if the text is struck through, false otherwise.FontProperties.setFontStyle(int)public FormulaField getStrikeoutFormula()
getStrikeoutFormula in interface FontPropertiespublic final void setUnderline(boolean newValue)
setUnderline in interface FontPropertiesnewValue - true if the property should be set, else false- See Also:
FontProperties.setFontStyle(int)public final void setUnderlineFormula(FormulaField newFormula)
setUnderlineFormula in interface FontPropertiesnewFormula - the formula field for the property 'underline'.public final void setStrikeout(boolean newValue)
setStrikeout in interface FontPropertiesnewValue - true if the property should be set, else false- See Also:
FontProperties.setFontStyle(int)public final void setStrikeoutFormula(FormulaField newFormula)
setStrikeoutFormula in interface FontPropertiesnewFormula - The formula field for the property 'strikeout'.public boolean isBold()
isBold in interface FontPropertiestrue if the text is bold, false otherwise.FontProperties.setFontStyle(int)public final void setBold(boolean newValue)
setBold in interface FontPropertiesnewValue - 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 final void setFontColor(int newValue)
setFontColor in interface FontPropertiesnewValue - The new value of the property 'font color'.public final void setFontColorFormula(FormulaField newFormula)
setFontColorFormula in interface FontPropertiesnewFormula - The new formula for the property 'font color'.public int getFontColor()
getFontColor in interface FontPropertiespublic FormulaField getFontColorFormula()
getFontColorFormula in interface FontPropertiesFormulaField The formula for the property 'font color'.public final void setFontSizeTwips(int newValue)
setFontSizeTwips in interface FontPropertiesnewValue - The font size in Twips.
java.lang.IllegalArgumentException - if newValue is negativepublic int getFontSizeTwips()
getFontSizeTwips in interface FontPropertiespublic java.util.List getPropertyFormulas()
getPropertyFormulas in class Element
public NodeParser parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map parserMap)
throws FatalParserException
Parses 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.
parseElement in interface NodeParserparseElement in class Elementgroup - 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.
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.
|
i-net Crystal-Clear | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||