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
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.charts.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description protected JRChart
chart
protected JRChartPlot
parent
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRFillChartPlot(JRChartPlot plot, ChartsFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addSeriesColor(JRChartPlot.JRSeriesColor seriesColor)
Adds the specified series color to the plot.void
clearSeriesColors()
Removes all defined series colors.Object
clone()
Object
clone(JRChart parentChart)
void
collectExpressions(ChartsExpressionCollector collector)
Color
getBackcolor()
Gets the chart background color.Float
getBackgroundAlpha()
Gets the transparency factor for this plot background.JRChart
getChart()
Gets the chart associated with this chart plot, if available.Float
getForegroundAlpha()
Gets the transparency factor for this plot foreground.Double
getLabelRotation()
Deprecated.PlotOrientationEnum
getOrientation()
Gets the plot orientation (horizontal or vertical).Color
getOwnBackcolor()
SortedSet<JRChartPlot.JRSeriesColor>
getSeriesColors()
Returns a list of all the defined series colors.protected ChartsStyleResolver
getStyleResolver()
void
setBackcolor(Color backcolor)
Sets the chart background color.void
setBackgroundAlpha(Float BackgroundAlpha)
Sets the transparency factor for this plot background.protected void
setBand(JRFillBand band)
void
setForegroundAlpha(Float foregroundAlpha)
Sets the transparency factor for this plot foreground.void
setLabelRotation(Double labelRotation)
Deprecated.void
setOrientation(PlotOrientationEnum orientation)
Sets the plot orientation (horizontal or vertical).void
setSeriesColors(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, ChartsFillObjectFactory factory)
-
-
Method Detail
-
setBand
protected void setBand(JRFillBand band)
-
getChart
public JRChart getChart()
Description copied from interface:JRChartPlot
Gets 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:
getChart
in interfaceJRChartPlot
-
getStyleResolver
protected ChartsStyleResolver getStyleResolver()
-
getBackcolor
public Color getBackcolor()
Description copied from interface:JRChartPlot
Gets the chart background color.- Specified by:
getBackcolor
in interfaceJRChartPlot
-
getOwnBackcolor
public Color getOwnBackcolor()
- Specified by:
getOwnBackcolor
in interfaceJRChartPlot
-
setBackcolor
public void setBackcolor(Color backcolor)
Description copied from interface:JRChartPlot
Sets the chart background color.- Specified by:
setBackcolor
in interfaceJRChartPlot
-
getOrientation
public PlotOrientationEnum getOrientation()
Description copied from interface:JRChartPlot
Gets the plot orientation (horizontal or vertical).- Specified by:
getOrientation
in interfaceJRChartPlot
-
setOrientation
public void setOrientation(PlotOrientationEnum orientation)
Description copied from interface:JRChartPlot
Sets the plot orientation (horizontal or vertical).- Specified by:
setOrientation
in interfaceJRChartPlot
-
getBackgroundAlpha
public Float getBackgroundAlpha()
Description copied from interface:JRChartPlot
Gets 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:
getBackgroundAlpha
in interfaceJRChartPlot
- Returns:
- a float value between 0 and 1.
-
setBackgroundAlpha
public void setBackgroundAlpha(Float BackgroundAlpha)
Description copied from interface:JRChartPlot
Sets 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:
setBackgroundAlpha
in interfaceJRChartPlot
-
getForegroundAlpha
public Float getForegroundAlpha()
Description copied from interface:JRChartPlot
Gets 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:
getForegroundAlpha
in interfaceJRChartPlot
- Returns:
- a float value between 0 and 1.
-
setForegroundAlpha
public void setForegroundAlpha(Float foregroundAlpha)
Description copied from interface:JRChartPlot
Sets 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:
setForegroundAlpha
in interfaceJRChartPlot
-
getLabelRotation
public Double getLabelRotation()
Deprecated.Description copied from interface:JRChartPlot
Gets 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:
getLabelRotation
in interfaceJRChartPlot
-
setLabelRotation
public void setLabelRotation(Double labelRotation)
Deprecated.Description copied from interface:JRChartPlot
Sets 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:
setLabelRotation
in 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:
getSeriesColors
in interfaceJRChartPlot
-
clearSeriesColors
public void clearSeriesColors()
Removes all defined series colors.- Specified by:
clearSeriesColors
in interfaceJRChartPlot
-
addSeriesColor
public void addSeriesColor(JRChartPlot.JRSeriesColor seriesColor)
Adds the specified series color to the plot.- Specified by:
addSeriesColor
in interfaceJRChartPlot
-
setSeriesColors
public void setSeriesColors(Collection<JRChartPlot.JRSeriesColor> colors)
Description copied from interface:JRChartPlot
Set the list of series colors.- Specified by:
setSeriesColors
in interfaceJRChartPlot
- Parameters:
colors
- the list of series colors (JRChartPlot.JRSeriesColor
instances}
-
collectExpressions
public void collectExpressions(ChartsExpressionCollector collector)
- Specified by:
collectExpressions
in interfaceJRChartPlot
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
clone
public Object clone(JRChart parentChart)
- Specified by:
clone
in interfaceJRChartPlot
-
-