Package net.sf.jasperreports.charts.util
Class ChartUtil
- java.lang.Object
-
- net.sf.jasperreports.charts.util.ChartUtil
-
public final class ChartUtil extends java.lang.Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected static double
AUTO_TICK_UNIT_FACTOR
protected static double
AUTO_TICK_UNIT_THRESHOLD
static java.lang.String
EXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUND
static java.lang.String
EXCEPTION_MESSAGE_KEY_RENDERER_FACTORY_NOT_SPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jfree.chart.axis.TickUnitSource
createIntegerTickUnits(java.util.Locale locale)
org.jfree.chart.axis.TickUnitSource
createStandardTickUnits(java.util.Locale locale)
ChartRenderableFactory
getChartRenderableFactory(java.lang.String renderType)
static java.util.List<JRPrintImageAreaHyperlink>
getImageAreaHyperlinks(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, java.awt.Graphics2D grx, java.awt.geom.Rectangle2D renderingArea)
static ChartUtil
getInstance(JasperReportsContext jasperReportsContext)
static org.jfree.chart.plot.PlotOrientation
getPlotOrientation(PlotOrientationEnum plotOrientationEnum)
static PlotOrientationEnum
getPlotOrientation(org.jfree.chart.plot.PlotOrientation plotOrientationValue)
static ScaleTypeEnum
getScaleType(java.lang.Integer scaleTypeValue)
static java.lang.Integer
getScaleType(ScaleTypeEnum scaleTypeEnum)
ChartTheme
getTheme(java.lang.String themeName)
static TimePeriodEnum
getTimePeriod(java.lang.Class<?> timePeriodClass)
static java.lang.Class<?>
getTimePeriod(TimePeriodEnum timePeriod)
void
setAutoTickUnit(org.jfree.chart.axis.NumberAxis numberAxis)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUND
public static final java.lang.String EXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_RENDERER_FACTORY_NOT_SPECIFIED
public static final java.lang.String EXCEPTION_MESSAGE_KEY_RENDERER_FACTORY_NOT_SPECIFIED
- See Also:
- Constant Field Values
-
AUTO_TICK_UNIT_THRESHOLD
protected static final double AUTO_TICK_UNIT_THRESHOLD
- See Also:
- Constant Field Values
-
AUTO_TICK_UNIT_FACTOR
protected static final double AUTO_TICK_UNIT_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ChartUtil getInstance(JasperReportsContext jasperReportsContext)
-
getImageAreaHyperlinks
public static java.util.List<JRPrintImageAreaHyperlink> getImageAreaHyperlinks(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, java.awt.Graphics2D grx, java.awt.geom.Rectangle2D renderingArea)
-
getTheme
public ChartTheme getTheme(java.lang.String themeName)
-
getChartRenderableFactory
public ChartRenderableFactory getChartRenderableFactory(java.lang.String renderType)
-
createIntegerTickUnits
public org.jfree.chart.axis.TickUnitSource createIntegerTickUnits(java.util.Locale locale)
-
createStandardTickUnits
public org.jfree.chart.axis.TickUnitSource createStandardTickUnits(java.util.Locale locale)
-
setAutoTickUnit
public void setAutoTickUnit(org.jfree.chart.axis.NumberAxis numberAxis)
-
getPlotOrientation
public static final org.jfree.chart.plot.PlotOrientation getPlotOrientation(PlotOrientationEnum plotOrientationEnum)
-
getPlotOrientation
public static final PlotOrientationEnum getPlotOrientation(org.jfree.chart.plot.PlotOrientation plotOrientationValue)
-
getScaleType
public static final java.lang.Integer getScaleType(ScaleTypeEnum scaleTypeEnum)
-
getScaleType
public static final ScaleTypeEnum getScaleType(java.lang.Integer scaleTypeValue)
-
getTimePeriod
public static final TimePeriodEnum getTimePeriod(java.lang.Class<?> timePeriodClass)
-
getTimePeriod
public static final java.lang.Class<?> getTimePeriod(TimePeriodEnum timePeriod)
-
-