Пример #1
0
 public static Plot create(Element container, Series[] series, PlotOptions options) {
   JavaScriptObject optionsJs = null;
   if (null == options) {
     optionsJs = null;
   } else {
     optionsJs = JSONHelper.getJSONObject(options).getJavaScriptObject();
   }
   return PlotImpl.create(
       container,
       JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject(),
       optionsJs);
 }
Пример #2
0
 public static void loadDataImages(
     Series[] series, PlotOptions options, LoadImagesCallback callback) {
   JavaScriptObject optionsJs = null;
   if (null == options) {
     optionsJs = null;
   } else {
     optionsJs = JSONHelper.getJSONObject(options).getJavaScriptObject();
   }
   PlotImpl.loadDataImages(
       JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject(),
       optionsJs,
       callback);
 }
Пример #3
0
 public final void setData(Series[] series) {
   PlotImpl.setData(
       this, JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject());
 }
Пример #4
0
 public static Plot create(Element container, Series[] series) {
   return PlotImpl.create(
       container, JSONHelper.getJSONArray(JSONHelper.wrapArray(series)).getJavaScriptObject());
 }
Пример #5
0
 public final void lockCrosshair(PlotPosition pos) {
   PlotImpl.lockCrosshair(this, JSONHelper.getJSONObject(pos).getJavaScriptObject());
 }
Пример #6
0
 public final void pan(Pan pan) {
   PlotImpl.pan(this, JSONHelper.getJSONObject(pan).getJavaScriptObject());
 }
Пример #7
0
 public final void zoomOut(Zoom zoom) {
   PlotImpl.zoomOut(this, JSONHelper.getJSONObject(zoom).getJavaScriptObject());
 }
Пример #8
0
 public final void setSelection(PlotSelectionArea area, boolean preventEvent) {
   PlotImpl.setSelection(this, JSONHelper.getJSONObject(area).getJavaScriptObject(), preventEvent);
 }