List of usage examples for com.google.gwt.core.client JavaScriptObject createObject
public static native JavaScriptObject createObject() ;
From source file:com.googlecode.gflot.client.options.SelectionOptions.java
License:Open Source License
/** * Creates a {@link SelectionOptions}/*from w w w .j a va 2s .c o m*/ */ public static final SelectionOptions create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gflot.client.options.SeriesGradient.java
License:Open Source License
/** * Creates a {@link SeriesGradient} with specified gradient *///from w w w .j av a 2s.c o m public static SeriesGradient of(Double fromOpacity, Double fromBrightness, Double toOpacity, Double toBrightness) { SeriesGradient gradient = JavaScriptObject.createObject().cast(); JsArray<Gradient> array = JavaScriptObject.createArray().cast(); array.push(Gradient.of(fromOpacity, fromBrightness)); array.push(Gradient.of(toOpacity, toBrightness)); gradient.put(FILL_COLOR_COLORS_KEY, array); return gradient; }
From source file:com.googlecode.gflot.client.options.TimeSeriesAxisOptions.java
License:Open Source License
/** * Creates a {@link TimeSeriesAxisOptions} *///from w w w . j a v a2s. c om public static final TimeSeriesAxisOptions create() { TimeSeriesAxisOptions axis = JavaScriptObject.createObject().cast(); axis.put(MODE_KEY, TIME_MODE_KEY); return axis; }
From source file:com.googlecode.gflot.client.options.ZoomOptions.java
License:Open Source License
/** * Creates a {@link ZoomOptions} */ public static final ZoomOptions create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gflot.client.Pan.java
License:Open Source License
public static Pan create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gflot.client.PlotSelectionArea.java
License:Open Source License
/** * Creates a {@link PlotSelectionArea}// w w w.j a va 2 s . c om * * @return a {@link PlotSelectionArea} */ public static PlotSelectionArea create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gflot.client.Series.java
License:Open Source License
/** * Creates a {@link Series} * * @return a {@link Series} */ public static Series create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gflot.client.Zoom.java
License:Open Source License
public static Zoom create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gwt.charts.client.query.QueryOptions.java
License:Apache License
public static QueryOptions create() { return JavaScriptObject.createObject().cast(); }
From source file:com.googlecode.gwtgl.binding.WebGLContextAttributes.java
License:Apache License
/** * Creates a new instance of the {@link WebGLContextAttributes}. * /*from w w w. ja v a2 s . c om*/ * @return the created instance. */ public static WebGLContextAttributes create() { return JavaScriptObject.createObject().cast(); }