Package com.google.gwt.visualization.client.visualizations

Examples of com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine


    data.setValue(4, 4, 66467);
    data.setValue(5, 1, 33322);
    data.setValue(5, 4, 39463);

    status.setText("'Ready' event was not yet fired");
    chart = new AnnotatedTimeLine(data, options, "700px", "240px");

    widget.add(chart);
    widget.add(status);
    widget.add(rangeStatus);
View Full Code Here


        options.setDisplayZoomButtons(true);
        options.setMin(-1);
        options.setZoomEndTime(new Date(109, 1, 1));
        options.setZoomStartTime(new Date(107, 1, 1));

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());
      }
    });
View Full Code Here

        Options options;

        options = Options.create();
        options.setLegendPosition(AnnotatedLegendPosition.NEW_ROW);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());

        options = Options.create();
        options.setLegendPosition(AnnotatedLegendPosition.SAME_ROW);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());
      }
    });
View Full Code Here

        Options options;

        options = Options.create();
        options.setScaleType(ScaleType.ALLFIXED);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());

        options = Options.create();
        options.setScaleType(ScaleType.ALLMAXIMIZE);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());

        options = Options.create();
        options.setScaleType(ScaleType.FIXED);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());

        options = Options.create();
        options.setScaleType(ScaleType.MAXIMIZE);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());
      }
    });
View Full Code Here

        Options options;

        options = Options.create();
        options.setWindowMode(WindowMode.OPAQUE);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());

        options = Options.create();
        options.setWindowMode(WindowMode.TRANSPARENT);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());

        options = Options.create();
        options.setWindowMode(WindowMode.WINDOW);

        widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
            "400px", "400px");
        RootPanel.get().add(widget);
        System.out.println(widget.getElement().getString());
      }
    });
View Full Code Here

    loadApi(new Runnable() {
      @SuppressWarnings("deprecation")
      public void run() {
        Options options = Options.create();

        final AnnotatedTimeLine widget = new AnnotatedTimeLine(
            createAnnotatedDataTable(), options, "400px", "400px");
        RootPanel.get().add(widget);

        widget.addReadyHandler(new ReadyHandler() {
          @Override
          public void onReady(ReadyEvent event) {
            widget.setVisibleChartRange(new Date(108, 1, 2),
                new Date(108, 1, 3));
            @SuppressWarnings("unused")
            DateRange dateRange = widget.getVisibleChartRange();

            // These tests fail now, as setting the range programatically does
            // not set the range in the getter.
            // I am on it in the js side, and then will uncomment here.
View Full Code Here

  public void testHideAndShowColumns() {
    loadApi(new Runnable() {
      public void run() {
        Options options = Options.create();

        final AnnotatedTimeLine widget = new AnnotatedTimeLine(
            createAnnotatedDataTable(), options, "400px", "400px");
        RootPanel.get().add(widget);

        widget.addReadyHandler(new ReadyHandler() {
          @Override
          public void onReady(ReadyEvent event) {
            widget.hideDataColumns(2, 3);
            widget.showDataColumns(2);
            finishTest();
          }
        });

      }
View Full Code Here

              options.setDisplayAnnotations(true);
              options.setWindowMode(WindowMode.TRANSPARENT);

              String width = StatisticsPresenter.this.display.chartAreaWidth() + "px";
              // Create a PieChart and add it to a panel.
              StatisticsPresenter.this.display.bottomChartArea().add(new AnnotatedTimeLine(data, options, width, "350px"));

            }
          }
        });
      }
View Full Code Here

          }
          // se il grafico è un grafico con timeline
          if (GRAPH.equals(Constant.GRAPH_TIMELINE)){
            Runnable onLoadCallback = new Runnable()  {
              public void run() {
                AnnotatedTimeLine scATime = new AnnotatedTimeLine(createTable(),createTimeLineOptions(), "700px", "400px");
                pieLayer.add(scATime );
              }
            };
            if (!loaded){
              VisualizationUtils.loadVisualizationApi(onLoadCallback, AnnotatedTimeLine.PACKAGE);
View Full Code Here

TOP

Related Classes of com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine

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.