/** * set properties on dataselection * * @param dataSelection the dataselection */ public void applyToDataSelection(DataSelection dataSelection) { if (dataSelection != null) { StationModel plotModel = getPlotModel(); if (plotModel != null) { dataSelection.putProperty(PROP_STATIONMODELNAME, plotModel.getName()); } } }
/** * set the plot model * * @param sm the plot model */ public void setPlotModel(StationModel sm) { this.plotModel = sm; if (sm != null) { label.setText(sm.getDisplayName()); } else { label.setText("None"); } label.repaint(); }