Package net.sf.jasperreports.charts.fill
Class JRFillChartPlot
java.lang.Object
net.sf.jasperreports.charts.fill.JRFillChartPlot
- All Implemented Interfaces:
Cloneable,JRChartPlot,JRCloneable
- Direct Known Subclasses:
JRFillAreaPlot,JRFillBarPlot,JRFillBubblePlot,JRFillCandlestickPlot,JRFillHighLowPlot,JRFillLinePlot,JRFillMeterPlot,JRFillMultiAxisPlot,JRFillPiePlot,JRFillScatterPlot,JRFillThermometerPlot,JRFillTimeSeriesPlot
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRFillChartPlot(JRChartPlot plot, ChartsFillObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSeriesColor(JRChartPlot.JRSeriesColor seriesColor) Adds the specified series color to the plot.voidRemoves all defined series colors.clone()voidcollectExpressions(ChartsExpressionCollector collector) Gets the chart background color.Gets the transparency factor for this plot background.getChart()Gets the chart associated with this chart plot, if available.Gets the transparency factor for this plot foreground.Deprecated.Gets the plot orientation (horizontal or vertical).Returns a list of all the defined series colors.protected ChartsStyleResolvervoidsetBackcolor(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).voidSet the list of series colors.
-
Field Details
-
parent
-
chart
-
-
Constructor Details
-
JRFillChartPlot
-
-
Method Details
-
setBand
-
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
-
getBackcolor
Description copied from interface:JRChartPlotGets the chart background color.- Specified by:
getBackcolorin interfaceJRChartPlot
-
getOwnBackcolor
- Specified by:
getOwnBackcolorin interfaceJRChartPlot
-
setBackcolor
Description copied from interface:JRChartPlotSets the chart background color.- Specified by:
setBackcolorin interfaceJRChartPlot
-
getOrientation
Description copied from interface:JRChartPlotGets the plot orientation (horizontal or vertical).- Specified by:
getOrientationin interfaceJRChartPlot
-
setOrientation
Description copied from interface:JRChartPlotSets the plot orientation (horizontal or vertical).- Specified by:
setOrientationin interfaceJRChartPlot
-
getBackgroundAlpha
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:
getBackgroundAlphain interfaceJRChartPlot- Returns:
- a float value between 0 and 1.
-
setBackgroundAlpha
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
-
getForegroundAlpha
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:
getForegroundAlphain interfaceJRChartPlot- Returns:
- a float value between 0 and 1.
-
setForegroundAlpha
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
-
getLabelRotation
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:
getLabelRotationin interfaceJRChartPlot
-
setLabelRotation
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
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
Adds the specified series color to the plot.- Specified by:
addSeriesColorin interfaceJRChartPlot
-
setSeriesColors
Description copied from interface:JRChartPlotSet the list of series colors.- Specified by:
setSeriesColorsin interfaceJRChartPlot- Parameters:
colors- the list of series colors (JRChartPlot.JRSeriesColorinstances}
-
collectExpressions
- Specified by:
collectExpressionsin interfaceJRChartPlot
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
- Specified by:
clonein interfaceJRChartPlot
-
JRCategoryAxisFormat.getCategoryAxisTickLabelRotation().