Exemplo n.º 1
0
 /**
  * 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());
     }
   }
 }
Exemplo n.º 2
0
 /**
  * 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();
 }