use of org.kie.workbench.common.stunner.core.client.components.views.WidgetElementRendererView in project kie-wb-common by kiegroup.
the class LienzoElementGlyphRenderer method render.
@Override
public IsElement render(final G glyph, final double width, final double height) {
final WidgetElementRendererView view = viewInstances.get();
final LienzoPanel panel = newPanel(glyph, (int) width, (int) height);
return view.setWidget(panel);
}
use of org.kie.workbench.common.stunner.core.client.components.views.WidgetElementRendererView in project kie-wb-common by kiegroup.
the class BS3IconTypeGlyphRenderer method render.
@Override
public IsElement render(final BS3IconTypeGlyph glyph, final double width, final double height) {
final WidgetElementRendererView view = viewInstanceSupplier.get();
final Icon icon = new Icon(glyph.getIconType());
return view.setWidget(icon);
}
Aggregations