Examples of DataPoint


Examples of DisplayProject.DataPoint

        PolyLine line = new PolyLine();
        line.setPointArray(points);
        line.setLineStyle(lineStyle);
        line.setLineWeight(lineWeight);
        line.setVisible(true);
        DataPoint lastPoint = points.get(points.size()-1);
        ColourChange.setForeground(line, penColor);
        Parent.set(line, form);
        processActions();
        setXPen(form, lastPoint.X);
        setYPen(form, lastPoint.Y);
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

      public void selected(double x1, double y1, double x2, double y2) {
        plot.setLinearSelection(x1, x2);
      }
    });
    SeriesHandler s = plot.getModel().addSeries("Series 1");
    s.add(new DataPoint(1, 2));
    s.add(new DataPoint(2, 5));
    s.add(new DataPoint(3, 7));
    s.add(new DataPoint(4, 5));
    s.add(new DataPoint(5, 3));
    s.add(new DataPoint(6, 2));
    s.add(new DataPoint(7, 5));
    s.add(new DataPoint(8, 7));
    s.add(new DataPoint(9, 5));
    s.add(new DataPoint(10, 3));

    // Start of Marking Code
    Marking m = new Marking();
    m.setX(new Range(2, 4));
    m.setColor("#3BEFc3");
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

    return new FakeRpcServiceAsync() {

      public void getNewData(final AsyncCallback<DataPoint[]> callback) {
        double up = Random.nextDouble();
        double down = Random.nextDouble();
        callback.onSuccess(new DataPoint[] { new DataPoint(timeCounter++, previous - down),
            new DataPoint(timeCounter++, previous + up) });
        previous = previous + up;
      }
    };
  }
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

    // create a series
    SeriesHandler handler = model.addSeries("Ottawa's Month Temperatures (Daily Average in &deg;C)", "blue");

    // add data
    handler.add(new DataPoint(1, -10.5));
    handler.add(new DataPoint(2, -8.6));
    handler.add(new DataPoint(3, -2.4));
    handler.add(new DataPoint(4, 6));
    handler.add(new DataPoint(5, 13.6));
    handler.add(new DataPoint(6, 18.4));
    handler.add(new DataPoint(7, 21));
    handler.add(new DataPoint(8, 19.7));
    handler.add(new DataPoint(9, 14.7));
    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // put it on a panel
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

  }

  private FakeRpcServiceAsync getRpcService() {
    return new FakeRpcServiceAsync() {
      public void getNewData(final AsyncCallback<DataPoint[]> callback) {
        callback.onSuccess(new DataPoint[] { new DataPoint(Duration.currentTimeMillis(), Random.nextDouble()) });
      }
    };
  }
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

    SeriesHandler series = model.addSeries("Random Series", "#2c1d54");

    // generate random data
    for (int i = 0; i < 200; i++) {
      series.add(new DataPoint(i, Random.nextDouble()));
    }

    // create the plot
    final PlotWithOverview plot = new PlotWithOverview(model, plotOptions);
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

    // create a series
    SeriesHandler handler = model.addSeries("Ottawa's Month Temperatures (Daily Average in &deg;C)", "#007f00");

    // add data
    handler.add(new DataPoint(1, -10.5));
    handler.add(new DataPoint(2, -8.6));
    handler.add(new DataPoint(3, -2.4));
    handler.add(new DataPoint(4, 6));
    handler.add(new DataPoint(5, 13.6));
    handler.add(new DataPoint(6, 18.4));
    handler.add(new DataPoint(7, 21));
    handler.add(new DataPoint(8, 19.7));
    handler.add(new DataPoint(9, 14.7));
    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // add hover listener
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

    // work properly
    SeriesHandler ottawaSeries = model.addSeries("Ottawa", "#edc240");
    SeriesHandler vancouverSeries = model.addSeries("Vancouver", "#afd8f8");

    // add data
    ottawaSeries.add(new DataPoint(1, -10.5));
    ottawaSeries.add(new DataPoint(2, -8.6));
    ottawaSeries.add(new DataPoint(3, -2.4));
    ottawaSeries.add(new DataPoint(4, 6));
    ottawaSeries.add(new DataPoint(5, 13.6));
    ottawaSeries.add(new DataPoint(6, 18.4));
    ottawaSeries.add(new DataPoint(7, 21));
    ottawaSeries.add(new DataPoint(8, 19.7));
    ottawaSeries.add(new DataPoint(9, 14.7));
    ottawaSeries.add(new DataPoint(10, 8.2));
    ottawaSeries.add(new DataPoint(11, 1.5));
    ottawaSeries.add(new DataPoint(12, -6.6));

    vancouverSeries.add(new DataPoint(1, 4.8));
    vancouverSeries.add(new DataPoint(2, 5.9));
    vancouverSeries.add(new DataPoint(3, 7.6));
    vancouverSeries.add(new DataPoint(4, 10));
    vancouverSeries.add(new DataPoint(5, 13.2));
    vancouverSeries.add(new DataPoint(6, 15.9));
    vancouverSeries.add(new DataPoint(7, 18.1));
    vancouverSeries.add(new DataPoint(8, 18.3));
    vancouverSeries.add(new DataPoint(9, 15.4));
    vancouverSeries.add(new DataPoint(10, 11.1));
    vancouverSeries.add(new DataPoint(11, 7.1));
    vancouverSeries.add(new DataPoint(12, 4.8));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // put it on a panel
View Full Code Here

Examples of ca.nanometrics.gflot.client.DataPoint

    // create a series
    SeriesHandler handler = model.addSeries("Ottawa's Month Temperatures (Daily Average in &deg;C)", "blue");

    // add data
    handler.add(new DataPoint(1, -10.5));
    handler.add(new DataPoint(2, -8.6));
    handler.add(new DataPoint(3, -2.4));
    handler.add(new DataPoint(4, 6));
    handler.add(new DataPoint(5, 13.6));
    handler.add(new DataPoint(6, 18.4));
    handler.add(new DataPoint(7, 21));
    handler.add(new DataPoint(8, 19.7));
    handler.add(new DataPoint(9, 14.7));
    handler.add(new DataPoint(10, 8.2));
    handler.add(new DataPoint(11, 1.5));
    handler.add(new DataPoint(12, -6.6));

    // create the plot
    SimplePlot plot = new SimplePlot(model, plotOptions);

    // put it on a panel
View Full Code Here

Examples of com.amazonaws.services.cloudwatch.model.Datapoint

            GetMetricStatisticsResult getMetricStatisticsResult = cw.getMetricStatistics(request);

            double avgCPUUtilization = 0;
            List dataPoint = getMetricStatisticsResult.getDatapoints();
            for (Object aDataPoint : dataPoint) {
                Datapoint dp = (Datapoint) aDataPoint;
                avgCPUUtilization = dp.getAverage();
                log.info(instanceId + " instance's average CPU utilization : " + dp.getAverage());
            }

            return avgCPUUtilization;

        } catch (AmazonServiceException ase) {
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.