use of com.ait.lienzo.client.core.shape.MultiPath in project kie-wb-common by kiegroup.
the class WiresCanvasViewTest method testAddRoot.
@Test
public void testAddRoot() {
WiresShapeView shapeView = new WiresShapeView(new MultiPath().rect(0, 0, 50, 50));
tested.addRoot(shapeView);
verify(wiresLayer, times(1)).add(eq(shapeView.getGroup()));
}
use of com.ait.lienzo.client.core.shape.MultiPath in project kie-wb-common by kiegroup.
the class WiresCanvasViewTest method testUnDock.
@Test
public void testUnDock() {
WiresShapeView parent = new WiresShapeView(new MultiPath().rect(0, 0, 50, 50));
WiresShapeView child = new WiresShapeView(new MultiPath().rect(0, 0, 50, 50));
tested.undock(parent, child);
verify(wiresLayer, times(1)).undock(eq(child));
}
use of com.ait.lienzo.client.core.shape.MultiPath in project kie-wb-common by kiegroup.
the class LienzoLayerUtilsTest method registerShape.
private WiresShape registerShape(final String expectedUUID) {
final Shape path = new MultiPath();
final WiresShape ws = new WiresShape((MultiPath) path);
WiresUtils.assertShapeUUID(ws.getContainer(), expectedUUID);
return ws;
}
use of com.ait.lienzo.client.core.shape.MultiPath in project kie-wb-common by kiegroup.
the class StunnerBoundsProviderFactoryTest method init.
@Before
public void init() {
layer = new Layer();
wiresLayer = new WiresLayer(layer);
shape1 = new WiresShape(new MultiPath().circle(50)).setLocation(new Point2D(100, 33));
shape2 = new WiresShape(new MultiPath().circle(230)).setLocation(new Point2D(15, 120));
wiresLayer.add(shape1);
wiresLayer.add(shape2);
}
Aggregations