Class XYChartExpression

java.lang.Object
org.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression
org.pentaho.plugin.jfreereport.reportcharts.XYChartExpression
All Implemented Interfaces:
Serializable, Cloneable, ChartExpression, org.pentaho.reporting.engine.classic.core.DynamicExpression, org.pentaho.reporting.engine.classic.core.function.Expression, org.pentaho.reporting.engine.classic.core.LegacyUpdateHandler
Direct Known Subclasses:
BubbleChartExpression, ScatterPlotChartExpression, XYBarChartExpression, XYLineChartExpression

public abstract class XYChartExpression extends AbstractChartExpression implements org.pentaho.reporting.engine.classic.core.LegacyUpdateHandler
This class allows you to embed xy charts into JFreeReport XML definitions.
Author:
gmoran
See Also:
  • Constructor Details

    • XYChartExpression

      protected XYChartExpression()
  • Method Details

    • isDomainAxisAutoRange

      public boolean isDomainAxisAutoRange()
    • setDomainAxisAutoRange

      public void setDomainAxisAutoRange(boolean domainAxisAutoRange)
    • isRangeAxisAutoRange

      public boolean isRangeAxisAutoRange()
    • setRangeAxisAutoRange

      public void setRangeAxisAutoRange(boolean rangeAxisAutoRange)
    • getDomainTimePeriod

      public Class getDomainTimePeriod()
    • setDomainTimePeriod

      public void setDomainTimePeriod(Class domainTimePeriod)
    • getRangeTimePeriod

      public Class getRangeTimePeriod()
    • setRangeTimePeriod

      public void setRangeTimePeriod(Class rangeTimePeriod)
    • isHumanReadableLogarithmicFormat

      public boolean isHumanReadableLogarithmicFormat()
    • setHumanReadableLogarithmicFormat

      public void setHumanReadableLogarithmicFormat(boolean humanReadableLogarithmicFormat)
    • isLogarithmicAxis

      public boolean isLogarithmicAxis()
    • setLogarithmicAxis

      public void setLogarithmicAxis(boolean logarithmicAxis)
    • getInstance

      public org.pentaho.reporting.engine.classic.core.function.Expression getInstance()
      Return a completly separated copy of this function. The copy does no longer share any changeable objects with the original function.
      Specified by:
      getInstance in interface org.pentaho.reporting.engine.classic.core.function.Expression
      Overrides:
      getInstance in class AbstractChartExpression
      Returns:
      a copy of this function.
    • isStacked

      public boolean isStacked()
      Returns:
      Returns the stacked.
    • setStacked

      public void setStacked(boolean stacked)
      Parameters:
      stacked - The stacked to set.
    • isDomainVerticalTickLabels

      public boolean isDomainVerticalTickLabels()
      Returns:
      Returns the verticalTickLabels.
    • setDomainVerticalTickLabels

      public void setDomainVerticalTickLabels(boolean domainVerticalTickLabels)
      Parameters:
      domainVerticalTickLabels - The domainVerticalLabels to set.
    • isDomainIncludesZero

      public boolean isDomainIncludesZero()
      Returns:
      Returns the domainIncludeZero.
    • setDomainIncludesZero

      public void setDomainIncludesZero(boolean domainIncludesZero)
      Parameters:
      domainIncludesZero - The domainIncludesZero to set.
    • isDomainStickyZero

      public boolean isDomainStickyZero()
      Returns:
      Returns the domainStickyZero.
    • setDomainStickyZero

      public void setDomainStickyZero(boolean domainStickyZero)
      Parameters:
      domainStickyZero - The domainStickyZero to set.
    • isRangeIncludesZero

      public boolean isRangeIncludesZero()
      Returns:
      Returns the rangeIncludeZero.
    • setRangeIncludesZero

      public void setRangeIncludesZero(boolean rangeIncludesZero)
      Parameters:
      rangeIncludesZero - The domainIncludesZero to set.
    • isRangeStickyZero

      public boolean isRangeStickyZero()
      Returns:
      Returns the rangeStickyZero.
    • setRangeStickyZero

      public void setRangeStickyZero(boolean rangeStickyZero)
      Parameters:
      rangeStickyZero - The rangeStickyZero to set.
    • setPlotBackgroundColor

      public void setPlotBackgroundColor(Color plotBackgroundPaint)
      Overrides:
      setPlotBackgroundColor in class AbstractChartExpression
    • getPlotBackgroundColor

      public Color getPlotBackgroundColor()
      Overrides:
      getPlotBackgroundColor in class AbstractChartExpression
    • setPlotBackgroundPaint

      public void setPlotBackgroundPaint(Paint plotBackgroundPaint)
      Deprecated.
      this property is declared but not used anywhere
      Parameters:
      plotBackgroundPaint -
    • getPlotBackgroundPaint

      public Paint getPlotBackgroundPaint()
      Deprecated.
      this property is declared but not used anywhere
    • isHorizontal

      public boolean isHorizontal()
    • setHorizontal

      public void setHorizontal(boolean value)
    • isBorderVisible

      public boolean isBorderVisible()
      Deprecated.
      Returns:
      Returns the borderVisible.
    • setBorderVisible

      public void setBorderVisible(boolean borderVisible)
      Deprecated.
      Parameters:
      borderVisible - The borderVisible to set.
    • getBorderPaint

      public Paint getBorderPaint()
      Deprecated.
      Is not used anywhere ...
      Returns:
      Returns the borderPaint.
    • setBorderPaint

      public void setBorderPaint(Paint borderPaint)
      Deprecated.
      is not used anywhere
      Parameters:
      borderPaint - The borderPaint to set.
    • getTitlePositionText

      public String getTitlePositionText()
    • setTitlePositionText

      public void setTitlePositionText(String titlePositionText)
    • getTitlePosition

      public org.jfree.ui.RectangleEdge getTitlePosition()
      Deprecated.
      Dont use that.
      Returns:
      Returns the titlePosition.
    • setTitlePosition

      public void setTitlePosition(org.jfree.ui.RectangleEdge titlePosition)
      Deprecated.
      Dont use that.
      Parameters:
      titlePosition - The titlePosition to set.
    • getDomainTitle

      public String getDomainTitle()
      Returns:
      Returns the domainTitle.
    • setDomainTitle

      public void setDomainTitle(String domainTitle)
      Parameters:
      domainTitle - The domainTitle to set.
    • getRangeTitle

      public String getRangeTitle()
      Returns:
      Returns the rangeTitle.
    • setRangeTitle

      public void setRangeTitle(String rangeTitle)
      Parameters:
      rangeTitle - The rangeTitle to set.
    • getDomainTitleFont

      public Font getDomainTitleFont()
      Returns:
      Returns the domainTitleFont.
    • setDomainTitleFont

      public void setDomainTitleFont(Font domainTitleFont)
      Parameters:
      domainTitleFont - The domainTitleFont to set.
    • getDomainTickFont

      public Font getDomainTickFont()
      Return the java.awt.Font to be used to display the range axis tick labels
      Returns:
      Font The Font for the range axis tick labels
    • setDomainTickFont

      public void setDomainTickFont(Font domainTickFont)
      Parameters:
      domainTickFont - The domainTickFont to set.
    • getDomainTickFormat

      public NumberFormat getDomainTickFormat()
      Returns:
      Returns the rangeTickFormat.
    • setDomainTickFormat

      public void setDomainTickFormat(NumberFormat domainTickFormat)
      Parameters:
      domainTickFormat - The range tick number format to set.
    • getRangeTitleFont

      public Font getRangeTitleFont()
      Returns:
      Returns the rangeTitleFont.
    • setRangeTitleFont

      public void setRangeTitleFont(Font rangeTitleFont)
      Parameters:
      rangeTitleFont - The rangeTitleFont to set.
    • getRangeTickFormat

      public NumberFormat getRangeTickFormat()
      Returns:
      Returns the rangeTickFormat.
    • setRangeTickFormat

      public void setRangeTickFormat(NumberFormat rangeTickFormat)
      Parameters:
      rangeTickFormat - The range tick number format to set.
    • getDomainTickFormatString

      public String getDomainTickFormatString()
    • setDomainTickFormatString

      public void setDomainTickFormatString(String domainTickFormatString)
    • getRangeTickFormatString

      public String getRangeTickFormatString()
    • setRangeTickFormatString

      public void setRangeTickFormatString(String rangeTickFormatString)
    • getRangeTickFont

      public Font getRangeTickFont()
      Return the java.awt.Font to be used to display the range axis tick labels
      Returns:
      Font The Font for the range axis tick labels
    • setRangeTickFont

      public void setRangeTickFont(Font rangeTickFont)
      Parameters:
      rangeTickFont - The rangeTitleFont to set.
    • getRangeMinimum

      public double getRangeMinimum()
      Return the range axis' minimum value
      Returns:
      double Range axis' minimum value
    • setRangeMinimum

      public void setRangeMinimum(double rangeMinimum)
      Parameters:
      rangeMinimum - Set the minimum value of the range axis.
    • getRangeMaximum

      public double getRangeMaximum()
      Return the range axis' maximum value
      Returns:
      double Range axis' maximum value
    • setRangeMaximum

      public void setRangeMaximum(double rangeMaximum)
      Parameters:
      rangeMaximum - Set the maximum value of the range axis.
    • getDomainMinimum

      public double getDomainMinimum()
      Return the domain axis' minimum value
      Returns:
      double domain axis' minimum value
    • setDomainMinimum

      public void setDomainMinimum(double domainMinimum)
      Parameters:
      domainMinimum - Set the minimum value of the domain axis.
    • getDomainMaximum

      public double getDomainMaximum()
      Return the domain axis' maximum value
      Returns:
      double domain axis' maximum value
    • setDomainMaximum

      public void setDomainMaximum(double domainMaximum)
      Parameters:
      domainMaximum - Set the maximum value of the domain axis.
    • computeChart

      protected org.jfree.chart.JFreeChart computeChart(org.jfree.data.general.Dataset dataset)
      Overrides:
      computeChart in class AbstractChartExpression
    • configureLogarithmicAxis

      protected void configureLogarithmicAxis(org.jfree.chart.plot.XYPlot plot)
    • computeXYChart

      protected org.jfree.chart.JFreeChart computeXYChart(org.jfree.data.xy.XYDataset xyDataset)
    • configureChart

      protected void configureChart(org.jfree.chart.JFreeChart chart)
      Overrides:
      configureChart in class AbstractChartExpression
    • computePlotOrientation

      protected org.jfree.chart.plot.PlotOrientation computePlotOrientation()
    • getSubtitles

      public List getSubtitles()
      Deprecated.
      Subtitles are not used.
      Returns:
      Returns the subTitles.
    • addSubTitle

      public void addSubTitle(String subTitle)
      Deprecated.
      Subtitles are not used.
    • getChart

      public org.jfree.chart.JFreeChart getChart(org.jfree.data.xy.XYDataset xyDataset)
      Deprecated.
      Not public, no getter
      Parameters:
      xyDataset -
      Returns:
    • isDisplayLabels

      public boolean isDisplayLabels()
      Deprecated.
      Not used anywhere. You might want to use "itemLabelVisible"
      Returns:
    • getDomainPeriodCount

      public double getDomainPeriodCount()
    • setDomainPeriodCount

      public void setDomainPeriodCount(double domainPeriodCount)
    • getRangePeriodCount

      public double getRangePeriodCount()
    • setRangePeriodCount

      public void setRangePeriodCount(double rangePeriodCount)
    • convertToTable

      protected ExtTimeTableXYDataset convertToTable(org.jfree.data.xy.XYDataset xyDataset)
    • convertToTable

      protected org.jfree.data.xy.TableXYDataset convertToTable(org.jfree.data.xy.XYSeriesCollection xyDataset)
    • reconfigureForCompatibility

      public void reconfigureForCompatibility(int versionTag)
      Specified by:
      reconfigureForCompatibility in interface org.pentaho.reporting.engine.classic.core.LegacyUpdateHandler