Exemplo n.º 1
0
 public void init(HighchartConfig config) {
   HighchartJsOverlay old = jsOverlay;
   if (old != null) {
     old.destroy();
   }
   jsOverlay = config.renderTo(getElement());
 }
Exemplo n.º 2
0
 public int getSeriesIndex(HighchartSeries series) {
   JsArray<HighchartSeries> serA = jsOverlay.getSeries();
   for (int i = 0; i < serA.length(); i++) {
     if (serA.get(i) == series) {
       return i;
     }
   }
   return -1;
 }
Exemplo n.º 3
0
 public void slicePoint(
     int seriesIndex, int pointIndex, boolean sliced, boolean redraw, boolean animation) {
   HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex);
   HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex);
   highchartPoint.slice(sliced, redraw, animation);
 }
Exemplo n.º 4
0
 public void setAnimation(boolean animation) {
   jsOverlay.setAnimation(animation);
 }
Exemplo n.º 5
0
 public void updateyAxis(
     int axisIndex, double minimum, double maximum, boolean redraw, boolean animate) {
   JsArray<HighchartAxis> axes = jsOverlay.getyAxes();
   axes.get(axisIndex).setExtremes(minimum, maximum, redraw, animate);
 }
Exemplo n.º 6
0
 public void setSeriesEnabled(int seriesIndex, boolean enabled) {
   jsOverlay.setSeriesEnabled(seriesIndex, enabled);
 }
Exemplo n.º 7
0
 public void removePoint(int pointIndex, int seriesIndex) {
   jsOverlay.removePoint(pointIndex, seriesIndex);
 }
Exemplo n.º 8
0
 public void updatePointValue(int seriesIndex, int pointIndex, String json) {
   HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex);
   HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex);
   highchartPoint.update(json);
 }
Exemplo n.º 9
0
 public void updatePointValue(int seriesIndex, int pointIndex, double newValue) {
   HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex);
   HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex);
   highchartPoint.update(newValue);
 }
Exemplo n.º 10
0
 public void addPoint(String pointJson, int seriesIndex, boolean shift) {
   jsOverlay.addPoint(pointJson, seriesIndex, true, shift);
 }
Exemplo n.º 11
0
 public void addDrilldown(String series, int seriesIndex, int pointIndex) {
   jsOverlay.addDrilldown(series, seriesIndex, pointIndex);
 }
Exemplo n.º 12
0
 public void updateSize() {
   jsOverlay.setSize(getOffsetWidth(), getOffsetHeight(), false, true);
 }