Package net.sf.jasperreports.charts

Examples of net.sf.jasperreports.charts.ChartTheme


    if(themeName == null)
    {
      themeName = JRProperties.getProperty(reportConverter.getReport(), JRChart.PROPERTY_CHART_THEME);
    }
   
    ChartTheme theme = ChartUtil.getChartTheme(themeName);
   
    ChartContext chartContext = new ConvertChartContext(chart);
   
    JFreeChart jfreeChart = null;
    try
    {
      jfreeChart = theme.createChart(chartContext);
    }
    catch (JRException e)
    {
      throw new JRRuntimeException(e);
    }
View Full Code Here


  protected JFreeChart evaluateChart(byte evaluation) throws JRException
  {
    evaluateProperties(evaluation);
    evaluateDatasetRun(evaluation);

    ChartTheme theme = ChartUtil.getChartTheme(themeName);
   
    if (getChartType() == JRChart.CHART_TYPE_MULTI_AXIS)
    {
      createMultiAxisChart(evaluation);
    }
    else
    {
      jfreeChart = theme.createChart(new FillChartContext(evaluation));

      chartHyperlinkProvider = createChartHyperlinkProvider();
    }

    if (chartCustomizer != null)
View Full Code Here

    List themeBundles = ExtensionsEnvironment.getExtensionsRegistry().getExtensions(ChartThemeBundle.class);
    for (Iterator it = themeBundles.iterator(); it.hasNext();)
    {
      ChartThemeBundle bundle = (ChartThemeBundle) it.next();
      ChartTheme chartTheme = bundle.getChartTheme(themeName);
      if (chartTheme != null)
      {
        return chartTheme;
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.charts.ChartTheme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.