public void removeAllSeries() { for (GraphViewSeries s : graphSeries) { s.removeGraphView(this); } while (!graphSeries.isEmpty()) { graphSeries.remove(0); } redrawAll(); }
public void scrollToEnd() { if (!scrollable) throw new IllegalStateException("This GraphView is not scrollable."); double max = getMaxX(true); viewportStart = max - viewportSize; redrawAll(); }
public void removeSeries(GraphViewSeries series) { series.removeGraphView(this); graphSeries.remove(series); redrawAll(); }
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(); } }