Search in sources :

Example 1 with WidgetElementRendererView

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);
}
Also used : LienzoPanel(com.ait.lienzo.client.widget.LienzoPanel) WidgetElementRendererView(org.kie.workbench.common.stunner.core.client.components.views.WidgetElementRendererView)

Example 2 with WidgetElementRendererView

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);
}
Also used : Icon(org.gwtbootstrap3.client.ui.Icon) WidgetElementRendererView(org.kie.workbench.common.stunner.core.client.components.views.WidgetElementRendererView)

Aggregations

WidgetElementRendererView (org.kie.workbench.common.stunner.core.client.components.views.WidgetElementRendererView)2 LienzoPanel (com.ait.lienzo.client.widget.LienzoPanel)1 Icon (org.gwtbootstrap3.client.ui.Icon)1