Search in sources :

Example 1 with Image

use of com.ait.lienzo.client.core.image.Image in project kie-wb-common by kiegroup.

the class LienzoImageStripGlyphRenderer method render.

@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;
}
Also used : Group(com.ait.lienzo.client.core.shape.Group) Image(com.ait.lienzo.client.core.image.Image)

Aggregations

Image (com.ait.lienzo.client.core.image.Image)1 Group (com.ait.lienzo.client.core.shape.Group)1