Package net.sf.jasperreports.engine.fill
Class JRFillChartPlot
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillChartPlot
-
- All Implemented Interfaces:
Cloneable,JRChartPlot,JRCloneable
- Direct Known Subclasses:
JRFillAreaPlot,JRFillBar3DPlot,JRFillBarPlot,JRFillBubblePlot,JRFillCandlestickPlot,JRFillHighLowPlot,JRFillLinePlot,JRFillMeterPlot,JRFillMultiAxisPlot,JRFillPie3DPlot,JRFillPiePlot,JRFillScatterPlot,JRFillThermometerPlot,JRFillTimeSeriesPlot
public class JRFillChartPlot extends Object implements JRChartPlot
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.engine.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description protected JRChartchartprotected JRChartPlotparent
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRFillChartPlot(JRChartPlot plot, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSeriesColor(JRChartPlot.JRSeriesColor seriesColor)Adds the specified series color to the plot.voidclearSeriesColors()Removes all defined series colors.Objectclone()Objectclone(JRChart parentChart)voidcollectExpressions(JRExpressionCollector collector)ColorgetBackcolor()Gets the chart background color.FloatgetBackgroundAlphaFloat()Gets the transparency factor for this plot background.JRChartgetChart()Gets the chart associated with this chart plot, if available.FloatgetForegroundAlphaFloat()Gets the transparency factor for this plot foreground.DoublegetLabelRotationDouble()Deprecated.PlotOrientationEnumgetOrientationValue()Gets the plot orientation (horizontal or vertical).ColorgetOwnBackcolor()SortedSet<JRChartPlot.JRSeriesColor>getSeriesColors()Returns a list of all the defined series colors.protected StyleResolvergetStyleResolver()voidsetBackcolor(Color backcolor)Sets the chart background color.voidsetBackgroundAlpha(Float BackgroundAlpha)Sets the transparency factor for this plot background.protected voidsetBand(JRFillBand band)voidsetForegroundAlpha(Float foregroundAlpha)Sets the transparency factor for this plot foreground.voidsetLabelRotation(Double labelRotation)Deprecated.voidsetOrientation(PlotOrientationEnum orientation)Sets the plot orientation (horizontal or vertical).voidsetSeriesColors(Collection<JRChartPlot.JRSeriesColor> colors)Set the list of series colors.
-
-
-
Field Detail
-
parent
protected JRChartPlot parent
-
chart
protected JRChart chart
-
-
Constructor Detail
-
JRFillChartPlot
protected JRFillChartPlot(JRChartPlot plot, JRFillObjectFactory factory)
-
-
Method Detail
-
setBand
protected void setBand(JRFillBand band)
-
getChart
public JRChart getChart()
Description copied from interface:JRChartPlotGets the chart associated with this chart plot, if available. Implementations can return null on this method, especially if the chart plot is reused by multiple charts, which is not recommended since it prevents style properties inheritence from parent chart.- Specified by:
getChartin interfaceJRChartPlot
-
getStyleResolver
protected StyleResolver getStyleResolver()
-
getBackcolor
public Color getBackcolor()
Description copied from interface:JRChartPlotGets the chart background color.- Specified by:
getBackcolorin interfaceJRChartPlot
-
getOwnBackcolor
public Color getOwnBackcolor()
- Specified by:
getOwnBackcolorin interfaceJRChartPlot
-
setBackcolor
public void setBackcolor(Color backcolor)
Description copied from interface:JRChartPlotSets the chart background color.- Specified by:
setBackcolorin interfaceJRChartPlot
-
getOrientationValue
public PlotOrientationEnum getOrientationValue()
Description copied from interface:JRChartPlotGets the plot orientation (horizontal or vertical).- Specified by:
getOrientationValuein interfaceJRChartPlot
-
setOrientation
public void setOrientation(PlotOrientationEnum orientation)
Description copied from interface:JRChartPlotSets the plot orientation (horizontal or vertical).- Specified by:
setOrientationin interfaceJRChartPlot
-
getBackgroundAlphaFloat
public Float getBackgroundAlphaFloat()
Description copied from interface:JRChartPlotGets the transparency factor for this plot background. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.- Specified by:
getBackgroundAlphaFloatin interfaceJRChartPlot- Returns:
- a float value between 0 and 1.
-
setBackgroundAlpha
public void setBackgroundAlpha(Float BackgroundAlpha)
Description copied from interface:JRChartPlotSets the transparency factor for this plot background. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.- Specified by:
setBackgroundAlphain interfaceJRChartPlot
-
getForegroundAlphaFloat
public Float getForegroundAlphaFloat()
Description copied from interface:JRChartPlotGets the transparency factor for this plot foreground. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.- Specified by:
getForegroundAlphaFloatin interfaceJRChartPlot- Returns:
- a float value between 0 and 1.
-
setForegroundAlpha
public void setForegroundAlpha(Float foregroundAlpha)
Description copied from interface:JRChartPlotSets the transparency factor for this plot foreground. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.- Specified by:
setForegroundAlphain interfaceJRChartPlot
-
getLabelRotationDouble
public Double getLabelRotationDouble()
Deprecated.Description copied from interface:JRChartPlotGets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.- Specified by:
getLabelRotationDoublein interfaceJRChartPlot
-
setLabelRotation
public void setLabelRotation(Double labelRotation)
Deprecated.Description copied from interface:JRChartPlotSets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.- Specified by:
setLabelRotationin interfaceJRChartPlot
-
getSeriesColors
public SortedSet<JRChartPlot.JRSeriesColor> getSeriesColors()
Returns a list of all the defined series colors. Every entry in the list is of type JRChartPlot.JRSeriesColor. If there are no defined series colors this method will return an empty list, not null.- Specified by:
getSeriesColorsin interfaceJRChartPlot
-
clearSeriesColors
public void clearSeriesColors()
Removes all defined series colors.- Specified by:
clearSeriesColorsin interfaceJRChartPlot
-
addSeriesColor
public void addSeriesColor(JRChartPlot.JRSeriesColor seriesColor)
Adds the specified series color to the plot.- Specified by:
addSeriesColorin interfaceJRChartPlot
-
setSeriesColors
public void setSeriesColors(Collection<JRChartPlot.JRSeriesColor> colors)
Description copied from interface:JRChartPlotSet the list of series colors.- Specified by:
setSeriesColorsin interfaceJRChartPlot- Parameters:
colors- the list of series colors (JRChartPlot.JRSeriesColorinstances}
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
- Specified by:
collectExpressionsin interfaceJRChartPlot
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
public Object clone(JRChart parentChart)
- Specified by:
clonein interfaceJRChartPlot
-
-