@Test public void testRender() { tested.render(GLYPH, SIZE, SIZE); verify(imageBuilder, times(1)) .apply(eq(ImageStripRegistry.getName(ImageStripTestType.class)), eq(0)); }
@Override public Group render(final ImageStripGlyph glyph, final double width, final double height) { final Group group = new Group(); final Image image = imageBuilder.apply(ImageStripRegistry.getName(glyph.getStripType()), glyph.getIndex()); scaleShape(image, width, height); group.add(image); return group; }
LienzoImageStripGlyphRenderer implements LienzoGlyphRenderer<ImageStripGlyph> { @Override public Group render(final ImageStripGlyph glyph, final double width, final double height) { final Group group = new Group(); final Image image = imageBuilder.apply(ImageStripRegistry.getName(glyph.getStripType()), glyph.getIndex()); scaleShape(image, width, height); group.add(image); return group; } }
LienzoImageStripGlyphRenderer implements LienzoGlyphRenderer<ImageStripGlyph> { @Override public Group render(final ImageStripGlyph glyph, final double width, final double height) { final Group group = new Group(); final Image image = imageBuilder.apply(ImageStripRegistry.getName(glyph.getStripType()), glyph.getIndex()); scaleShape(image, width, height); group.add(image); return group; } LienzoImageStripGlyphRenderer();   LienzoImageStripGlyphRenderer(BiFunction<String, Integer, Image> imageBuilder); }
LienzoImageStripGlyphRenderer implements LienzoGlyphRenderer<ImageStripGlyph> { @Override public Group render(final ImageStripGlyph glyph, final double width, final double height) { final Group group = new Group(); final Image image = imageBuilder.apply(ImageStripRegistry.getName(glyph.getStripType()), glyph.getIndex()); scaleShape(image, width, height); group.add(image); return group; } LienzoImageStripGlyphRenderer();   LienzoImageStripGlyphRenderer(BiFunction<String, Integer, Image> imageBuilder); @Override Class<ImageStripGlyph> getGlyphType(); @Override Group render(final ImageStripGlyph glyph,
                        final double width,
                        final double height); }
LienzoImageStripGlyphRenderer implements LienzoGlyphRenderer<ImageStripGlyph> { @Override public Group render(final ImageStripGlyph glyph, final double width, final double height) { final Group group = new Group(); final Image image = imageBuilder.apply(ImageStripRegistry.getName(glyph.getStripType()), glyph.getIndex()); scaleShape(image, width, height); group.add(image); return group; } LienzoImageStripGlyphRenderer();   LienzoImageStripGlyphRenderer(BiFunction<String, Integer, Image> imageBuilder); @Override Class<ImageStripGlyph> getGlyphType(); @Override Group render(final ImageStripGlyph glyph,
                        final double width,
                        final double height);  }