use of com.ait.lienzo.client.core.shape.Layer in project kie-wb-common by kiegroup.
the class AbstractActionsToolboxView method init.
protected V init(final ActionsToolbox toolbox, final WiresCanvas canvas, final WiresShape shape) {
this.canvas = canvas;
final Layer topLayer = canvas.getView().getTopLayer();
this.toolboxView = toolboxFactory.forWiresShape(shape).attachTo(topLayer);
configure(toolbox);
tooltip = createTooltip(toolbox);
return cast();
}
use of com.ait.lienzo.client.core.shape.Layer in project kie-wb-common by kiegroup.
the class WiresUtilsTest method isWiresLayerWhenWiresLayer.
@Test
public void isWiresLayerWhenWiresLayer() {
final Layer l = new Layer();
final WiresLayer wl = new WiresLayer(l);
assertTrue(WiresUtils.isWiresLayer(wl));
}
use of com.ait.lienzo.client.core.shape.Layer in project kie-wb-common by kiegroup.
the class LienzoElementGlyphRenderer method newPanel.
private LienzoPanel newPanel(final G glyph, final int width, final int height) {
final Group glyphGroup = getLienzoGlyphRenderer().render(glyph, width, height);
final LienzoPanel panel = new LienzoPanel(width, height);
final Layer layer = new Layer();
panel.add(layer.setTransformable(true));
layer.add(glyphGroup);
return panel;
}
use of com.ait.lienzo.client.core.shape.Layer in project kie-wb-common by kiegroup.
the class DMNGridLayer method doBatch.
Layer doBatch() {
final Layer layer = super.draw();
findExpressionContainer().ifPresent(container -> selectedGridWidget.ifPresent(gridWidget -> addGhost(container, gridWidget)));
return layer;
}
use of com.ait.lienzo.client.core.shape.Layer in project drools-wb by kiegroup.
the class BaseGuidedDecisionTreeNodeFactory method getDragProxyWidth.
private double getDragProxyWidth(final Text nodeLabel) {
final LienzoPanel panel = new LienzoPanel(100, 100);
final Layer layer = new Layer();
panel.add(layer);
final TextMetrics tm = nodeLabel.measure(layer.getContext());
return Math.max(getWidth(), tm.getWidth());
}
Aggregations