/**
  * Sets the properties of the specified axis to match the properties defined on this panel.
  *
  * @param axis the axis.
  */
 public void setAxisProperties(Axis axis) {
   super.setAxisProperties(axis);
   NumberAxis numberAxis = (NumberAxis) axis;
   numberAxis.setAutoRange(this.autoRange);
   if (!this.autoRange) {
     numberAxis.setRange(this.minimumValue, this.maximumValue);
   }
   //        numberAxis.setGridLinesVisible(this.showGridLinesCheckBox.isSelected());
   //        numberAxis.setGridPaint(this.gridPaintSample.getPaint());
   //        numberAxis.setGridStroke(this.gridStrokeSample.getStroke());
 }
 /**
  * Handles actions from within the property panel.
  *
  * @param event an event.
  */
 public void actionPerformed(ActionEvent event) {
   String command = event.getActionCommand();
   if (command.equals("GridStroke")) {
     attemptGridStrokeSelection();
   } else if (command.equals("GridPaint")) {
     attemptGridPaintSelection();
   } else if (command.equals("AutoRangeOnOff")) {
     toggleAutoRange();
   } else if (command.equals("MinimumRange")) {
     validateMinimum();
   } else if (command.equals("MaximumRange")) {
     validateMaximum();
   } else {
     // pass to the super-class for handling
     super.actionPerformed(event);
   }
 }