Package org.pentaho.plugin.jfreereport.reportcharts.backport

Examples of org.pentaho.plugin.jfreereport.reportcharts.backport.ExtTimeTableXYDataset


    final JFreeChart chart;
    if (xyDataset instanceof TimeSeriesCollection)
    {
      if (isStacked())
      {
        final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
        chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
            isShowLegend(), false, false, true);
      }
      else
      {
View Full Code Here


    if (xyDataset instanceof TimeSeriesCollection)
    {

      if (isStacked())
      {
        final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
        chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
            isShowLegend(), false, false, isStacked());
      }
      else
      {
View Full Code Here

    if (xyDataset instanceof TimeSeriesCollection)
    {

      if (isStacked())
      {
        final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
        chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
            isShowLegend(), false, false, isStacked());
      }
      else
      {
View Full Code Here

  }

  protected ExtTimeTableXYDataset convertToTable(final XYDataset xyDataset)
  {
    final TimeSeriesCollection timeSeriesCollection = (TimeSeriesCollection) xyDataset;
    final ExtTimeTableXYDataset tableXYDataset = new ExtTimeTableXYDataset();
    final int count = timeSeriesCollection.getSeriesCount();
    for (int i = 0; i < count; i++)
    {
      final Comparable key = timeSeriesCollection.getSeriesKey(i);
      final TimeSeries timeSeries = timeSeriesCollection.getSeries(i);
      final int itemCount = timeSeries.getItemCount();
      for (int ic = 0; ic < itemCount; ic++)
      {
        final TimeSeriesDataItem seriesDataItem = timeSeries.getDataItem(ic);
        tableXYDataset.add(seriesDataItem.getPeriod(), seriesDataItem.getValue(), key, false);
      }
    }
    return tableXYDataset;
  }
View Full Code Here

  }

  protected ExtTimeTableXYDataset convertToTable(final XYDataset xyDataset)
  {
    final TimeSeriesCollection timeSeriesCollection = (TimeSeriesCollection) xyDataset;
    final ExtTimeTableXYDataset tableXYDataset = new ExtTimeTableXYDataset();
    final int count = timeSeriesCollection.getSeriesCount();
    for (int i = 0; i < count; i++)
    {
      final Comparable key = timeSeriesCollection.getSeriesKey(i);
      final TimeSeries timeSeries = timeSeriesCollection.getSeries(i);
      final int itemCount = timeSeries.getItemCount();
      for (int ic = 0; ic < itemCount; ic++)
      {
        final TimeSeriesDataItem seriesDataItem = timeSeries.getDataItem(ic);
        tableXYDataset.add(seriesDataItem.getPeriod(), seriesDataItem.getValue(), key, false);
      }
    }
    return tableXYDataset;
  }
View Full Code Here

    if (xyDataset instanceof TimeSeriesCollection)
    {

      if (isStacked())
      {
        final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
        chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
            isShowLegend(), false, false, isStacked());
      }
      else
      {
View Full Code Here

    if (xyDataset instanceof TimeSeriesCollection)
    {

      if (isStacked())
      {
        final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
        chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
            isShowLegend(), false, false, isStacked());
      }
      else
      {
View Full Code Here

    final JFreeChart chart;
    if (xyDataset instanceof TimeSeriesCollection)
    {
      if (isStacked())
      {
        final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
        chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
            isShowLegend(), false, false, true);
      }
      else
      {
View Full Code Here

TOP

Related Classes of org.pentaho.plugin.jfreereport.reportcharts.backport.ExtTimeTableXYDataset

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.