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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression
EMPTY_STROKE, LINE_STYLE_DASH_STR, LINE_STYLE_DASHDOT_STR, LINE_STYLE_DASHDOTDOT_STR, LINE_STYLE_DOT_STR, LINE_STYLE_SOLID_STR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXYChartExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSubTitle(String subTitle)Deprecated.Subtitles are not used.protected org.jfree.chart.JFreeChartcomputeChart(org.jfree.data.general.Dataset dataset)protected org.jfree.chart.plot.PlotOrientationcomputePlotOrientation()protected org.jfree.chart.JFreeChartcomputeXYChart(org.jfree.data.xy.XYDataset xyDataset)protected voidconfigureChart(org.jfree.chart.JFreeChart chart)protected voidconfigureLogarithmicAxis(org.jfree.chart.plot.XYPlot plot)protected ExtTimeTableXYDatasetconvertToTable(org.jfree.data.xy.XYDataset xyDataset)protected org.jfree.data.xy.TableXYDatasetconvertToTable(org.jfree.data.xy.XYSeriesCollection xyDataset)PaintgetBorderPaint()Deprecated.Is not used anywhere ...org.jfree.chart.JFreeChartgetChart(org.jfree.data.xy.XYDataset xyDataset)Deprecated.Not public, no getterdoublegetDomainMaximum()Return the domain axis' maximum valuedoublegetDomainMinimum()Return the domain axis' minimum valuedoublegetDomainPeriodCount()FontgetDomainTickFont()Return the java.awt.Font to be used to display the range axis tick labelsNumberFormatgetDomainTickFormat()StringgetDomainTickFormatString()ClassgetDomainTimePeriod()StringgetDomainTitle()FontgetDomainTitleFont()org.pentaho.reporting.engine.classic.core.function.ExpressiongetInstance()Return a completly separated copy of this function.ColorgetPlotBackgroundColor()PaintgetPlotBackgroundPaint()Deprecated.this property is declared but not used anywheredoublegetRangeMaximum()Return the range axis' maximum valuedoublegetRangeMinimum()Return the range axis' minimum valuedoublegetRangePeriodCount()FontgetRangeTickFont()Return the java.awt.Font to be used to display the range axis tick labelsNumberFormatgetRangeTickFormat()StringgetRangeTickFormatString()ClassgetRangeTimePeriod()StringgetRangeTitle()FontgetRangeTitleFont()ListgetSubtitles()Deprecated.Subtitles are not used.org.jfree.ui.RectangleEdgegetTitlePosition()Deprecated.Dont use that.StringgetTitlePositionText()booleanisBorderVisible()Deprecated.booleanisDisplayLabels()Deprecated.Not used anywhere.booleanisDomainAxisAutoRange()booleanisDomainIncludesZero()booleanisDomainStickyZero()booleanisDomainVerticalTickLabels()booleanisHorizontal()booleanisHumanReadableLogarithmicFormat()booleanisLogarithmicAxis()booleanisRangeAxisAutoRange()booleanisRangeIncludesZero()booleanisRangeStickyZero()booleanisStacked()voidreconfigureForCompatibility(int versionTag)voidsetBorderPaint(Paint borderPaint)Deprecated.is not used anywherevoidsetBorderVisible(boolean borderVisible)Deprecated.voidsetDomainAxisAutoRange(boolean domainAxisAutoRange)voidsetDomainIncludesZero(boolean domainIncludesZero)voidsetDomainMaximum(double domainMaximum)voidsetDomainMinimum(double domainMinimum)voidsetDomainPeriodCount(double domainPeriodCount)voidsetDomainStickyZero(boolean domainStickyZero)voidsetDomainTickFont(Font domainTickFont)voidsetDomainTickFormat(NumberFormat domainTickFormat)voidsetDomainTickFormatString(String domainTickFormatString)voidsetDomainTimePeriod(Class domainTimePeriod)voidsetDomainTitle(String domainTitle)voidsetDomainTitleFont(Font domainTitleFont)voidsetDomainVerticalTickLabels(boolean domainVerticalTickLabels)voidsetHorizontal(boolean value)voidsetHumanReadableLogarithmicFormat(boolean humanReadableLogarithmicFormat)voidsetLogarithmicAxis(boolean logarithmicAxis)voidsetPlotBackgroundColor(Color plotBackgroundPaint)voidsetPlotBackgroundPaint(Paint plotBackgroundPaint)Deprecated.this property is declared but not used anywherevoidsetRangeAxisAutoRange(boolean rangeAxisAutoRange)voidsetRangeIncludesZero(boolean rangeIncludesZero)voidsetRangeMaximum(double rangeMaximum)voidsetRangeMinimum(double rangeMinimum)voidsetRangePeriodCount(double rangePeriodCount)voidsetRangeStickyZero(boolean rangeStickyZero)voidsetRangeTickFont(Font rangeTickFont)voidsetRangeTickFormat(NumberFormat rangeTickFormat)voidsetRangeTickFormatString(String rangeTickFormatString)voidsetRangeTimePeriod(Class rangeTimePeriod)voidsetRangeTitle(String rangeTitle)voidsetRangeTitleFont(Font rangeTitleFont)voidsetStacked(boolean stacked)voidsetTitlePosition(org.jfree.ui.RectangleEdge titlePosition)Deprecated.Dont use that.voidsetTitlePositionText(String titlePositionText)-
Methods inherited from class org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression
addExpression, computeTitle, getBackgroundColor, getBackgroundImage, getBorderColor, getChartDirectory, getChartFile, getChartFromCache, getChartHeight, getChartUrlMask, getChartWidth, getColorFromString, getDataSource, getDependencyLevel, getExpressionMap, getHyperlinkFormulas, getItemLabelFont, getItemsLabelVisible, getLabelFont, getLegendBackgroundColor, getLegendFont, getLegendLocation, getLegendTextColor, getNoDataMessage, getPlotBackgroundAlpha, getPlotForegroundAlpha, getPossibleExpressionStringValue, getPostProcessingLanguage, getPostProcessingScript, getSeriesColor, getSeriesColor, getSeriesColorCount, getSeriesColors, getTitle, getTitleField, getTitleFont, getTitleText, getTooltipFormula, getUrlFormula, getValue, isAntiAlias, isChartSectionOutline, isDrawLegendBorder, isReturnFileNameOnly, isReturnImageReference, isShowBorder, isShowLegend, isThreeD, isUseDrawable, loadChartFromCache, parseColorFromString, postProcessChart, putChartInCache, removeExpression, setAntiAlias, setBackgroundColor, setBackgroundImage, setBorderColor, setChartDirectory, setChartFile, setChartHeight, setChartSectionOutline, setChartUrlMask, setChartWidth, setDataSource, setDependencyLevel, setDrawLegendBorder, setExpressionMap, setItemLabelFont, setItemsLabelVisible, setLabelFont, setLegendBackgroundColor, setLegendFont, setLegendLocation, setLegendTextColor, setNoDataMessage, setPlotBackgroundAlpha, setPlotForegroundAlpha, setPostProcessingLanguage, setPostProcessingScript, setReturnFileNameOnly, setReturnImageReference, setSeriesColor, setSeriesColor, setShowBorder, setShowLegend, setThreeD, setTitle, setTitleField, setTitleFont, setTitleText, setTooltipFormula, setUrlFormula, setUseDrawable, standardTickUnitsApplyFormat, storeChartInCache, translateEdge, translateLineStyle
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setName, setPreserve, setRuntime
-
-
-
-
Method Detail
-
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:
getInstancein interfaceorg.pentaho.reporting.engine.classic.core.function.Expression- Overrides:
getInstancein classAbstractChartExpression- 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:
setPlotBackgroundColorin classAbstractChartExpression
-
getPlotBackgroundColor
public Color getPlotBackgroundColor()
- Overrides:
getPlotBackgroundColorin classAbstractChartExpression
-
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:
computeChartin classAbstractChartExpression
-
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:
configureChartin classAbstractChartExpression
-
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:
reconfigureForCompatibilityin interfaceorg.pentaho.reporting.engine.classic.core.LegacyUpdateHandler
-
-