Ejemplo n.º 1
0
 public void removeAllSeries() {
   for (GraphViewSeries s : graphSeries) {
     s.removeGraphView(this);
   }
   while (!graphSeries.isEmpty()) {
     graphSeries.remove(0);
   }
   redrawAll();
 }
Ejemplo n.º 2
0
 public void scrollToEnd() {
   if (!scrollable) throw new IllegalStateException("This GraphView is not scrollable.");
   double max = getMaxX(true);
   viewportStart = max - viewportSize;
   redrawAll();
 }
Ejemplo n.º 3
0
 public void removeSeries(GraphViewSeries series) {
   series.removeGraphView(this);
   graphSeries.remove(series);
   redrawAll();
 }
Ejemplo n.º 4
0
 public void addSeries(GraphViewSeries series) {
   series.addGraphView(this);
   graphSeries.add(series);
   redrawAll();
 }
Ejemplo n.º 5
0
 /**
  * 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();
   }
 }