ar.com.fdvs.dj.domain.chart.plot
Class AbstractPlot

java.lang.Object
  extended by ar.com.fdvs.dj.domain.DJBaseElement
      extended by ar.com.fdvs.dj.domain.chart.plot.AbstractPlot
All Implemented Interfaces:
Entity, java.io.Serializable
Direct Known Subclasses:
AbstractCategoryAxisPlot, AbstractPiePlot, ScatterPlot, TimeSeriesPlot

public abstract class AbstractPlot
extends DJBaseElement

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ar.com.fdvs.dj.domain.entities.Entity
SERIAL_VERSION_UID
 
Constructor Summary
AbstractPlot()
           
 
Method Summary
 void addSeriesColor(java.awt.Color color)
          Adds the specified series color to the plot.
 void clearSeriesColors()
          Removes all defined series colors.
 java.lang.Double getLabelRotation()
          Gets the angle in degrees to rotate the data axis labels.
 org.jfree.chart.plot.PlotOrientation getOrientation()
          Returns the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).
 java.util.List getSeriesColors()
          Returns a list of all the defined series colors.
 void setLabelRotation(java.lang.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 (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).
 void setSeriesColors(java.util.List seriesColors)
          Set the specified series colors to the plot.
 void transform(DynamicJasperDesign design, net.sf.jasperreports.engine.JRChartPlot plot, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlot

public AbstractPlot()
Method Detail

setOrientation

public void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).

Parameters:
orientation - the plot orientation

getOrientation

public org.jfree.chart.plot.PlotOrientation getOrientation()
Returns the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).

Returns:
the plot orientation

addSeriesColor

public void addSeriesColor(java.awt.Color color)
Adds the specified series color to the plot.

Parameters:
color - the series color

clearSeriesColors

public void clearSeriesColors()
Removes all defined series colors.


setSeriesColors

public void setSeriesColors(java.util.List seriesColors)
Set the specified series colors to the plot.

Parameters:
seriesColors - the series colors

getSeriesColors

public java.util.List 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.

Returns:
the list of series colors

setLabelRotation

public void setLabelRotation(java.lang.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.

Parameters:
labelRotation - the label rotation

getLabelRotation

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

Returns:
the label rotation

transform

public void transform(DynamicJasperDesign design,
                      net.sf.jasperreports.engine.JRChartPlot plot,
                      java.lang.String name)


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.