public void commitRandom(final Randomizer rand){
  rand.setPdf(pdf);
  if (pdf == ProbDistribution.NULL) {
    return;
  }
  double param1=Utils.doubleParsable(tfParam1);
  if (tfParam1.isEnabled() && !Double.isNaN(param1)) {
    rand.setParam1Consistent(pdf.getParam1Name(),param1);
  }
  double param2=Utils.doubleParsable(tfParam2);
  if (tfParam2.isEnabled() && !Double.isNaN(param2)) {
    rand.setParam2Consistent(pdf.getParam2Name(),param2);
  }
  if (!tsClipping.isNull()) {
    rand.setClipping(tsClipping.isSelected());
    if (tsClipping.isSelected()) {
      double upperBound=Utils.doubleParsable(tfUpBound);
      if (!Double.isNaN(upperBound)) {
        rand.setUpperBound(upperBound);
      }
      double lowerBound=Utils.doubleParsable(tfLowBound);
      if (!Double.isNaN(lowerBound)) {
        rand.setLowerBound(lowerBound);
      }
    }
  }
}

public void commitRandom ( final Randomizer rand ) { rand . setPdf ( pdf ) ; if ( pdf == ProbDistribution . NULL ) { return ; } double param1 = Utils . doubleParsable ( tfParam1 ) ; if ( tfParam1 . isEnabled ( ) && ! Double . isNaN ( param1 ) ) { rand . setParam1Consistent ( pdf . getParam1Name ( ) , param1 ) ; } double param2 = Utils . doubleParsable ( tfParam2 ) ; if ( tfParam2 . isEnabled ( ) && ! Double . isNaN ( param2 ) ) { rand . setParam2Consistent ( pdf . getParam2Name ( ) , param2 ) ; } if ( ! tsClipping . isNull ( ) ) { rand . setClipping ( tsClipping . isSelected ( ) ) ; if ( tsClipping . isSelected ( ) ) { double upperBound = Utils . doubleParsable ( tfUpBound ) ; if ( ! Double . isNaN ( upperBound ) ) { rand . setUpperBound ( upperBound ) ; } double lowerBound = Utils . doubleParsable ( tfLowBound ) ; if ( ! Double . isNaN ( lowerBound ) ) { rand . setLowerBound ( lowerBound ) ; } } } }
called externally when dialog is being closed .
