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

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


  public void testVisibleRange() {
    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);
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);
View Full Code Here

  @SuppressWarnings("deprecation")
  public AnnotatedDemo() {
    @SuppressWarnings("unused")
    int year, month, day;
    Options options = Options.create();
    options.setDisplayAnnotations(true);

    DataTable data = DataTable.create();
    data.addColumn(ColumnType.DATE, "Date");
    data.addColumn(ColumnType.NUMBER, "Sold Pencils");
    data.addColumn(ColumnType.STRING, "title1");
View Full Code Here

  public void testAnnotatedTimeLine() {
    loadApi(new Runnable() {
      @SuppressWarnings("deprecation")
      public void run() {
        Widget widget;
        Options options = Options.create();
        options.setAllowHtml(false);
        options.setAllowRedraw(true);
        options.setAllValuesSuffix("ski");
        options.setAnnotationsWidth(5);
        options.setColors("blue", "purple", "pink");
        options.setDisplayAnnotations(true);
        options.setDisplayAnnotationsFilter(true);
        options.setDisplayExactValues(true);
        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

  public void testLegend() {
    loadApi(new Runnable() {
      public void run() {
        Widget widget;
        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

  public void testScaleType() {
    loadApi(new Runnable() {
      public void run() {
        Widget widget;
        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

  public void testWindowMode() {
    loadApi(new Runnable() {
      public void run() {
        Widget widget;
        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

            } else {
              // Get the data from the QueryResponse.
              DataTable data = response.getDataTable();

              // Create the Options object.
              Options options = Options.create();
              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

TOP

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

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.