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 doubleAUTO_TICK_UNIT_FACTORprotected static doubleAUTO_TICK_UNIT_THRESHOLDstatic StringEXCEPTION_MESSAGE_KEY_CHART_THEME_NOT_FOUNDstatic StringEXCEPTION_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.TickUnitSourcecreateIntegerTickUnits(Locale locale)org.jfree.chart.axis.TickUnitSourcecreateStandardTickUnits(Locale locale)ChartRenderableFactorygetChartRenderableFactory(String renderType)static List<JRPrintImageAreaHyperlink>getImageAreaHyperlinks(org.jfree.chart.JFreeChart chart, ChartHyperlinkProvider chartHyperlinkProvider, Graphics2D grx, Rectangle2D renderingArea)static ChartUtilgetInstance(JasperReportsContext jasperReportsContext)static org.jfree.chart.plot.PlotOrientationgetPlotOrientation(PlotOrientationEnum plotOrientationEnum)static PlotOrientationEnumgetPlotOrientation(org.jfree.chart.plot.PlotOrientation plotOrientationValue)static ScaleTypeEnumgetScaleType(Integer scaleTypeValue)static IntegergetScaleType(ScaleTypeEnum scaleTypeEnum)ChartThemegetTheme(String themeName)static TimePeriodEnumgetTimePeriod(Class<?> timePeriodClass)static Class<?>getTimePeriod(TimePeriodEnum timePeriod)voidsetAutoTickUnit(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 plotOrientationValue)
-
getScaleType
public static final Integer getScaleType(ScaleTypeEnum scaleTypeEnum)
-
getScaleType
public static final ScaleTypeEnum getScaleType(Integer scaleTypeValue)
-
getTimePeriod
public static final TimePeriodEnum getTimePeriod(Class<?> timePeriodClass)
-
getTimePeriod
public static final Class<?> getTimePeriod(TimePeriodEnum timePeriod)
-
-