net.sf.jasperreports.engine
Interface JRChartPlot

All Known Subinterfaces:
JRAreaPlot, JRBar3DPlot, JRBarPlot, JRBubblePlot, JRCandlestickPlot, JRHighLowPlot, JRLinePlot, JRMeterPlot, JRMultiAxisPlot, JRPie3DPlot, JRPiePlot, JRScatterPlot, JRThermometerPlot, JRTimeSeriesPlot
All Known Implementing Classes:
JRBaseAreaPlot, JRBaseBar3DPlot, JRBaseBarPlot, JRBaseBubblePlot, JRBaseCandlestickPlot, JRBaseChartPlot, JRBaseHighLowPlot, JRBaseLinePlot, JRBaseMeterPlot, JRBaseMultiAxisPlot, JRBasePie3DPlot, JRBasePiePlot, JRBaseScatterPlot, JRBaseThermometerPlot, JRBaseTimeSeriesPlot, JRDesignAreaPlot, JRDesignBar3DPlot, JRDesignBarPlot, JRDesignBubblePlot, JRDesignCandlestickPlot, JRDesignHighLowPlot, JRDesignLinePlot, JRDesignMeterPlot, JRDesignMultiAxisPlot, JRDesignPie3DPlot, JRDesignPiePlot, JRDesignScatterPlot, JRDesignThermometerPlot, JRDesignTimeSeriesPlot, JRFillAreaPlot, JRFillBar3DPlot, JRFillBarPlot, JRFillBubblePlot, JRFillCandlestickPlot, JRFillChartPlot, JRFillHighLowPlot, JRFillLinePlot, JRFillMeterPlot, JRFillMultiAxisPlot, JRFillPie3DPlot, JRFillPiePlot, JRFillScatterPlot, JRFillThermometerPlot, JRFillTimeSeriesPlot

public interface JRChartPlot

Chart plots define chart appearance and display details such as colors, legend or labels. Each plot may have different characteristics, depending on the chart type it belongs to. This is the superinterface for all plots and contains common properties.

Version:
$Id: JRChartPlot.java 1393 2006-09-06 01:04:21 +0300 (Wed, 06 Sep 2006) bklawans $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Nested Class Summary
static interface JRChartPlot.JRSeriesColor
           
 
Method Summary
 void addSeriesColor(JRChartPlot.JRSeriesColor seriesColor)
          Adds the specified series color to the plot.
 void clearSeriesColors()
          Removes all defined series colors.
 void collectExpressions(JRExpressionCollector collector)
           
 java.awt.Color getBackcolor()
          Gets the chart background color.
 float getBackgroundAlpha()
          Gets the transparency factor for this plot background.
 float getForegroundAlpha()
          Gets the transparency factor for this plot foreground.
 double getLabelRotation()
          Gets the angle in degrees to rotate the data axis labels.
 org.jfree.chart.plot.PlotOrientation getOrientation()
          Gets the plot orientation (horizontal or vertical).
 java.util.SortedSet getSeriesColors()
          Returns a list of all the defined series colors.
 void setBackcolor(java.awt.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)
          Sets the angle in degrees to rotate the data axis labels.
 void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
          Sets the plot orientation (horizontal or vertical).
 

Method Detail

getBackcolor

java.awt.Color getBackcolor()
Gets the chart background color.


setBackcolor

void setBackcolor(java.awt.Color backcolor)
Sets the chart background color.


getOrientation

org.jfree.chart.plot.PlotOrientation getOrientation()
Gets the plot orientation (horizontal or vertical).


setOrientation

void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (horizontal or vertical).


getBackgroundAlpha

float getBackgroundAlpha()
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.

Returns:
a float value between 0 and 1.

setBackgroundAlpha

void setBackgroundAlpha(float backgroundAlpha)
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.


getForegroundAlpha

float getForegroundAlpha()
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.

Returns:
a float value between 0 and 1.

setForegroundAlpha

void setForegroundAlpha(float foregroundAlpha)
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.


getLabelRotation

double getLabelRotation()
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.


setLabelRotation

void setLabelRotation(double labelRotation)
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.


getSeriesColors

java.util.SortedSet 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.


clearSeriesColors

void clearSeriesColors()
Removes all defined series colors.


addSeriesColor

void addSeriesColor(JRChartPlot.JRSeriesColor seriesColor)
Adds the specified series color to the plot.


collectExpressions

void collectExpressions(JRExpressionCollector collector)


© 2001-2006 JasperSoft Corporation www.jaspersoft.com