private static void increaseToMinZoom(final Graph2DView view) {
    final double minZoom = getMinimumZoom(view);

    if (view.getZoom() < minZoom) {
      view.setZoom(minZoom);
    }
  }
Makes sure that the current zoom level does not exceed the minimum zoom level.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/helpers/ZoomHelpers.java