net.sf.jasperreports.engine.fill
Class JRFillChartPlot

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JRFillChartPlot
All Implemented Interfaces:
JRChartPlot
Direct Known Subclasses:
JRFillAreaPlot, JRFillBar3DPlot, JRFillBarPlot, JRFillBubblePlot, JRFillCandlestickPlot, JRFillHighLowPlot, JRFillLinePlot, JRFillMeterPlot, JRFillMultiAxisPlot, JRFillPie3DPlot, JRFillPiePlot, JRFillScatterPlot, JRFillThermometerPlot, JRFillTimeSeriesPlot

public class JRFillChartPlot
extends java.lang.Object
implements JRChartPlot

Version:
$Id: JRFillChartPlot.java 1392 2006-09-06 01:01:12 +0300 (Wed, 06 Sep 2006) bklawans $
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
protected  JRChartPlot parent
           
 
Constructor Summary
protected JRFillChartPlot(JRChartPlot plot, JRFillObjectFactory factory)
           
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected JRChartPlot parent
Constructor Detail

JRFillChartPlot

protected JRFillChartPlot(JRChartPlot plot,
                          JRFillObjectFactory factory)
Method Detail

getBackcolor

public java.awt.Color getBackcolor()
Description copied from interface: JRChartPlot
Gets the chart background color.

Specified by:
getBackcolor in interface JRChartPlot

setBackcolor

public void setBackcolor(java.awt.Color backcolor)
Description copied from interface: JRChartPlot
Sets the chart background color.

Specified by:
setBackcolor in interface JRChartPlot

getOrientation

public org.jfree.chart.plot.PlotOrientation getOrientation()
Description copied from interface: JRChartPlot
Gets the plot orientation (horizontal or vertical).

Specified by:
getOrientation in interface JRChartPlot

setOrientation

public void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Description copied from interface: JRChartPlot
Sets the plot orientation (horizontal or vertical).

Specified by:
setOrientation in interface JRChartPlot

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 interface JRChartPlot
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 interface JRChartPlot

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 interface JRChartPlot
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 interface JRChartPlot

getLabelRotation

public double getLabelRotation()
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 interface JRChartPlot

setLabelRotation

public void setLabelRotation(double labelRotation)
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 interface JRChartPlot

getSeriesColors

public 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.

Specified by:
getSeriesColors in interface JRChartPlot

clearSeriesColors

public void clearSeriesColors()
Removes all defined series colors.

Specified by:
clearSeriesColors in interface JRChartPlot

addSeriesColor

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

Specified by:
addSeriesColor in interface JRChartPlot

collectExpressions

public void collectExpressions(JRExpressionCollector collector)
Specified by:
collectExpressions in interface JRChartPlot


© 2001-2006 JasperSoft Corporation www.jaspersoft.com