/** * Removes an existing value from the series. * * @param index the index in the series of the value to remove */ public synchronized void remove(int index) { XYEntry<Double, Double> removedEntry = mXY.removeByIndex(index); double removedX = removedEntry.getKey(); double removedY = removedEntry.getValue(); if (removedX == mMinX || removedX == mMaxX || removedY == mMinY || removedY == mMaxY) { initRange(); } }
public XYSeries(String s, int i) { mX = new ArrayList(); mY = new ArrayList(); mMinX = 1.7976931348623157E+308D; mMaxX = -1.7976931348623157E+308D; mMinY = 1.7976931348623157E+308D; mMaxY = -1.7976931348623157E+308D; mTitle = s; mScaleNumber = i; initRange(); }
public void clear() { this; JVM INSTR monitorenter ; mX.clear(); mY.clear(); initRange(); this; JVM INSTR monitorexit ; return; Exception exception; exception; throw exception; }
public void remove(int i) { this; JVM INSTR monitorenter ; double d = ((Double)mX.remove(i)).doubleValue(); double d1 = ((Double)mY.remove(i)).doubleValue(); if(d == mMinX || d == mMaxX || d1 == mMinY || d1 == mMaxY) initRange(); this; JVM INSTR monitorexit ; return; Exception exception; exception; throw exception; }
/** * Builds a new XY series. * * @param title the series title. * @param scaleNumber the series scale number */ public XYSeries(String title, int scaleNumber) { mTitle = title; mScaleNumber = scaleNumber; initRange(); }
/** Removes all the existing values from the series. */ public synchronized void clear() { mXY.clear(); initRange(); }
/** Removes all the existing values from the series but annotations. */ public synchronized void clearSeriesValues() { mXY.clear(); initRange(); }