Package org.jfree.data.time

Examples of org.jfree.data.time.Month


      ps.setString(1, airport);
      ps.setString(2, remarque);

      ResultSet rs = ps.executeQuery();
      while (rs.next()) {
        s.add(new Month(rs.getInt("mois"), rs.getInt("annee")),
            rs.getInt("num"));
      }

      ps.close();
      rs.close();
View Full Code Here


          ResultSet rs = ps.executeQuery();
          while (rs.next()) {
            TimeSeries serie = new TimeSeries(st);
            try {
              serie.add(
                  new Month(rs.getInt("mois"), year
                      .intValue()),
                  rs.getInt("num") / s.numberOfPassengers(st));
            } catch (Exception ex) {
              __app.getMainWindow().showNotification(
                  "Notification", "No Data",
                  Window.Notification.TYPE_TRAY_NOTIFICATION);
            }
            dataset.addSeries(serie);
          }
          ps.close();
          rs.close();
        } catch (SQLException e) {
          e.printStackTrace();
        }

      } else {
        TimeSeries _serie = new TimeSeries(st);
        _serie.add(new Month(1, year.intValue()), 1);
        dataset.addSeries(_serie);
      }
    }

    return dataset;
View Full Code Here

          ResultSet rs = ps.executeQuery();
          while (rs.next()) {
            TimeSeries serie = new TimeSeries(st);
            try {
              serie.add(
                  new Month(rs.getInt("mois"), year
                      .intValue()),
                  rs.getInt("num") / s.numberOfPassengers(st));
            } catch (Exception ex) {
              __app.getMainWindow().showNotification(
                  "Notification", "No data",
                  Window.Notification.TYPE_TRAY_NOTIFICATION);
            }
            dataset.addSeries(serie);
          }
        } catch (SQLException e) {
          e.printStackTrace();
        }

      } else {
        TimeSeries _serie = new TimeSeries(st);
        _serie.add(new Month(1, year.intValue()), 1);
        dataset.addSeries(_serie);
      }
    }

    return dataset;
View Full Code Here

    /**
     * we set the dateFrom time manually to hh/mm/ss = 00:00:01 and the
     * dateTo time manually to date + hh/mm/SS = 23:59:59.<br>
     * The same with the day/month/year .<br>
     */
    Month month = new Month(aMonth + 1, aYear);
    Date dateFrom = month.getStart();
    Date dateTo = month.getEnd();

    String str1 = " SELECT distinct (countrycode.ccdCode2), countrycode.ccdName, count(*) as count ";
    String str2 = " FROM Ip2Country AS log_ip2country, CountryCode AS countrycode ";
    String str3 = " , SecLoginlog as secLoginLog ";
    String str4 = " WHERE secLoginLog.ip2Country = log_ip2country.id ";
