// Create a new series with the adjusted magnitude.
if (!magDeltaDlg.isCancelled()) {
magDelta = magDeltaField.getValue();
SeriesType type = seriesSelector.getSeries();
List<ValidObservation> obs = seriesInfo.getObservations(type);
String description = String.format("%s shifted by %s", type
.getDescription(), NumericPrecisionPrefs
.formatMag(magDelta));
String shortName = String.format("%s + %s",
type.getShortName(), NumericPrecisionPrefs
.formatMag(magDelta));
Color color = type.getColor();
// SeriesType newType = SeriesType.create(description,
// shortName,
// color, true, true);
// TODO: why does plot zoom cause a shift series to disappear?
SeriesType newType = type;
List<ValidObservation> newObs = new ArrayList<ValidObservation>(
obs);
for (ValidObservation newOb : newObs) {
Magnitude newMag = new Magnitude(newOb.getMag() + magDelta,