private void paintZoomIndicator(Graphics2D graphics){
  if (mZoom != 0) {
    int width=getWidth() / 4;
    int x=(getWidth() / 2) - (width / 2);
    graphics.drawRect(x,getHeight() - 12,width,10);
    int zoomWidth=width / getZoomMultiplier();
    int windowOffset=0;
    if (mDFTZoomWindowOffset != 0) {
      windowOffset=(int)(((double)mDFTZoomWindowOffset / (double)mDFTSize) * width);
    }
    graphics.fillRect(x + windowOffset,getHeight() - 12,zoomWidth,10);
    graphics.drawString("Zoom: " + getZoomMultiplier() + "x",x + width + 3,getHeight() - 2);
  }
}

private void paintZoomIndicator ( Graphics2D graphics ) { if ( mZoom != 0 ) { int width = getWidth ( ) / 4 ; int x = ( getWidth ( ) / 2 ) - ( width / 2 ) ; graphics . drawRect ( x , getHeight ( ) - 12 , width , 10 ) ; int zoomWidth = width / getZoomMultiplier ( ) ; int windowOffset = 0 ; if ( mDFTZoomWindowOffset != 0 ) { windowOffset = ( int ) ( ( ( double ) mDFTZoomWindowOffset / ( double ) mDFTSize ) * width ) ; } graphics . fillRect ( x + windowOffset , getHeight ( ) - 12 , zoomWidth , 10 ) ; graphics . drawString ( "Zoom: " + getZoomMultiplier ( ) + "x" , x + width + 3 , getHeight ( ) - 2 ) ; } }
when zoom level is greater than zero , paints a small indicator at the bottom center of the screen showing the location of the zoom window within the overall dft results window
