@Test public void testNewProvider() { BoundsProviderFactory.WiresBoundsProvider provider = StunnerBoundsProviderFactory.newProvider(); Bounds bounds = provider.build(provider.getAll(wiresLayer)); assertEquals(0d, bounds.getX(), 0d); assertEquals(0d, bounds.getY(), 0d); assertEquals(1260d, bounds.getWidth(), 0d); assertEquals(580d + StunnerBoundsProviderFactory.PADDING, bounds.getHeight(), 0d); }
public static WiresBoundsProvider newProvider() { return new WiresBoundsProvider() .setPadding(PADDING) .setBoundsBuilder(boundingBox -> computeBoundsAspectRatio(ASPECT_RATIO, boundingBox)); }
StunnerBoundsProviderFactory { public static WiresBoundsProvider newProvider() { return new WiresBoundsProvider() .setPadding(PADDING) .setBoundsBuilder(boundingBox -> computeBoundsAspectRatio(ASPECT_RATIO, boundingBox)); } }
StunnerBoundsProviderFactory { public static WiresBoundsProvider newProvider() { return new WiresBoundsProvider() .setPadding(PADDING) .setBoundsBuilder(boundingBox -> computeBoundsAspectRatio(ASPECT_RATIO, boundingBox)); }  }
StunnerBoundsProviderFactory { public static WiresBoundsProvider newProvider() { return new WiresBoundsProvider() .setPadding(PADDING) .setBoundsBuilder(boundingBox -> computeBoundsAspectRatio(ASPECT_RATIO, boundingBox)); }  static WiresBoundsProvider newProvider(); static double computeWidth(final double height); static int computeWidth(final int height); static double computeHeight(final double width); static int computeHeight(final int width); }
StunnerBoundsProviderFactory { public static WiresBoundsProvider newProvider() { return new WiresBoundsProvider() .setPadding(PADDING) .setBoundsBuilder(boundingBox -> computeBoundsAspectRatio(ASPECT_RATIO, boundingBox)); }  static WiresBoundsProvider newProvider(); static double computeWidth(final double height); static int computeWidth(final int height); static double computeHeight(final double width); static int computeHeight(final int width); static final float ASPECT_RATIO; static final double PADDING; }