Package net.sf.jasperreports.charts.base
Class JRBaseChartPlot
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseChartPlot
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChartPlot
,JRChangeEventsSupport
,JRCloneable
- Direct Known Subclasses:
JRBaseAreaPlot
,JRBaseBarPlot
,JRBaseBubblePlot
,JRBaseCandlestickPlot
,JRBaseHighLowPlot
,JRBaseLinePlot
,JRBaseMeterPlot
,JRBaseMultiAxisPlot
,JRBasePiePlot
,JRBaseScatterPlot
,JRBaseThermometerPlot
,JRBaseTimeSeriesPlot
public abstract class JRBaseChartPlot
extends Object
implements JRChartPlot, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color
protected Float
protected JRChart
protected Float
protected Double
protected PlotOrientationEnum
static final String
static final String
static final String
static final String
static final String
static final String
protected SortedSet
<JRChartPlot.JRSeriesColor> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JRBaseChartPlot
(JRChartPlot plot, ChartsBaseObjectFactory factory) protected
JRBaseChartPlot
(JRChartPlot plot, JRChart chart) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSeriesColor
(JRChartPlot.JRSeriesColor seriesColor) Adds the specified series color to the plot.void
Removes all defined series colors.clone()
Gets the chart background color.Gets the transparency factor for this plot background.getChart()
Gets the chart associated with this chart plot, if available.Returns the property change support object for this instance.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 ChartsStyleResolver
void
setBackcolor
(Color backcolor) Sets the chart background color.void
setBackgroundAlpha
(Float backgroundAlpha) Sets the transparency factor for this plot background.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
Set the list of series colors.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.jasperreports.charts.JRChartPlot
collectExpressions
-
Field Details
-
PROPERTY_BACKCOLOR
- See Also:
-
PROPERTY_BACKGROUND_ALPHA
- See Also:
-
PROPERTY_FOREGROUND_ALPHA
- See Also:
-
PROPERTY_LABEL_ROTATION
- See Also:
-
PROPERTY_ORIENTATION
- See Also:
-
PROPERTY_SERIES_COLORS
- See Also:
-
chart
-
backcolor
-
orientation
-
backgroundAlpha
-
foregroundAlpha
-
labelRotation
-
seriesColors
-
-
Constructor Details
-
JRBaseChartPlot
-
JRBaseChartPlot
-
-
Method Details
-
getStyleResolver
-
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
-
getBackcolor
Description copied from interface:JRChartPlot
Gets the chart background color.- Specified by:
getBackcolor
in interfaceJRChartPlot
-
getOwnBackcolor
- Specified by:
getOwnBackcolor
in interfaceJRChartPlot
-
setBackcolor
Description copied from interface:JRChartPlot
Sets the chart background color.- Specified by:
setBackcolor
in interfaceJRChartPlot
-
getOrientation
Description copied from interface:JRChartPlot
Gets the plot orientation (horizontal or vertical).- Specified by:
getOrientation
in interfaceJRChartPlot
-
setOrientation
Description copied from interface:JRChartPlot
Sets the plot orientation (horizontal or vertical).- Specified by:
setOrientation
in interfaceJRChartPlot
-
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
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
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
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
Deprecated.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
Deprecated.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
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
Adds the specified series color to the plot.- Specified by:
addSeriesColor
in interfaceJRChartPlot
-
setSeriesColors
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}
-
clone
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
clone
- Specified by:
clone
in interfaceJRChartPlot
-
getEventSupport
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
JRCategoryAxisFormat.getCategoryAxisTickLabelRotation()
.