Examples of ScatterChart


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

public class ScatterChartTest extends VisualizationTest {

  public void testOnMouseOver() {
    loadApi(new Runnable() {
      public void run() {
        ScatterChart chart;
        Options options = Options.create();
        chart = new ScatterChart(createCompanyPerformance(), options);
        chart.addOnMouseOverHandler(new OnMouseOverHandler() {
          @Override
          public void onMouseOverEvent(OnMouseOverEvent event) {
            assertNotNull(event);
            assertEquals(1, event.getRow());
            assertEquals(1, event.getColumn());
            finishTest();
          }
        });
        triggerOnMouseOver(chart.getJso());
      }
    }, false);
  }
View Full Code Here

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

  }
 
  public void testOnMouseOut() {
    loadApi(new Runnable() {
      public void run() {
        ScatterChart chart;
        Options options = Options.create();
        chart = new ScatterChart(createCompanyPerformance(), options);
        chart.addOnMouseOutHandler(new OnMouseOutHandler() {
          @Override
          public void onMouseOutEvent(OnMouseOutEvent event) {
            assertNotNull(event);
            assertEquals(1, event.getRow());
            assertEquals(1, event.getColumn());
            finishTest();
          }
        });
        triggerOnMouseOut(chart.getJso());
      }
    }, false);
 
View Full Code Here

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

        Options options = Options.create();
        options.setWidth(400);
        options.setHeight(400);
        options.setLineSize(2);
        options.setPointSize(5);
        widget = new ScatterChart(createCompanyPerformance(), options);
        RootPanel.get().add(widget);
      }
    });
  }
View Full Code Here

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

        h2     =  "Temperatura(fahrenheit)";
        h1type  =  ColumnType.DATETIME;
        h2type  =  ColumnType.NUMBER;
        // Creo il grafico

        ScatterChart pie = new ScatterChart(createTable(), createScarredOptions());

        DecoratorPanel   dp        = new DecoratorPanel(); // panel about search
        VerticalPanel   hpv       = new VerticalPanel();//
        HorizontalPanel hpz       = new HorizontalPanel();
View Full Code Here

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

            pieLayer.add(lineChart);
          }
          // se il grafico è a punti
          if (GRAPH.equals(Constant.GRAPH_POINT)){

            ScatterChart scChart = new ScatterChart(createTable(),createScarredOptions());
            pieLayer.add(scChart);
          }
          // se il grafico è un grafico con timeline
          if (GRAPH.equals(Constant.GRAPH_TIMELINE)){
            Runnable onLoadCallback = new Runnable()  {
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.ScatterChart

    vAxisOptions.setMaxValue(20);
    options.setVAxisOptions(vAxisOptions);

    DataTable data = Showcase.getSugarSaltAndCaloriesComparison();

    ScatterChart viz = new ScatterChart(data, options);
    Label status = new Label();
    Label onMouseOverAndOutStatus = new Label();
    viz.addSelectHandler(new SelectionDemo(viz, status));
    viz.addReadyHandler(new ReadyDemo(status));
    viz.addOnMouseOverHandler(new com.google.gwt.visualization.sample.visualizationshowcase.client.OnMouseOverDemo(onMouseOverAndOutStatus));
    viz.addOnMouseOutHandler(new com.google.gwt.visualization.sample.visualizationshowcase.client.OnMouseOutDemo(onMouseOverAndOutStatus));
    result.add(status);
    result.add(viz);
    result.add(onMouseOverAndOutStatus);
    return result;
  }
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.ScatterChart

        // Create a minimal scatter chart.
        Options options = Options.create();
        options.setWidth(400);
        options.setHeight(240);
        RootPanel.get().add(new ScatterChart(data, options));
      }
    });
  }
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.ScatterChart

  public void testOnMouseOver() {
    loadApi(new Runnable() {
      public void run() {
        Options options = Options.create();
        ScatterChart chart = new ScatterChart(getSugarSaltAndCaloriesComparison(), options);
        chart.addOnMouseOverHandler(new OnMouseOverHandler() {
          @Override
          public void onMouseOverEvent(OnMouseOverEvent event) {
            assertNotNull(event);
            assertEquals(1, event.getRow());
            assertEquals(1, event.getColumn());
            finishTest();
          }
        });
        triggerOnMouseOver(chart.getJso());
      }
    }, false);
  }
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.ScatterChart

  public void testOnMouseOut() {
    loadApi(new Runnable() {
      public void run() {
        Options options = Options.create();
        ScatterChart chart = new ScatterChart(getSugarSaltAndCaloriesComparison(), options);
        chart.addOnMouseOutHandler(new OnMouseOutHandler() {
          @Override
          public void onMouseOutEvent(OnMouseOutEvent event) {
            assertNotNull(event);
            assertEquals(1, event.getRow());
            assertEquals(1, event.getColumn());
            finishTest();
          }
        });
        triggerOnMouseOut(chart.getJso());
      }
    }, false);
  }
View Full Code Here

Examples of ofc4j.model.elements.ScatterChart

    for ( int row = 0; row < getRowCount(); row++ ) {
      Element e = null;
      String text = getRowHeader( row );

      ScatterChart sc = new ScatterChart( "" ); //$NON-NLS-1$
      sc.setColour( getColor( row ) );
      Number x = (Number) getValueAt( row, 0 );
      Number y = (Number) getValueAt( row, 1 );
      Number z = (Number) getValueAt( row, 2 );

      setupDotSize( sc, z );

      sc.addPoint( x.doubleValue(), y.doubleValue() );

      if ( content != null ) {
        String zstr = null;
        if ( df != null ) {
          zstr = df.format( z );
        } else {
          if ( z != null ) {
            zstr = z.toString();
          }
        }
        sc.setTooltip( MessageFormat.format( content, text, NumberFormat.getInstance().format( x ), NumberFormat
            .getInstance().format( y ), zstr ) );
      }

      if ( alpha != null ) {
        sc.setAlpha( alpha );
      }

      e = sc;
      e.setText( text );
      elements.add( e );
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.