Esempio n. 1
0
 public void removeAllSeries() {
   for (GraphViewSeries s : graphSeries) {
     s.removeGraphView(this);
   }
   while (!graphSeries.isEmpty()) {
     graphSeries.remove(0);
   }
   redrawAll();
 }
Esempio n. 2
0
 public void scrollToEnd() {
   if (!scrollable) throw new IllegalStateException("This GraphView is not scrollable.");
   double max = getMaxX(true);
   viewportStart = max - viewportSize;
   redrawAll();
 }
Esempio n. 3
0
 public void removeSeries(GraphViewSeries series) {
   series.removeGraphView(this);
   graphSeries.remove(series);
   redrawAll();
 }
Esempio n. 4
0
 public void addSeries(GraphViewSeries series) {
   series.addGraphView(this);
   graphSeries.add(series);
   redrawAll();
 }
 /**
  * clears the current data and set the new. redraws the graphview(s)
  *
  * @param values new data
  */
 public void resetData(GraphViewDataInterface[] values) {
   this.values = values;
   for (GraphView g : graphViews) {
     g.redrawAll();
   }
 }