@Test public void testAdaptTileDimension() { assertEquals(3, SetTiledWmsProcessor.adaptTileDimension(7, 3)); assertEquals(3, SetTiledWmsProcessor.adaptTileDimension(6, 3)); assertEquals(5, SetTiledWmsProcessor.adaptTileDimension(20, 6)); assertEquals(5, SetTiledWmsProcessor.adaptTileDimension(19, 6)); assertEquals(6, SetTiledWmsProcessor.adaptTileDimension(18, 6)); assertEquals(200, SetTiledWmsProcessor.adaptTileDimension(600, 255)); }
@VisibleForTesting static int adaptTileDimension(final int pixels, final int maxTile) { final int nb = IntMath.divide(pixels, maxTile, RoundingMode.CEILING); return IntMath.divide(pixels, nb, RoundingMode.CEILING); }
SetTiledWmsProcessor extends AbstractProcessor<SetTiledWmsProcessor.Input, Void> { @VisibleForTesting static int adaptTileDimension(final int pixels, final int maxTile) { final int nb = IntMath.divide(pixels, maxTile, RoundingMode.CEILING); return IntMath.divide(pixels, nb, RoundingMode.CEILING); } }
SetTiledWmsProcessor extends AbstractProcessor<SetTiledWmsProcessor.Input, Void> { @VisibleForTesting static int adaptTileDimension(final int pixels, final int maxTile) { final int nb = IntMath.divide(pixels, maxTile, RoundingMode.CEILING); return IntMath.divide(pixels, nb, RoundingMode.CEILING); } protected  SetTiledWmsProcessor(); }
SetTiledWmsProcessor extends AbstractProcessor<SetTiledWmsProcessor.Input, Void> { @VisibleForTesting static int adaptTileDimension(final int pixels, final int maxTile) { final int nb = IntMath.divide(pixels, maxTile, RoundingMode.CEILING); return IntMath.divide(pixels, nb, RoundingMode.CEILING); } protected  SetTiledWmsProcessor(); @Override final Input createInputParameter(); @Override final Void execute(final Input values, final ExecutionContext context); void setMaxWidth(final int maxWidth); void setMaxHeight(final int maxHeight); final void setMatchers(final List<? extends URIMatcher> matchers); }
SetTiledWmsProcessor extends AbstractProcessor<SetTiledWmsProcessor.Input, Void> { @VisibleForTesting static int adaptTileDimension(final int pixels, final int maxTile) { final int nb = IntMath.divide(pixels, maxTile, RoundingMode.CEILING); return IntMath.divide(pixels, nb, RoundingMode.CEILING); } protected  SetTiledWmsProcessor(); @Override final Input createInputParameter(); @Override final Void execute(final Input values, final ExecutionContext context); void setMaxWidth(final int maxWidth); void setMaxHeight(final int maxHeight); final void setMatchers(final List<? extends URIMatcher> matchers);  }