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:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubTitle
(String subTitle) Deprecated.Subtitles are not used.protected org.jfree.chart.JFreeChart
computeChart
(org.jfree.data.general.Dataset dataset) protected org.jfree.chart.plot.PlotOrientation
protected org.jfree.chart.JFreeChart
computeXYChart
(org.jfree.data.xy.XYDataset xyDataset) protected void
configureChart
(org.jfree.chart.JFreeChart chart) protected void
configureLogarithmicAxis
(org.jfree.chart.plot.XYPlot plot) protected ExtTimeTableXYDataset
convertToTable
(org.jfree.data.xy.XYDataset xyDataset) protected org.jfree.data.xy.TableXYDataset
convertToTable
(org.jfree.data.xy.XYSeriesCollection xyDataset) Deprecated.Is not used anywhere ...org.jfree.chart.JFreeChart
getChart
(org.jfree.data.xy.XYDataset xyDataset) Deprecated.Not public, no getterdouble
Return the domain axis' maximum valuedouble
Return the domain axis' minimum valuedouble
Return the java.awt.Font to be used to display the range axis tick labelsorg.pentaho.reporting.engine.classic.core.function.Expression
Return a completly separated copy of this function.Deprecated.this property is declared but not used anywheredouble
Return the range axis' maximum valuedouble
Return the range axis' minimum valuedouble
Return the java.awt.Font to be used to display the range axis tick labelsDeprecated.Subtitles are not used.org.jfree.ui.RectangleEdge
Deprecated.Dont use that.boolean
Deprecated.boolean
Deprecated.Not used anywhere.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
reconfigureForCompatibility
(int versionTag) void
setBorderPaint
(Paint borderPaint) Deprecated.is not used anywherevoid
setBorderVisible
(boolean borderVisible) Deprecated.void
setDomainAxisAutoRange
(boolean domainAxisAutoRange) void
setDomainIncludesZero
(boolean domainIncludesZero) void
setDomainMaximum
(double domainMaximum) void
setDomainMinimum
(double domainMinimum) void
setDomainPeriodCount
(double domainPeriodCount) void
setDomainStickyZero
(boolean domainStickyZero) void
setDomainTickFont
(Font domainTickFont) void
setDomainTickFormat
(NumberFormat domainTickFormat) void
setDomainTickFormatString
(String domainTickFormatString) void
setDomainTimePeriod
(Class domainTimePeriod) void
setDomainTitle
(String domainTitle) void
setDomainTitleFont
(Font domainTitleFont) void
setDomainVerticalTickLabels
(boolean domainVerticalTickLabels) void
setHorizontal
(boolean value) void
setHumanReadableLogarithmicFormat
(boolean humanReadableLogarithmicFormat) void
setLogarithmicAxis
(boolean logarithmicAxis) void
setPlotBackgroundColor
(Color plotBackgroundPaint) void
setPlotBackgroundPaint
(Paint plotBackgroundPaint) Deprecated.this property is declared but not used anywherevoid
setRangeAxisAutoRange
(boolean rangeAxisAutoRange) void
setRangeIncludesZero
(boolean rangeIncludesZero) void
setRangeMaximum
(double rangeMaximum) void
setRangeMinimum
(double rangeMinimum) void
setRangePeriodCount
(double rangePeriodCount) void
setRangeStickyZero
(boolean rangeStickyZero) void
setRangeTickFont
(Font rangeTickFont) void
setRangeTickFormat
(NumberFormat rangeTickFormat) void
setRangeTickFormatString
(String rangeTickFormatString) void
setRangeTimePeriod
(Class rangeTimePeriod) void
setRangeTitle
(String rangeTitle) void
setRangeTitleFont
(Font rangeTitleFont) void
setStacked
(boolean stacked) void
setTitlePosition
(org.jfree.ui.RectangleEdge titlePosition) Deprecated.Dont use that.void
setTitlePositionText
(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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression
clone, getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setName, setRuntime
-
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
-
setDomainTimePeriod
-
getRangeTimePeriod
-
setRangeTimePeriod
-
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 interfaceorg.pentaho.reporting.engine.classic.core.function.Expression
- Overrides:
getInstance
in 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
- Overrides:
setPlotBackgroundColor
in classAbstractChartExpression
-
getPlotBackgroundColor
- Overrides:
getPlotBackgroundColor
in classAbstractChartExpression
-
setPlotBackgroundPaint
Deprecated.this property is declared but not used anywhere- Parameters:
plotBackgroundPaint
-
-
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
Deprecated.Is not used anywhere ...- Returns:
- Returns the borderPaint.
-
setBorderPaint
Deprecated.is not used anywhere- Parameters:
borderPaint
- The borderPaint to set.
-
getTitlePositionText
-
setTitlePositionText
-
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
- Returns:
- Returns the domainTitle.
-
setDomainTitle
- Parameters:
domainTitle
- The domainTitle to set.
-
getRangeTitle
- Returns:
- Returns the rangeTitle.
-
setRangeTitle
- Parameters:
rangeTitle
- The rangeTitle to set.
-
getDomainTitleFont
- Returns:
- Returns the domainTitleFont.
-
setDomainTitleFont
- Parameters:
domainTitleFont
- The domainTitleFont to set.
-
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
- Parameters:
domainTickFont
- The domainTickFont to set.
-
getDomainTickFormat
- Returns:
- Returns the rangeTickFormat.
-
setDomainTickFormat
- Parameters:
domainTickFormat
- The range tick number format to set.
-
getRangeTitleFont
- Returns:
- Returns the rangeTitleFont.
-
setRangeTitleFont
- Parameters:
rangeTitleFont
- The rangeTitleFont to set.
-
getRangeTickFormat
- Returns:
- Returns the rangeTickFormat.
-
setRangeTickFormat
- Parameters:
rangeTickFormat
- The range tick number format to set.
-
getDomainTickFormatString
-
setDomainTickFormatString
-
getRangeTickFormatString
-
setRangeTickFormatString
-
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
- 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 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:
configureChart
in classAbstractChartExpression
-
computePlotOrientation
protected org.jfree.chart.plot.PlotOrientation computePlotOrientation() -
getSubtitles
Deprecated.Subtitles are not used.- Returns:
- Returns the subTitles.
-
addSubTitle
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
-
convertToTable
protected org.jfree.data.xy.TableXYDataset convertToTable(org.jfree.data.xy.XYSeriesCollection xyDataset) -
reconfigureForCompatibility
public void reconfigureForCompatibility(int versionTag) - Specified by:
reconfigureForCompatibility
in interfaceorg.pentaho.reporting.engine.classic.core.LegacyUpdateHandler
-