@Test public void testDrawBar() throws Exception { final BufferedImage bufferedImage = new BufferedImage(180, 40, TYPE_4BYTE_ABGR); final Graphics2D graphics2d = bufferedImage.createGraphics(); ScaleBarRenderSettings settings = getSettings(graphics2d, 1); ScalebarDrawer drawer = Type.BAR.createDrawer(graphics2d, settings); drawer.draw(); new ImageSimilarity(getFile("expected-scalebar-bar.png")). assertSimilarity(bufferedImage, 510); }
protected abstract void drawBar();
ScalebarDrawer { protected abstract void drawBar(); }
ScalebarDrawer { protected abstract void drawBar(); ScalebarDrawer(final Graphics2D graphics2d, final ScaleBarRenderSettings settings); }
ScalebarDrawer { protected abstract void drawBar(); ScalebarDrawer(final Graphics2D graphics2d, final ScaleBarRenderSettings settings); final void draw(); final Graphics2D getGraphics2d(); final ScaleBarRenderSettings getSettings(); final ScalebarAttributeValues getParams(); }
ScalebarDrawer { protected abstract void drawBar(); ScalebarDrawer(final Graphics2D graphics2d, final ScaleBarRenderSettings settings); final void draw(); final Graphics2D getGraphics2d(); final ScaleBarRenderSettings getSettings(); final ScalebarAttributeValues getParams();  }