Search in sources :

Example 6 with LienzoLayer

use of org.kie.workbench.common.stunner.client.lienzo.canvas.LienzoLayer in project kie-wb-common by kiegroup.

the class WiresCanvasViewTest method setup.

@Before
public void setup() {
    this.wiresManagerFactory = spy(new WiresManagerFactoryImpl(new StunnerWiresControlFactory(), new StunnerWiresHandlerFactory()));
    this.canvas = new WiresCanvasView(this.wiresManagerFactory);
    this.panel = new LienzoPanel(100, 100);
    this.layer = new LienzoLayer();
    this.canvas.init();
    this.canvas.show(panel, 100, 100, layer);
}
Also used : LienzoLayer(org.kie.workbench.common.stunner.client.lienzo.canvas.LienzoLayer) LienzoPanel(com.ait.lienzo.client.widget.LienzoPanel) StunnerWiresControlFactory(org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresControlFactory) StunnerWiresHandlerFactory(org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresHandlerFactory) WiresManagerFactoryImpl(org.kie.workbench.common.stunner.client.lienzo.wires.WiresManagerFactoryImpl) Before(org.junit.Before)

Aggregations

LienzoLayer (org.kie.workbench.common.stunner.client.lienzo.canvas.LienzoLayer)6 AbstractCanvas (org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvas)2 LienzoPanel (com.ait.lienzo.client.widget.LienzoPanel)1 Before (org.junit.Before)1 StunnerWiresControlFactory (org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresControlFactory)1 StunnerWiresHandlerFactory (org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresHandlerFactory)1 WiresManagerFactoryImpl (org.kie.workbench.common.stunner.client.lienzo.wires.WiresManagerFactoryImpl)1 Shape (org.kie.workbench.common.stunner.core.client.shape.Shape)1 Node (org.kie.workbench.common.stunner.core.graph.Node)1