public void actionPerformed(ActionEvent ae){
  String command=ae.getActionCommand();
  Debug.message("navigatemenu","NavigateMenu.actionPerformed(): " + command);
  if (command.equals(zoomIn2Cmd)) {
    fireZoom(ZoomEvent.RELATIVE,0.5f);
  }
 else   if (command.equals(zoomIn4Cmd)) {
    fireZoom(ZoomEvent.RELATIVE,0.25f);
  }
 else   if (command.equals(zoomOut2Cmd)) {
    fireZoom(ZoomEvent.RELATIVE,2.0f);
  }
 else   if (command.equals(zoomOut4Cmd)) {
    fireZoom(ZoomEvent.RELATIVE,4.0f);
  }
}

public void actionPerformed ( ActionEvent ae ) { String command = ae . getActionCommand ( ) ; Debug . message ( "navigatemenu" , "NavigateMenu.actionPerformed(): " + command ) ; if ( command . equals ( zoomIn2Cmd ) ) { fireZoom ( ZoomEvent . RELATIVE , 0.5f ) ; } else if ( command . equals ( zoomIn4Cmd ) ) { fireZoom ( ZoomEvent . RELATIVE , 0.25f ) ; } else if ( command . equals ( zoomOut2Cmd ) ) { fireZoom ( ZoomEvent . RELATIVE , 2.0f ) ; } else if ( command . equals ( zoomOut4Cmd ) ) { fireZoom ( ZoomEvent . RELATIVE , 4.0f ) ; } }
actionlistener interface , lets the menu act on the actions of the menuitems .