View Full Code Here

     * @return The dataset.
     */
    private static XYDataset createDataset() {

        TimeSeries s1 = new TimeSeries("L&G European Index Trust");
        s1.add(new Month(2, 2001), 181.8);
        s1.add(new Month(3, 2001), 167.3);
        s1.add(new Month(4, 2001), 153.8);
        s1.add(new Month(5, 2001), 167.6);
        s1.add(new Month(6, 2001), 158.8);
        s1.add(new Month(7, 2001), 148.3);
        s1.add(new Month(8, 2001), 153.9);
        s1.add(new Month(9, 2001), 142.7);
        s1.add(new Month(10, 2001), 123.2);
        s1.add(new Month(11, 2001), 131.8);
        s1.add(new Month(12, 2001), 139.6);
        s1.add(new Month(1, 2002), 142.9);
        s1.add(new Month(2, 2002), 138.7);
        s1.add(new Month(3, 2002), 137.3);
        s1.add(new Month(4, 2002), 143.9);
        s1.add(new Month(5, 2002), 139.8);
        s1.add(new Month(6, 2002), 137.0);
        s1.add(new Month(7, 2002), 132.8);

        TimeSeries s2 = new TimeSeries("L&G UK Index Trust");
        s2.add(new Month(2, 2001), 129.6);
        s2.add(new Month(3, 2001), 123.2);
        s2.add(new Month(4, 2001), 117.2);
        s2.add(new Month(5, 2001), 124.1);
        s2.add(new Month(6, 2001), 122.6);
        s2.add(new Month(7, 2001), 119.2);
        s2.add(new Month(8, 2001), 116.5);
        s2.add(new Month(9, 2001), 112.7);
        s2.add(new Month(10, 2001), 101.5);
        s2.add(new Month(11, 2001), 106.1);
        s2.add(new Month(12, 2001), 110.3);
        s2.add(new Month(1, 2002), 111.7);
        s2.add(new Month(2, 2002), 111.0);
        s2.add(new Month(3, 2002), 109.6);
        s2.add(new Month(4, 2002), 113.2);
        s2.add(new Month(5, 2002), 111.6);
        s2.add(new Month(6, 2002), 108.8);
        s2.add(new Month(7, 2002), 101.6);

        // ******************************************************************
        //  More than 150 demo applications are included with the JFreeChart
        //  Developer Guide...for more information, see:
        //
View Full Code Here

     */
    private static IntervalXYDataset createDataset1() {

        // create dataset 1...
        TimeSeries series1 = new TimeSeries("Series 1");
        series1.add(new Month(1, 2005), 7627.743);
        series1.add(new Month(2, 2005), 7713.138);
        series1.add(new Month(3, 2005), 6776.939);
        series1.add(new Month(4, 2005), 5764.537);
        series1.add(new Month(5, 2005), 4777.880);
        series1.add(new Month(6, 2005), 4836.496);
        series1.add(new Month(7, 2005), 3887.618);
        series1.add(new Month(8, 2005), 3926.933);
        series1.add(new Month(9, 2005), 4932.710);
        series1.add(new Month(10, 2005), 4027.123);
        series1.add(new Month(11, 2005), 8092.322);
        series1.add(new Month(12, 2005), 8170.414);
        series1.add(new Month(1, 2006), 8196.070);
        series1.add(new Month(2, 2006), 8269.886);
        series1.add(new Month(3, 2006), 5371.156);
        series1.add(new Month(4, 2006), 5355.718);
        series1.add(new Month(5, 2006), 5356.777);
        series1.add(new Month(6, 2006), 8420.042);
        series1.add(new Month(7, 2006), 8444.347);
        series1.add(new Month(8, 2006), 8515.034);
        series1.add(new Month(9, 2006), 8506.974);
        series1.add(new Month(10, 2006), 8584.329);
        series1.add(new Month(11, 2006), 8633.246);
        series1.add(new Month(12, 2006), 8680.224);
        series1.add(new Month(1, 2007), 8707.561);
        return new TimeSeriesCollection(series1);

    }
View Full Code Here

     */
    private static IntervalXYDataset createDataset2() {
        TimeSeriesCollection dataset = new TimeSeriesCollection();

        TimeSeries series1 = new TimeSeries("Series 2");
        series1.add(new Month(1, 2005), 1200);
        series1.add(new Month(2, 2005), 1400);
        series1.add(new Month(3, 2005), 1500);
        series1.add(new Month(4, 2005), 1700);
        series1.add(new Month(5, 2005), 1600);
        series1.add(new Month(6, 2005), 2400);
        series1.add(new Month(7, 2005), 2100);
        series1.add(new Month(8, 2005), 2200);
        series1.add(new Month(9, 2005), 800);
        series1.add(new Month(10, 2005), 2350);
        series1.add(new Month(11, 2005), 500);
        series1.add(new Month(12, 2005), 700);
        series1.add(new Month(1, 2006), 900);
        series1.add(new Month(2, 2006), 1500);
        series1.add(new Month(3, 2006), 2100);
        series1.add(new Month(4, 2006), 2200);
        series1.add(new Month(5, 2006), 1900);
        series1.add(new Month(6, 2006), 3000);
        series1.add(new Month(7, 2006), 3780);
        series1.add(new Month(8, 2006), 4000);
        series1.add(new Month(9, 2006), 4500);
        series1.add(new Month(10, 2006), 7000);
        series1.add(new Month(11, 2006), 5500);
        series1.add(new Month(12, 2006), 6000);
        series1.add(new Month(1, 2007), 6500);
        dataset.addSeries(series1);
        return dataset;

    }
View Full Code Here

     * @return The dataset.
     */
    private static XYDataset createDataset() {

        TimeSeries s1 = new TimeSeries("L&G European Index Trust");
        s1.add(new Month(2, 2001), 181.8);
        s1.add(new Month(3, 2001), 167.3);
        s1.add(new Month(4, 2001), 153.8);
        s1.add(new Month(5, 2001), 167.6);
        s1.add(new Month(6, 2001), 158.8);
        s1.add(new Month(7, 2001), 148.3);
        s1.add(new Month(8, 2001), 153.9);
        s1.add(new Month(9, 2001), 142.7);
        s1.add(new Month(10, 2001), 123.2);
        s1.add(new Month(11, 2001), 131.8);
        s1.add(new Month(12, 2001), 139.6);
        s1.add(new Month(1, 2002), 142.9);
        s1.add(new Month(2, 2002), 138.7);
        s1.add(new Month(3, 2002), 137.3);
        s1.add(new Month(4, 2002), 143.9);
        s1.add(new Month(5, 2002), 139.8);
        s1.add(new Month(6, 2002), 137.0);
        s1.add(new Month(7, 2002), 132.8);

        TimeSeries s2 = new TimeSeries("L&G UK Index Trust");
        s2.add(new Month(2, 2001), 129.6);
        s2.add(new Month(3, 2001), 123.2);
        s2.add(new Month(4, 2001), 117.2);
        s2.add(new Month(5, 2001), 124.1);
        s2.add(new Month(6, 2001), 122.6);
        s2.add(new Month(7, 2001), 119.2);
        s2.add(new Month(8, 2001), 116.5);
        s2.add(new Month(9, 2001), 112.7);
        s2.add(new Month(10, 2001), 101.5);
        s2.add(new Month(11, 2001), 106.1);
        s2.add(new Month(12, 2001), 110.3);
        s2.add(new Month(1, 2002), 111.7);
        s2.add(new Month(2, 2002), 111.0);
        s2.add(new Month(3, 2002), 109.6);
        s2.add(new Month(4, 2002), 113.2);
        s2.add(new Month(5, 2002), 111.6);
        s2.add(new Month(6, 2002), 108.8);
        s2.add(new Month(7, 2002), 101.6);

        // ******************************************************************
        //  More than 150 demo applications are included with the JFreeChart
        //  Developer Guide...for more information, see:
        //
View Full Code Here

     *
     * @return the dataset.
     */
    public static XYDataset createDataset() {
      TimeSeries s1 = new TimeSeries("L&G European Index Trust", Month.class);
      s1.add(new Month(2, 2001), 181.8);
      s1.add(new Month(3, 2001), 167.3);
      s1.add(new Month(4, 2001), 153.8);
      s1.add(new Month(5, 2001), 167.6);
      s1.add(new Month(6, 2001), 158.8);
      s1.add(new Month(7, 2001), 148.3);
      s1.add(new Month(8, 2001), 153.9);
      s1.add(new Month(9, 2001), 142.7);
      s1.add(new Month(10, 2001), 123.2);
      s1.add(new Month(11, 2001), 131.8);
      s1.add(new Month(12, 2001), 139.6);
      s1.add(new Month(1, 2002), 142.9);
      s1.add(new Month(2, 2002), 138.7);
      s1.add(new Month(3, 2002), 137.3);
      s1.add(new Month(4, 2002), 143.9);
      s1.add(new Month(5, 2002), 139.8);
      s1.add(new Month(6, 2002), 137.0);
      s1.add(new Month(7, 2002), 132.8);
      TimeSeries s2 = new TimeSeries("L&G UK Index Trust", Month.class);
      s2.add(new Month(2, 2001), 129.6);
      s2.add(new Month(3, 2001), 123.2);
      s2.add(new Month(4, 2001), 117.2);
      s2.add(new Month(5, 2001), 124.1);
      s2.add(new Month(6, 2001), 122.6);
      s2.add(new Month(7, 2001), 119.2);
      s2.add(new Month(8, 2001), 116.5);
      s2.add(new Month(9, 2001), 112.7);
      s2.add(new Month(10, 2001), 101.5);
      s2.add(new Month(11, 2001), 106.1);
      s2.add(new Month(12, 2001), 110.3);
      s2.add(new Month(1, 2002), 111.7);
      s2.add(new Month(2, 2002), 111.0);
      s2.add(new Month(3, 2002), 109.6);
      s2.add(new Month(4, 2002), 113.2);
      s2.add(new Month(5, 2002), 111.6);
      s2.add(new Month(6, 2002), 108.8);
      s2.add(new Month(7, 2002), 101.6);
      TimeSeriesCollection dataset = new TimeSeriesCollection();
      dataset.addSeries(s1);
      dataset.addSeries(s2);
      return dataset;
    }
View Full Code Here

    /**
     * Common test setup.
     */
    protected void setUp() {
        this.jan1900 = new Month(MonthConstants.JANUARY, 1900);
        this.feb1900 = new Month(MonthConstants.FEBRUARY, 1900);
        this.nov9999 = new Month(MonthConstants.NOVEMBER, 9999);
        this.dec9999 = new Month(MonthConstants.DECEMBER, 9999);
    }
View Full Code Here

TOP

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

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.