private void update(MouseEvent event){
  if (event.getComponent() == mOverlayPanel) {
    mOverlayPanel.setCursorLocation(event.getPoint());
  }
 else {
    mWaterfallPanel.setCursorLocation(event.getPoint());
    mWaterfallPanel.setCursorFrequency(mOverlayPanel.getFrequencyFromAxis(event.getPoint().x));
  }
}

private void update ( MouseEvent event ) { if ( event . getComponent ( ) == mOverlayPanel ) { mOverlayPanel . setCursorLocation ( event . getPoint ( ) ) ; } else { mWaterfallPanel . setCursorLocation ( event . getPoint ( ) ) ; mWaterfallPanel . setCursorFrequency ( mOverlayPanel . getFrequencyFromAxis ( event . getPoint ( ) . x ) ) ; } }
updates the cursor display while the mouse is performing actions
