Package net.sf.jasperreports.charts.util
Class ChartUtil
- java.lang.Object
-
- net.sf.jasperreports.charts.util.ChartUtil
-
public final class ChartUtil extends 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 String
EXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUND
static 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(Locale locale)
org.jfree.chart.axis.TickUnitSource
createStandardTickUnits(Locale locale)
ChartRenderableFactory
getChartRenderableFactory(String renderType)
static List<JRPrintImageAreaHyperlink>
getImageAreaHyperlinks(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, Graphics2D grx, Rectangle2D renderingArea)
static ChartUtil
getInstance(JasperReportsContext jasperReportsContext)
static org.jfree.chart.plot.PlotOrientation
getPlotOrientation(PlotOrientationEnum plotOrientationEnum)
static PlotOrientationEnum
getPlotOrientation(org.jfree.chart.plot.PlotOrientation jfcPlotOrientation)
static Integer
getScaleType(ScaleTypeEnum scaleTypeEnum)
ChartTheme
getTheme(String themeName)
static TimePeriodEnum
getTimePeriod(Class<?> timePeriodClass)
static Class<?>
getTimePeriod(TimePeriodEnum timePeriod)
void
setAutoTickUnit(org.jfree.chart.axis.NumberAxis numberAxis)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_RENDERER_FACTORY_NOT_SPECIFIED
public static final 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 List<JRPrintImageAreaHyperlink> getImageAreaHyperlinks(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, Graphics2D grx, Rectangle2D renderingArea)
-
getTheme
public ChartTheme getTheme(String themeName)
-
getChartRenderableFactory
public ChartRenderableFactory getChartRenderableFactory(String renderType)
-
createIntegerTickUnits
public org.jfree.chart.axis.TickUnitSource createIntegerTickUnits(Locale locale)
-
createStandardTickUnits
public org.jfree.chart.axis.TickUnitSource createStandardTickUnits(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 jfcPlotOrientation)
-
getScaleType
public static final Integer getScaleType(ScaleTypeEnum scaleTypeEnum)
-
getTimePeriod
public static final TimePeriodEnum getTimePeriod(Class<?> timePeriodClass)
-
getTimePeriod
public static final Class<?> getTimePeriod(TimePeriodEnum timePeriod)
-
-