Examples of Series

  • org.apache.hadoop.chukwa.hicc.bean.Series
  • org.dussan.vaadin.dcharts.options.Series
  • org.eclipse.birt.chart.model.component.Series
  • org.jfree.data.general.Series
    Base class representing a data series. Subclasses are left to implement the actual data structures.

    The series has two properties ("Key" and "Description") for which you can register a PropertyChangeListener.

    You can also register a {@link SeriesChangeListener} to receive notificationof changes to the series data.

  • org.one2team.highcharts.shared.Series
  • org.openfaces.component.chart.Series
    @author Ekaterina Shliakhovetskaya
  • org.opengis.metadata.citation.Series
    eospatial.org/standards/as#01-111">ISO 19115 @author Martin Desruisseaux (IRD) @since GeoAPI 1.0
  • org.restlet.util.Series
    Modifiable list of entries with many helper methods. Note that this class uses the Parameter class as the template type. This allows you to use an instance of this class as any other java.util.List, in particular all the helper methods in java.util.Collections. @author Jerome Louvel @param < E> The contained type @see org.restlet.data.Parameter @see java.util.Collections @see java.util.List
  • org.wicketstuff.flot.Series
  • pass.Series

  • Examples of org.apache.hadoop.chukwa.hicc.bean.Series

        seriesName.append(":");
        seriesName.append(family);
        seriesName.append(":");
        seriesName.append(column);

        Series series = new Series(seriesName.toString());
        try {
          HTableInterface table = pool.getTable(tableName);
          Calendar c = Calendar.getInstance();
          c.setTimeInMillis(startTime);
          c.set(Calendar.MINUTE, 0);
          c.set(Calendar.SECOND, 0);
          c.set(Calendar.MILLISECOND, 0);
          String startRow = c.getTimeInMillis()+rkey;
          Scan scan = new Scan();
          scan.addColumn(family.getBytes(), column.getBytes());
          scan.setStartRow(startRow.getBytes());
          scan.setTimeRange(startTime, endTime);
          scan.setMaxVersions();
          if(filterByRowKey) {
            RowFilter rf = new RowFilter(CompareOp.EQUAL, new
                RegexStringComparator("[0-9]+-"+rkey+"$"));
            scan.setFilter(rf);
          }
          ResultScanner results = table.getScanner(scan);
          Iterator<Result> it = results.iterator();
          // TODO: Apply discrete wavelet transformation to limit the output
          // size to 1000 data points for graphing optimization. (i.e jwave)
          while(it.hasNext()) {
            Result result = it.next();
            String temp = new String(result.getValue(family.getBytes(), column.getBytes()));
            double value = Double.parseDouble(temp);
            // TODO: Pig Store function does not honor HBase timestamp, hence need to parse rowKey for timestamp.
            String buf = new String(result.getRow());
            Long timestamp = Long.parseLong(buf.split("-")[0]);
            // If Pig Store function can honor HBase timestamp, use the following line is better.
            // series.add(result.getCellValue().getTimestamp(), value);
            series.add(timestamp, value);
          }
          results.close();
          table.close();
        } catch(Exception e) {
          log.error(ExceptionUtil.getStackTrace(e));
    View Full Code Here

    Examples of org.dussan.vaadin.dcharts.options.Series

           
            dataSeries.add(names[i], values[i]);
           
          }
         
          Series series = new Series().addSeries(
                  new XYseries().setShowLine(true).setMarkerOptions(new MarkerRenderer().setShadow(true).setSize(7).setStyle(MarkerStyles.CIRCLE)));
          options.setSeries(series);
         
          options.setAnimate(true);
          options.setAnimateReplot(true);
    View Full Code Here

    Examples of org.eclipse.birt.chart.model.component.Series

      Axis xAxisPrimary = initX(cwa3DLine);
      Axis yAxisPrimary = initY(cwa3DLine, xAxisPrimary);

      // X-Series
      Series seCategory = SeriesImpl.create();
      final double[] xvalues = results.getColumn(0);
      seCategory.setDataSet(NumberDataSetImpl.create(xvalues));
      SeriesDefinition sdX = SeriesDefinitionImpl.create();
      xAxisPrimary.getSeriesDefinitions().add(sdX);
      sdX.getSeries().add(seCategory);
     
      SeriesDefinition sdY = SeriesDefinitionImpl.create();
    View Full Code Here

    Examples of org.jfree.data.general.Series

             return;
          }

          // to be defensive, let's check that the source series does in fact
          // belong to this collection
          Series s = (Series) e.getSource();
          if (getSeries(s.getKey()) == null)
          {
             throw new IllegalStateException("Receiving events from a series "
                     + "that does not belong to this collection.");
          }
          // check if the new series name already exists for another series
    View Full Code Here

    Examples of org.jfree.data.general.Series

                return;
            }
           
            // to be defensive, let's check that the source series does in fact
            // belong to this collection
            Series s = (Series) e.getSource();
            if (getSeries(s.getKey()) == null) {
                throw new IllegalStateException("Receiving events from a series " +
                        "that does not belong to this collection.");
            }
            // check if the new series name already exists for another series
            Comparable key = (Comparable) e.getNewValue();
    View Full Code Here

    Examples of org.jfree.data.general.Series

                return;
            }
           
            // to be defensive, let's check that the source series does in fact
            // belong to this collection
            Series s = (Series) e.getSource();
            if (getSeriesIndex(s.getKey()) == -1) {
                throw new IllegalStateException("Receiving events from a series " +
                        "that does not belong to this collection.");
            }
            // check if the new series name already exists for another series
            Comparable key = (Comparable) e.getNewValue();
    View Full Code Here

    Examples of org.one2team.highcharts.shared.Series

            .setEnabled (true)
            .setColor ("#000000")
            .setFormatter (
                "function() {return '<b>'+ this.point.name +'</b>: '+ this.y +' %';}");

        Series newSeries = factory.createSeries ().setName ("Winter 2007-2008");
        chartOptions.getSeries ().pushElement (newSeries);
        newSeries
            .getData ()
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 9, 27)).setY (0))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 10, 10)).setY (0.6))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 10, 18)).setY (0.7))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 2)).setY (0.8))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 9)).setY (0.6))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 16)).setY (0.6))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 28)).setY (0.67))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 0, 1)).setY (0.81))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 0, 8)).setY (0.78))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 0, 12)).setY (0.98))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 0, 27)).setY (1.84))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 1, 10)).setY (1.8))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 1, 18)).setY (1.8))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 1, 24)).setY (1.92))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 2, 4)).setY (2.49))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 2, 11)).setY (2.79))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 2, 15)).setY (2.73))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 2, 25)).setY (2.61))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 2)).setY (2.76))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 6)).setY (2.82))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 13)).setY (2.8))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 4, 3)).setY (2.1))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 4, 26)).setY (1.1))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 5, 9)).setY (0.25))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 5, 12)).setY (0));

        newSeries = factory.createSeries ().setName ("Winter 2008-2009");
        chartOptions.getSeries ().pushElement (newSeries);
        newSeries
            .getData ()
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 9, 18)).setY (0))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 9, 26)).setY (0.2))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 1)).setY (0.47))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 11)).setY (0.55))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 11, 25)).setY (1.38))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 0, 8)).setY (1.38))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 0, 15)).setY (1.38))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 1, 1)).setY (1.38))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 1, 8)).setY (1.48))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 1, 21)).setY (1.5))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 2, 12)).setY (1.89))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 2, 25)).setY (2.0))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 4)).setY (1.94))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 9)).setY (1.91))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 13)).setY (1.75))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 3, 19)).setY (1.6))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 4, 25)).setY (0.6))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 4, 31)).setY (0.35))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1971, 5, 7)).setY (0));

        newSeries = factory.createSeries ().setName ("Winter 2009-2010");
        chartOptions.getSeries ().pushElement (newSeries);
        newSeries
            .getData ()
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 9, 9)).setY (0))
            .pushElement (
                factory.createPoint ().setX (getDateUTC (1970, 9, 14)).setY (0.15))
    View Full Code Here

    Examples of org.openfaces.component.chart.Series

            if (nonEmptySeriesList.size() == 0) {
                dataEmpty = true;
                return;
            }

            Series firstSeries = nonEmptySeriesList.get(0);
            Tuple[] tuples = firstSeries.getTuples();
            Tuple firstTuple = tuples[0];

            Object key = firstTuple.getKey();
            if (key instanceof Number) {
                modelType = ModelType.Number;
    View Full Code Here

    Examples of org.opengis.metadata.citation.Series

            assertEquals("title", "My data", citation.getTitle().toString());
            /*
             * Programmatic verification of the Series properties,
             * which is the main object of interest in this test.
             */
            final Series series = citation.getSeries();
            assertFalse("Unexpected proxy", Proxy.isProxyClass(series.getClass()));
            assertInstanceOf("Expected IdentifiedObject", IdentifiedObject.class, series);
            final IdentifierMap map = ((IdentifiedObject) series).getIdentifierMap();
            assertEquals("series", "My aggregate dataset",  series.getName().toString());
            assertNull  ("href", map.get(IdentifierSpace.HREF));
            assertEquals(UUID_VALUE, String.valueOf(map.get(IdentifierSpace.UUID)));
            /*
             * Marshal the object back to XML and compare with the original string
             * supplied to this method.
    View Full Code Here

    Examples of org.opengis.metadata.citation.Series

            assertEquals("Citation.title""My data", citation.getTitle().toString());
            /*
             * Programmatic verification of the Series properties,
             * which is the main object of interest in this test.
             */
            final Series series = citation.getSeries();
            assertInstanceOf("Citation.series", IdentifiedObject.class, series);
            assertFalse     ("Citation.series.isProxy", Proxy.isProxyClass(series.getClass()));
            assertEquals    ("Citation.series.name", "My aggregate dataset", series.getName().toString());
            final IdentifierMap map = ((IdentifiedObject) series).getIdentifierMap();
            assertNull  ("href",             map.get(IdentifierSpace.HREF));
            assertEquals("uuid", UUID_VALUE, map.get(IdentifierSpace.UUID));
            /*
             * Marshal the object back to XML and compare with the expected result. The result shall be
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.