List of usage examples for com.google.gwt.visualization.client.visualizations ImageLineChart PACKAGE
String PACKAGE
To view the source code for com.google.gwt.visualization.client.visualizations ImageLineChart PACKAGE.
Click Source Link
From source file:com.google.gwt.visualization.sample.visualizationshowcase.client.Showcase.java
License:Apache License
public void onModuleLoad() { VisualizationUtils.loadVisualizationApi(new Runnable() { public void run() { final VerticalPanel vp = new VerticalPanel(); vp.setSpacing(15);/* ww w.j a va 2 s . c om*/ RootPanel.get().add(vp); vp.add(new HTML("The following visualizations are included in the GWT " + "Visualization API in the package " + "<tt>com.google.gwt.visualization.client.visualizations</tt>. " + "For a full listing of visualizations available in GWT, see <a href=" + '"' + "http://code.google.com/apis/visualization/documentation/gallery.html" + '"' + ">the Google Visualization API</a>.")); LeftTabPanel tabby = new LeftTabPanel(); vp.add(tabby); AnnotatedDemo annotatedWidget = new AnnotatedDemo(); tabby.add(annotatedWidget, "AnnotatedTimeLine"); tabby.add(new AreaDemo(), "AreaChart"); tabby.add(new ImageAreaDemo(), "AreaChart (Image)"); tabby.add(new BarDemo(), "BarChart"); tabby.add(new ImageBarDemo(), "BarChart (Image)"); tabby.add(new ColumnDemo(), "ColumnChart"); tabby.add(new GaugeDemo(), "Gauge"); tabby.add(new GeoDemo(), "GeoMap"); tabby.add(new IntensityDemo(), "IntensityMap"); tabby.add(new LineDemo(), "LineChart"); tabby.add(new ImageLineDemo(), "LineChart (Image)"); tabby.add(new MapDemo(), "Map"); tabby.add(new MoneyDemo(), "MoneyChart"); tabby.add(new MotionDemo(), "MotionChart"); tabby.add(new OrgDemo(), "OrgChart"); tabby.add(new PieDemo(), "PieChart"); tabby.add(new ImagePieDemo(), "PieChart (Image)"); tabby.add(new ImageDemo(), "RadarChart (Image)"); tabby.add(new ScatterDemo(), "ScatterChart"); tabby.add(new SparklineDemo(), "Sparkline (Image)"); tabby.add(new TableDemo(), "Table"); tabby.add(new ToolbarDemo(), "Toolbar"); tabby.setWidget(annotatedWidget); } }, AnnotatedTimeLine.PACKAGE, CoreChart.PACKAGE, Gauge.PACKAGE, GeoMap.PACKAGE, ImageChart.PACKAGE, ImageLineChart.PACKAGE, ImageAreaChart.PACKAGE, ImageBarChart.PACKAGE, ImagePieChart.PACKAGE, IntensityMap.PACKAGE, MapVisualization.PACKAGE, MotionChart.PACKAGE, OrgChart.PACKAGE, Table.PACKAGE, ImageSparklineChart.PACKAGE); }
From source file:org.jax.drakegenetics.gwtclientapp.client.MetabolismChart.java
License:Open Source License
/** * Constructor/*from w w w .ja va 2 s.c om*/ * @param visAPIPreloaded * set to true if the visualization API has already been loaded * with LineChart (otherwise this constructor will do it) */ public MetabolismChart(boolean visAPIPreloaded) { this.absolutePositionsPanel = new AbsolutePanel(); this.initWidget(this.absolutePositionsPanel); if (visAPIPreloaded) { MetabolismChart.visAPILoaded = true; } // TODO we have a race condition here if multiple charts are constructed // before initialization has a chance to complete if (!MetabolismChart.visAPILoaded) { Runnable loadLineChartCallback = new Runnable() { public void run() { MetabolismChart.this.visualizationAPILoaded(); } }; VisualizationUtils.loadVisualizationApi(loadLineChartCallback, ImageLineChart.PACKAGE); } }