Search in sources :

Example 1 with StunnerWiresHandlerFactory

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

the class CaseManagementCanvasViewTest method setup.

@Before
public void setup() {
    this.view = new CaseManagementCanvasView(new WiresManagerFactoryImpl(new StunnerWiresControlFactory(), new StunnerWiresHandlerFactory(new EventSourceMock<CanvasControlPointDragStartEvent>(), new EventSourceMock<CanvasControlPointDragEndEvent>(), new EventSourceMock<CanvasControlPointDoubleClickEvent>())));
    this.view.init();
}
Also used : 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) EventSourceMock(org.uberfire.mocks.EventSourceMock) Before(org.junit.Before)

Example 2 with StunnerWiresHandlerFactory

use of org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresHandlerFactory 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

Before (org.junit.Before)2 StunnerWiresControlFactory (org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresControlFactory)2 StunnerWiresHandlerFactory (org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresHandlerFactory)2 WiresManagerFactoryImpl (org.kie.workbench.common.stunner.client.lienzo.wires.WiresManagerFactoryImpl)2 LienzoPanel (com.ait.lienzo.client.widget.LienzoPanel)1 LienzoLayer (org.kie.workbench.common.stunner.client.lienzo.canvas.LienzoLayer)1 EventSourceMock (org.uberfire.mocks.EventSourceMock)1