private void stopDataPoint(int dataPointId) { synchronized (dataPoints) { // Remove this point from the data image if it is there. If not, just quit. DataPointRT p = dataPoints.remove(dataPointId); // Remove it from the data source, and terminate it. if (p != null) { getRunningDataSource(p.getDataSourceId()).removeDataPoint(p); DataPointListener l = getDataPointListeners(dataPointId); if (l != null) l.pointTerminated(); p.terminate(); } } }