code: public ScaleLevel getLevelFor(Font font, FontRenderContext frc, DoubleTransform transformer, boolean horizontal, double xy, Rectangle2D bounds)
      {
          return getXYLevel(font, frc, horizontal ? transformer : DoubleTransform.swap().andThen(transformer), xy, bounds);
      }
docs: Returns highest level where drawn labels don't overlap
  @param font
  @param frc
  @param transformer
  @param horizontal
  @param xy Lines x/y constant value
  @param bounds Accumulates label bounds here if not null.
  @return