Package org.jfree.data.time

Examples of org.jfree.data.time.RegularTimePeriod


    // TimePeriod, which cannot make use of the timezone and locale
    // specified in the constructor...so we only do the time zone
    // pegging if the period is an instanceof RegularTimePeriod
    if (period instanceof RegularTimePeriod)
    {
      final RegularTimePeriod p = (RegularTimePeriod) period;
      p.peg(this.workingCalendar);
    }
    this.values.addValue(y, period, seriesName);
    if (notify)
    {
      fireDatasetChanged();
View Full Code Here


      if (series == null)
      {
        series = new TimeSeries(seriesName, timePeriodClass);
        timeSeriesDataset.addSeries(series);
      }
      final RegularTimePeriod regularTimePeriod =
          RegularTimePeriod.createInstance(timePeriodClass, timeValue, TimeZone.getDefault());

      final TimeSeriesDataItem timeSeriesDataItem = new TimeSeriesDataItem(regularTimePeriod, value);
      series.add(timeSeriesDataItem);
    }
View Full Code Here

        series = new TimeSeries(seriesName, getTimePeriod());
        timeSeriesDataset.addSeries(series);
        seriesMap.put(seriesName, series);
      }

      final RegularTimePeriod regularTimePeriod =
          RegularTimePeriod.createInstance(getTimePeriod(), timeValue, TimeZone.getDefault());

      final TimeSeriesDataItem timeSeriesDataItem = new TimeSeriesDataItem(regularTimePeriod, value);
      series.add(timeSeriesDataItem);
    }
View Full Code Here

      TimeSeriesCollection dataset = (TimeSeriesCollection) itemEntity.getDataset();
      TimeSeries series = dataset.getSeries(itemEntity.getSeriesIndex());
      Map serieHyperlinks = (Map) itemHyperlinks.get(series.getKey());
      if (serieHyperlinks != null)
      {
        RegularTimePeriod timePeriod = series.getTimePeriod(itemEntity.getItem());
        printHyperlink = (JRPrintHyperlink) serieHyperlinks.get(timePeriod);
      }
    }
    return printHyperlink;
  }
View Full Code Here

          series = new TimeSeries(seriesName.toString(), getTimePeriod());
          seriesNames.add(seriesName);
          seriesMap.put(seriesName, series);
        }
       
        RegularTimePeriod tp =
          RegularTimePeriod.createInstance(
            getTimePeriod(),
            crtTimeSeries.getTimePeriod(),
            getTimeZone()
            );
View Full Code Here

      if (series == null)
      {
        series = new TimeSeries(seriesName, timePeriodClass);
        timeSeriesDataset.addSeries(series);
      }
      final RegularTimePeriod regularTimePeriod =
          RegularTimePeriod.createInstance(timePeriodClass, timeValue, TimeZone.getDefault());

      final TimeSeriesDataItem timeSeriesDataItem = new TimeSeriesDataItem(regularTimePeriod, value);
      series.add(timeSeriesDataItem);
    }
View Full Code Here

    // TimePeriod, which cannot make use of the timezone and locale
    // specified in the constructor...so we only do the time zone
    // pegging if the period is an instanceof RegularTimePeriod
    if (period instanceof RegularTimePeriod)
    {
      final RegularTimePeriod p = (RegularTimePeriod) period;
      p.peg(this.workingCalendar);
    }
    this.values.addValue(y, period, seriesName);
    if (notify)
    {
      fireDatasetChanged();
View Full Code Here

        series = new TimeSeries(seriesName);
        timeSeriesDataset.addSeries(series);
        seriesMap.put(seriesName, series);
      }

      final RegularTimePeriod regularTimePeriod =
          RegularTimePeriod.createInstance(getTimePeriod(), timeValue, TimeZone.getDefault());

      final TimeSeriesDataItem timeSeriesDataItem = new TimeSeriesDataItem(regularTimePeriod, value);
      series.add(timeSeriesDataItem);
    }
View Full Code Here

        }
        if (data instanceof XisSymbolic) {
            xStr = ((XisSymbolic) data).getXSymbolicValue(series, item);
        }
        else if (data instanceof TimeSeriesCollection) {
            RegularTimePeriod p
                = ((TimeSeriesCollection) data).getSeries(series)
                    .getTimePeriod(item);
            xStr = p.toString();
        }
        else {
            double x = data.getXValue(series, item);
            xStr = Double.toString(round(x, 2));
        }
View Full Code Here

     *
     * @since 1.0.13.
     */
    public RegularTimePeriod createInstance(Date millisecond, TimeZone zone,
            Locale locale) {
        RegularTimePeriod result = null;
        try {
            Constructor c = this.periodClass.getDeclaredConstructor(
                    new Class[] {Date.class, TimeZone.class, Locale.class});
            result = (RegularTimePeriod) c.newInstance(new Object[] {
                    millisecond, zone, locale});
View Full Code Here

TOP

Related Classes of org.jfree.data.time.RegularTimePeriod

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.