Class AbstractChartExpression
java.lang.Object
org.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression
- All Implemented Interfaces:
Serializable
,Cloneable
,ChartExpression
,org.pentaho.reporting.engine.classic.core.DynamicExpression
,org.pentaho.reporting.engine.classic.core.function.Expression
- Direct Known Subclasses:
CategoricalChartExpression
,MultiPieChartExpression
,PieChartExpression
,RadarChartExpression
,ThermometerChartExpression
,XYChartExpression
public abstract class AbstractChartExpression
extends org.pentaho.reporting.engine.classic.core.function.AbstractExpression
implements ChartExpression, org.pentaho.reporting.engine.classic.core.DynamicExpression
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpression
(String property, org.pentaho.reporting.engine.classic.core.function.Expression e) protected org.jfree.chart.JFreeChart
computeChart
(org.jfree.data.general.Dataset dataset) protected String
protected void
configureChart
(org.jfree.chart.JFreeChart chart) Deprecated.This property is no longer used.Deprecated.This property is no longer used.org.jfree.chart.JFreeChart
getChartFromCache
(Object key) Deprecated.This method should not be public and should check for null-values.int
Deprecated.This property is no longer used.Deprecated.This property is no longer used.int
Deprecated.This property is no longer used.protected Color
getColorFromString
(String colStr) Deprecated.This is no getter and therefor should not call itself a getter.int
Overrides the dependency level to only execute this function on the pagination and content-generation level.String[]
org.pentaho.reporting.engine.classic.core.function.Expression
Return a completly separated copy of this function.float
float
getPossibleExpressionStringValue
(String lookupValue) Deprecated.This method should not be public and is part of a messed up title-semantic.String[]
getSeriesColor
(int index) int
Deprecated.use bean accessors instead: getSeriesColor(), getSeriesColor(int index)getTitle()
Deprecated.The semantics of this property is all messed up and thus we can only deprecate it.getValue()
boolean
boolean
boolean
boolean
Deprecated.This property is no longer used.boolean
Deprecated.This property is no longer used.boolean
boolean
boolean
isThreeD()
boolean
Deprecated.This property should no longer be defined manually.protected org.jfree.chart.JFreeChart
loadChartFromCache
(Object key) protected Color
parseColorFromString
(String colStr) protected org.jfree.chart.JFreeChart
postProcessChart
(org.jfree.chart.JFreeChart originalChart) void
putChartInCache
(org.jfree.chart.JFreeChart chart, Object key) Deprecated.This method should not be public and should check for null-values.void
removeExpression
(String property) void
setAntiAlias
(boolean value) void
setBackgroundColor
(String value) void
setBackgroundImage
(String value) void
setBorderColor
(String value) void
setChartDirectory
(String value) Deprecated.This property is no longer used.void
setChartFile
(String value) Deprecated.This property is no longer used.void
setChartHeight
(int value) Deprecated.This property is no longer used.void
setChartSectionOutline
(boolean value) void
setChartUrlMask
(String value) Deprecated.This property is no longer used.void
setChartWidth
(int value) Deprecated.This property is no longer used.void
setDataSource
(String dataSource) void
setDependencyLevel
(int ignored) void
setDrawLegendBorder
(boolean value) void
setExpressionMap
(Map<String, org.pentaho.reporting.engine.classic.core.function.Expression> values) void
setItemLabelFont
(Font itemLabelFont) void
setItemsLabelVisible
(Boolean itemsLabelVisible) void
setLabelFont
(String value) void
setLegendBackgroundColor
(Color legendBackgroundColor) void
setLegendFont
(String value) void
setLegendLocation
(String value) void
setLegendTextColor
(Color legendTextColor) void
setNoDataMessage
(String noDataMessage) void
setPlotBackgroundAlpha
(float plotBackgroundAlpha) void
setPlotBackgroundColor
(Color plotBackgroundColor) void
setPlotForegroundAlpha
(float plotForegroundAlpha) void
setPostProcessingLanguage
(String postProcessingLanguage) void
setPostProcessingScript
(String postProcessingScript) void
setReturnFileNameOnly
(boolean value) Deprecated.This property is no longer used.void
setReturnImageReference
(boolean value) Deprecated.This property is no longer used.void
setSeriesColor
(int index, String field) void
setSeriesColor
(String[] fields) void
setShowBorder
(boolean value) void
setShowLegend
(boolean value) void
setThreeD
(boolean value) void
Deprecated.The semantics of this property is all messed up and thus we can only deprecate it.void
setTitleField
(String titleField) void
setTitleFont
(String value) void
setTitleText
(String titleText) void
setTooltipFormula
(String tooltipFormula) void
setUrlFormula
(String urlFormula) void
setUseDrawable
(boolean value) Deprecated.This property should no longer be defined manually.protected void
standardTickUnitsApplyFormat
(org.jfree.chart.axis.NumberAxis numberAxis, NumberFormat format) Reduces standard tick unit array to meet formatting precision and avoid duplicated values (PRD-5821)protected void
storeChartInCache
(Object key, org.jfree.chart.JFreeChart chart) protected org.jfree.ui.RectangleEdge
translateEdge
(String edge) static Stroke
translateLineStyle
(float lineWidth, String lineStyle) 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
-
Field Details
-
LINE_STYLE_SOLID_STR
- See Also:
-
LINE_STYLE_DASH_STR
- See Also:
-
LINE_STYLE_DOT_STR
- See Also:
-
LINE_STYLE_DASHDOT_STR
- See Also:
-
LINE_STYLE_DASHDOTDOT_STR
- See Also:
-
EMPTY_STROKE
-
-
Constructor Details
-
AbstractChartExpression
protected AbstractChartExpression()
-
-
Method Details
-
getItemLabelFont
-
setItemLabelFont
-
getTooltipFormula
-
setTooltipFormula
-
getUrlFormula
-
setUrlFormula
-
getPostProcessingLanguage
-
setPostProcessingLanguage
-
getPostProcessingScript
-
setPostProcessingScript
-
getLegendBackgroundColor
-
setLegendBackgroundColor
-
getLegendTextColor
-
setLegendTextColor
-
getPlotForegroundAlpha
public float getPlotForegroundAlpha() -
setPlotForegroundAlpha
public void setPlotForegroundAlpha(float plotForegroundAlpha) -
getPlotBackgroundAlpha
public float getPlotBackgroundAlpha() -
setPlotBackgroundAlpha
public void setPlotBackgroundAlpha(float plotBackgroundAlpha) -
getPlotBackgroundColor
-
setPlotBackgroundColor
-
getTitleFont
-
setTitleFont
-
getLegendFont
-
setLegendFont
-
getLabelFont
-
setLabelFont
-
getDataSource
- Specified by:
getDataSource
in interfaceChartExpression
-
setDataSource
- Specified by:
setDataSource
in interfaceChartExpression
-
getHyperlinkFormulas
- Specified by:
getHyperlinkFormulas
in interfaceChartExpression
-
getTitleField
-
setTitleField
-
getTitleText
-
setTitleText
-
isAntiAlias
public boolean isAntiAlias() -
setAntiAlias
public void setAntiAlias(boolean value) -
getBorderColor
-
setBorderColor
-
getBackgroundColor
-
setBackgroundColor
-
isShowBorder
public boolean isShowBorder() -
setShowBorder
public void setShowBorder(boolean value) -
getLegendLocation
-
setLegendLocation
-
isDrawLegendBorder
public boolean isDrawLegendBorder() -
setDrawLegendBorder
public void setDrawLegendBorder(boolean value) -
isShowLegend
public boolean isShowLegend() -
setShowLegend
public void setShowLegend(boolean value) -
isThreeD
public boolean isThreeD() -
setThreeD
public void setThreeD(boolean value) -
isChartSectionOutline
public boolean isChartSectionOutline() -
setChartSectionOutline
public void setChartSectionOutline(boolean value) -
getNoDataMessage
-
setNoDataMessage
-
setBackgroundImage
-
getBackgroundImage
-
getItemsLabelVisible
-
setItemsLabelVisible
-
setSeriesColor
-
getSeriesColor
-
getSeriesColorCount
public int getSeriesColorCount() -
getSeriesColor
-
setSeriesColor
-
getExpressionMap
- Specified by:
getExpressionMap
in interfaceorg.pentaho.reporting.engine.classic.core.DynamicExpression
-
setExpressionMap
public void setExpressionMap(Map<String, org.pentaho.reporting.engine.classic.core.function.Expression> values) - Specified by:
setExpressionMap
in interfaceorg.pentaho.reporting.engine.classic.core.DynamicExpression
-
addExpression
public void addExpression(String property, org.pentaho.reporting.engine.classic.core.function.Expression e) -
removeExpression
-
storeChartInCache
-
loadChartFromCache
-
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 classorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
- Returns:
- a copy of this function.
-
getValue
- Specified by:
getValue
in interfaceorg.pentaho.reporting.engine.classic.core.function.Expression
-
postProcessChart
protected org.jfree.chart.JFreeChart postProcessChart(org.jfree.chart.JFreeChart originalChart) -
computeChart
protected org.jfree.chart.JFreeChart computeChart(org.jfree.data.general.Dataset dataset) -
configureChart
protected void configureChart(org.jfree.chart.JFreeChart chart) -
parseColorFromString
-
computeTitle
-
translateEdge
-
getDependencyLevel
public int getDependencyLevel()Overrides the dependency level to only execute this function on the pagination and content-generation level.- Specified by:
getDependencyLevel
in interfaceorg.pentaho.reporting.engine.classic.core.function.Expression
- Overrides:
getDependencyLevel
in classorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
- Returns:
- LayoutProcess.LEVEL_PAGINATE.
-
setDependencyLevel
public void setDependencyLevel(int ignored) - Specified by:
setDependencyLevel
in interfaceorg.pentaho.reporting.engine.classic.core.function.Expression
- Overrides:
setDependencyLevel
in classorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
translateLineStyle
- Returns:
- java.awt.Stroke for JFreeChart renderer to draw lines
-
setChartWidth
public void setChartWidth(int value) Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
getChartWidth
public int getChartWidth()Deprecated.This property is no longer used.- Returns:
- always zero.
-
setChartHeight
public void setChartHeight(int value) Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
getChartHeight
public int getChartHeight()Deprecated.This property is no longer used.- Returns:
- always zero.
-
setChartDirectory
Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
setChartFile
Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
setChartUrlMask
Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
getChartDirectory
Deprecated.This property is no longer used.- Returns:
- always null.
-
getChartFile
Deprecated.This property is no longer used.- Returns:
- always null.
-
getChartUrlMask
Deprecated.This property is no longer used.- Returns:
- always null.
-
isReturnFileNameOnly
public boolean isReturnFileNameOnly()Deprecated.This property is no longer used.- Returns:
- always false.
-
setReturnFileNameOnly
public void setReturnFileNameOnly(boolean value) Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
isReturnImageReference
public boolean isReturnImageReference()Deprecated.This property is no longer used.- Returns:
- always false.
-
setReturnImageReference
public void setReturnImageReference(boolean value) Deprecated.This property is no longer used.- Parameters:
value
- ignored.
-
getChartFromCache
Deprecated.This method should not be public and should check for null-values. Use #storeChartInCache now.- Parameters:
key
-
-
putChartInCache
Deprecated.This method should not be public and should check for null-values. Use #storeChartInCache now.- Parameters:
chart
-key
-
-
isUseDrawable
public boolean isUseDrawable()Deprecated.This property should no longer be defined manually. The only sensible value it can take is "true" now.- Returns:
-
setUseDrawable
public void setUseDrawable(boolean value) Deprecated.This property should no longer be defined manually. The only sensible value it can take is "true" now.- Parameters:
value
-
-
getColorFromString
Deprecated.This is no getter and therefor should not call itself a getter.- Parameters:
colStr
-- Returns:
-
getPossibleExpressionStringValue
Deprecated.This method should not be public and is part of a messed up title-semantic. Will be removed later.- Parameters:
lookupValue
-- Returns:
-
standardTickUnitsApplyFormat
protected void standardTickUnitsApplyFormat(org.jfree.chart.axis.NumberAxis numberAxis, NumberFormat format) Reduces standard tick unit array to meet formatting precision and avoid duplicated values (PRD-5821) -
getTitle
Deprecated.The semantics of this property is all messed up and thus we can only deprecate it.- Returns:
-
setTitle
Deprecated.The semantics of this property is all messed up and thus we can only deprecate it. -
getSeriesColors
Deprecated.use bean accessors instead: getSeriesColor(), getSeriesColor(int index)
-