Klasse ChartTitle

java.lang.Object
com.inet.report.chart.ChartTitle
Alle implementierten Schnittstellen:
Serializable

public class ChartTitle extends Object implements Serializable
A chart title that displays a text string with defined font and color.
Seit:
8.0
Siehe auch:
  • Felddetails

  • Konstruktordetails

    • ChartTitle

      public ChartTitle(Font titleFont, int color)
      Creates a chart title with the given properties.
      Parameter:
      titleFont - the title font
      color - the title color
      Seit:
      8.0
  • Methodendetails

    • isShowAutoTitle

      public boolean isShowAutoTitle()
      Returns whether or not this title is to be an automatically generated label.
      Gibt zurück:
      whether or not this title is to be an automatically generated label
      Seit:
      8.0
      Siehe auch:
    • setShowAutoTitle

      public void setShowAutoTitle(boolean showAutoTitle)
      Sets whether or not this title is to be an automatically generated label.
      Parameter:
      showAutoTitle - whether or not the title is to be automatically generated
      Seit:
      8.0
      Siehe auch:
    • getTitle

      public String getTitle()
      Returns this title's text. If this title has been set to show an automatically generated label, this will show the automatically generated text, otherwise this will show the title set with setTitle.
      Gibt zurück:
      the title text
      Seit:
      8.0
      Siehe auch:
    • setTitle

      public void setTitle(String title)
      Sets this title.
      Note: to use this property turn off the showing of auto title.
      Parameter:
      title - the label (null not permitted)
      Seit:
      8.0
      Siehe auch:
    • getColor

      public int getColor()
      Returns the ABGR value of color for this title.
      Gibt zurück:
      the ABGR value representing the label color.
      Seit:
      8.0
      Siehe auch:
    • setColor

      public void setColor(int titleColor)
      Sets the ABGR value of color for this title.
      Parameter:
      titleColor - ABGR components of the color
      Löst aus:
      IllegalArgumentException - by RDC.COLOR_NO_COLOR.
      Seit:
      8.0
      Siehe auch:
    • getFont

      public Font getFont()
      Returns the font of the label.
      Gibt zurück:
      the font.
      Seit:
      8.0
      Siehe auch:
    • setFont

      public void setFont(Font titleFont)
      Sets the font of the label.
      Parameter:
      titleFont - the label font (null not permitted)
      Seit:
      8.0
      Siehe auch:
    • isEqualToDefault

      public boolean isEqualToDefault(ChartTitle defaultTitle)
      Returns true if this title is equal to default.
      Parameter:
      defaultTitle - the default title
      Gibt zurück:
      true if equal to default.
      Seit:
      8.0
    • saveProperties

      public void saveProperties(StringBuilder buffer, String type, int depth)
      Writes the properties of the title to PrintWriter.
      Parameter:
      buffer - the output
      type - the type of this title: header, footer or subtitle
      depth - the depth of XML indent
      Seit:
      8.0
      Siehe auch:
    • readProperties

      public void readProperties(Element element, Chart2 chart)
      Reads the XML properties of a chart title.
      Parameter:
      element - DOM element
      chart - the current chart
      Seit:
      8.0
      Siehe auch:
    • clone

      public ChartTitle clone()
      Setzt außer Kraft:
      clone in Klasse Object
    • setTitleFormula

      public void setTitleFormula(FormulaField titleFormula)
      Sets the formula which returns the title. Note that this formula is only used when showAutoTitle is off.
      Parameter:
      titleFormula - the formula foe the title
      Seit:
      i-net Clear Reports 12.0
    • getTitleFormula

      public FormulaField getTitleFormula()
      Returns the property formula for the chart title, if it is specified.
      Gibt zurück:
      the formula or can be null.
      Seit:
      i-net Clear Reports 12.0