private double determineMaxZoomFactor(){
  if (imageData != null) {
    final double maxWidth=(double)Integer.MAX_VALUE / imageData.width;
    final double maxHeight=(double)Integer.MAX_VALUE / imageData.height;
    return Math.min(maxWidth,maxHeight);
  }
  return 1.0d;
}

private double determineMaxZoomFactor ( ) { if ( imageData != null ) { final double maxWidth = ( double ) Integer . MAX_VALUE / imageData . width ; final double maxHeight = ( double ) Integer . MAX_VALUE / imageData . height ; return Math . min ( maxWidth , maxHeight ) ; } return 1.0d ; }
determine the max zoom factor for the current image size .
