private void drawCursor(Graphics2D graphics){
  if (mCursorVisible) {
    drawFrequencyLine(graphics,mCursorLocation.x,mColorSpectrumCursor);
    String frequency=CURSOR_FORMAT.format(getFrequencyFromAxis(mCursorLocation.getX()) / 1E6D);
    graphics.drawString(frequency,mCursorLocation.x + 5,mCursorLocation.y);
    if (mZoom != 0) {
      graphics.drawString("Zoom: " + (int)Math.pow(2.0,mZoom) + "x",mCursorLocation.x + 17,mCursorLocation.y + 11);
    }
  }
}

private void drawCursor ( Graphics2D graphics ) { if ( mCursorVisible ) { drawFrequencyLine ( graphics , mCursorLocation . x , mColorSpectrumCursor ) ; String frequency = CURSOR_FORMAT . format ( getFrequencyFromAxis ( mCursorLocation . getX ( ) ) / 1E6D ) ; graphics . drawString ( frequency , mCursorLocation . x + 5 , mCursorLocation . y ) ; if ( mZoom != 0 ) { graphics . drawString ( "Zoom: " + ( int ) Math . pow ( 2.0 , mZoom ) + "x" , mCursorLocation . x + 17 , mCursorLocation . y + 11 ) ; } } }
draws a cursor on the panel , whenever the mouse is hovering over the panel
