Schnittstelle FontProperties

Alle bekannten Implementierungsklassen:
AbstractFontElement, AbstractValueElement, FieldElement, FieldPart, JavaBean, Subreport, TextPart

public interface FontProperties
Interface for elements that displays text formatted with fonts.

This class is part of the RDC.
Seit:
6.0
  • Felddetails

    • FONT_SANS_SERIF

      static final String FONT_SANS_SERIF
      Constant for the logical font SansSerif (e.g. Arial).
      Siehe auch:
    • FONT_SERIF

      static final String FONT_SERIF
      Constant for the logical font Serif (e.g. Times).
      Siehe auch:
    • FONT_MONOSPACED

      static final String FONT_MONOSPACED
      Constant for the logical font Monospace (e.g. Courier New).
      Siehe auch:
    • FONT_DIALOG

      static final String FONT_DIALOG
      Constant for the logical font Dialog.
      Siehe auch:
    • FONT_STYLE_BOLD

      static final int FONT_STYLE_BOLD
      Constant for the font style bold
      Siehe auch:
    • FONT_STYLE_ITALIC

      static final int FONT_STYLE_ITALIC
      Constant for the font style italic
      Siehe auch:
    • FONT_STYLE_UNDERLINE

      static final int FONT_STYLE_UNDERLINE
      Constant for the font style underline
      Siehe auch:
    • FONT_STYLE_STRIKETHROUGH

      static final int FONT_STYLE_STRIKETHROUGH
      Constant 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

      void setFontSizeFormula(FormulaField newFormula)
      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 FormulaField for the font size.
      Seit:
      6.0
      Siehe auch:
    • setFontName

      void setFontName(String newValue)
      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

      void setFontNameFormula(FormulaField newFormula)
      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 FormulaField for 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

      void setFontStyleFormula(FormulaField newFormula)
      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 FormulaField for 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 - true if the text is to be italic, false otherwise.
      Seit:
      6.0
      Siehe auch:
    • isItalic

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

      boolean isUnderline()
      Returns whether the text in this element is underlined or not.
      Gibt zurück:
      true if the text is underlined, false otherwise.
      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:
      true if the text is struck through, false otherwise.
      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 - true if the text is to be underlined, false otherwise.
      Seit:
      6.0
      Siehe auch:
    • setUnderlineFormula

      void setUnderlineFormula(FormulaField newFormula)
      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 - true if the text is to be struck through, false otherwise.
      Seit:
      6.0
      Siehe auch:
    • setStrikeoutFormula

      void setStrikeoutFormula(FormulaField newFormula)
      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:
      true if the text is bold, false otherwise.
      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 - true if the text is to be bold, false otherwise.
      Seit:
      6.0
      Siehe auch:
    • setFontColor

      void setFontColor(int abgr)
      Sets the font color for the text in this element to the given ABGR value.
      Parameter:
      abgr - The new value to set as the font color for the text
      Seit:
      6.0
    • setFontColorFormula

      void setFontColorFormula(FormulaField newFormula)
      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 ABGR value.
      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