Klasse AbstractFontElement

Alle implementierten Schnittstellen:
FontProperties, GeneralProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
Bekannte direkte Unterklassen:
AbstractValueElement, JavaBean, Subreport, TextPart

public abstract class AbstractFontElement extends Element implements FontProperties
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:
  • 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:
      setFontSize in Schnittstelle FontProperties
      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 use getFontSizeTwips() instead. Use this property to change the font format of the labels in this field element.
      Angegeben von:
      getFontSize in Schnittstelle FontProperties
      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

      public final void setFontSizeFormula(FormulaField newFormula)
      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:
      setFontSizeFormula in Schnittstelle FontProperties
      Parameter:
      newFormula - The new formula for the property 'font size'.
      Seit:
      6.0
    • getFontSizeFormula

      public FormulaField 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:
      getFontSizeFormula in Schnittstelle FontProperties
      Gibt zurück:
      FormulaField The formula for the property 'font size'.
      Seit:
      6.0
      Siehe auch:
    • getFontName

      public String 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:
      getFontName in Schnittstelle FontProperties
      Gibt zurück:
      The value of the property 'font name'.
      Seit:
      6.0
    • setFontName

      public final void setFontName(String newValue)
      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:
      setFontName in Schnittstelle FontProperties
      Parameter:
      newValue - The new value of the property 'font name'.
      Seit:
      6.0
    • setFontNameFormula

      public final void setFontNameFormula(FormulaField newFormula)
      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:
      setFontNameFormula in Schnittstelle FontProperties
      Parameter:
      newFormula - The formula for the property 'font name'.
      Seit:
      6.0
    • getFontNameFormula

      public FormulaField 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:
      getFontNameFormula in Schnittstelle FontProperties
      Gibt zurück:
      FormulaField The 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:
      getFontStyle in Schnittstelle FontProperties
      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:
      setFontStyle in Schnittstelle FontProperties
      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

      public final void setFontStyleFormula(FormulaField newFormula)
      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:
      setFontStyleFormula in Schnittstelle FontProperties
      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

      public FormulaField 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:
      getFontStyleFormula in Schnittstelle FontProperties
      Gibt zurück:
      FormulaField The 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:
      setItalic in Schnittstelle FontProperties
      Parameter:
      newValue - true if the property should be set, else false
      Seit:
      6.0
      Siehe auch:
    • isItalic

      public boolean isItalic()
      Returns whether the text in this element is italic or not.
      Angegeben von:
      isItalic in Schnittstelle FontProperties
      Gibt zurück:
      true if the text is italic, false otherwise.
      Seit:
      7.0
      Siehe auch:
    • isUnderline

      public boolean isUnderline()
      Returns whether the text in this element is underlined or not.
      Angegeben von:
      isUnderline in Schnittstelle FontProperties
      Gibt zurück:
      true if the text is underlined, false otherwise.
      Seit:
      7.0
      Siehe auch:
    • getUnderlineFormula

      public FormulaField getUnderlineFormula()
      Returns the formula field for the property 'underline'.
      Angegeben von:
      getUnderlineFormula in Schnittstelle FontProperties
      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:
      isStrikeout in Schnittstelle FontProperties
      Gibt zurück:
      true if the text is struck through, false otherwise.
      Seit:
      7.0
      Siehe auch:
    • getStrikeoutFormula

      public FormulaField getStrikeoutFormula()
      Returns The formula field for the property 'strike out'.
      Angegeben von:
      getStrikeoutFormula in Schnittstelle FontProperties
      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:
      setUnderline in Schnittstelle FontProperties
      Parameter:
      newValue - true if the property should be set, else false
      Seit:
      6.0
      Siehe auch:
    • setUnderlineFormula

      public final void setUnderlineFormula(FormulaField newFormula)
      Sets the formula field for the property 'underline'.
      Angegeben von:
      setUnderlineFormula in Schnittstelle FontProperties
      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:
      setStrikeout in Schnittstelle FontProperties
      Parameter:
      newValue - true if the property should be set, else false
      Seit:
      6.0
      Siehe auch:
    • setStrikeoutFormula

      public final void setStrikeoutFormula(FormulaField newFormula)
      Set the formula field for the property 'strike out'.
      Angegeben von:
      setStrikeoutFormula in Schnittstelle FontProperties
      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:
      isBold in Schnittstelle FontProperties
      Gibt zurück:
      true if the text is bold, false otherwise.
      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:
      setBold in Schnittstelle FontProperties
      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:
      setFontColor in Schnittstelle FontProperties
      Parameter:
      newValue - The new value of the property 'font color'.
      Seit:
      6.0
    • setFontColorFormula

      public void setFontColorFormula(FormulaField newFormula)
      Sets the formula of the property 'font color'. Use this property to change the color of the font.
      Angegeben von:
      setFontColorFormula in Schnittstelle FontProperties
      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:
      getFontColor in Schnittstelle FontProperties
      Gibt zurück:
      The value of the property 'font color'.
      Seit:
      6.0
    • getFontColorFormula

      public FormulaField getFontColorFormula()
      Returns the formula for the property 'font color'. Use this property to change the color of the font.
      Angegeben von:
      getFontColorFormula in Schnittstelle FontProperties
      Gibt zurück:
      FormulaField The 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:
      setFontSizeTwips in Schnittstelle FontProperties
      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:
      getFontSizeTwips in Schnittstelle FontProperties
      Gibt zurück:
      The font size in Twips.
      Seit:
      6.0
    • getPropertyFormulas

      public List<FormulaField> 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 descendant ReportComponent of this one. To get the property formulas for descendant ReportComponent use ReportComponent.getSubComponents()
      Setzt außer Kraft:
      getPropertyFormulas in Klasse Element
      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 FatalParserException
      FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY 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.

      Angegeben von:
      parseElement in Schnittstelle NodeParser
      Setzt außer Kraft:
      parseElement in Klasse Element
      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 parsed
      atts - The set of attributes in the current XMLTag
      parserMap - 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.