/** * 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 properties on dataselection * * @param dataSelection the dataselection */ public void applyToDataSelection(DataSelection dataSelection) { if (dataSelection != null) { if (!useDefaultCbx.isSelected()) { dataSelection.putProperty(PROP_GRID_X, new Float(getGridX())); dataSelection.putProperty(PROP_GRID_Y, new Float(getGridY())); dataSelection.putProperty(PROP_GRID_UNIT, getGridUnit()); dataSelection.putProperty(PROP_GRID_NUMPASSES, new Integer(getNumGridPasses())); dataSelection.putProperty(PROP_GRID_GAIN, new Float(getGridGain())); dataSelection.putProperty(PROP_GRID_SEARCH_RADIUS, new Float(getGridSearchRadius())); } else { dataSelection.removeProperty(PROP_GRID_X); dataSelection.removeProperty(PROP_GRID_Y); dataSelection.removeProperty(PROP_GRID_UNIT); dataSelection.removeProperty(PROP_GRID_NUMPASSES); dataSelection.removeProperty(PROP_GRID_GAIN); dataSelection.removeProperty(PROP_GRID_SEARCH_RADIUS); } } }