Search in sources :

Example 6 with WiresShape

use of com.ait.lienzo.client.core.shape.wires.WiresShape in project kie-wb-common by kiegroup.

the class WiresUtilsTest method isWiresLayerWhenWiresShape.

@Test
public void isWiresLayerWhenWiresShape() {
    final WiresShape ws = new WiresShape(new MultiPath());
    assertFalse(WiresUtils.isWiresLayer(ws));
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) MultiPath(com.ait.lienzo.client.core.shape.MultiPath) Test(org.junit.Test)

Example 7 with WiresShape

use of com.ait.lienzo.client.core.shape.wires.WiresShape in project kie-wb-common by kiegroup.

the class WiresUtilsTest method isWiresShapeWhenUnregisteredWiresShape.

@Test
public void isWiresShapeWhenUnregisteredWiresShape() {
    final WiresShape ws = new WiresShape(new MultiPath());
    assertFalse(WiresUtils.isWiresShape(ws));
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) MultiPath(com.ait.lienzo.client.core.shape.MultiPath) Test(org.junit.Test)

Example 8 with WiresShape

use of com.ait.lienzo.client.core.shape.wires.WiresShape in project kie-wb-common by kiegroup.

the class CanvasView method addChildShape.

@Override
public AbstractCanvas.View addChildShape(final ShapeView<?> parent, final ShapeView<?> child) {
    final WiresContainer parentShape = (WiresContainer) parent;
    final WiresShape childShape = (WiresShape) child;
    return this.addChildShape(parentShape, childShape);
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) WiresContainer(com.ait.lienzo.client.core.shape.wires.WiresContainer)

Example 9 with WiresShape

use of com.ait.lienzo.client.core.shape.wires.WiresShape in project kie-wb-common by kiegroup.

the class CanvasView method dock.

@Override
@SuppressWarnings("unchecked")
public AbstractCanvas.View dock(final ShapeView<?> parent, final ShapeView<?> child) {
    final WiresShape parentShape = (WiresShape) parent;
    final WiresShape childShape = (WiresShape) child;
    dockShape(parentShape, childShape);
    return this;
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape)

Example 10 with WiresShape

use of com.ait.lienzo.client.core.shape.wires.WiresShape in project kie-wb-common by kiegroup.

the class CanvasView method removeChildShape.

@Override
public AbstractCanvas.View removeChildShape(final ShapeView<?> parent, final ShapeView<?> child) {
    final WiresContainer parentShape = (WiresContainer) parent;
    final WiresShape childShape = (WiresShape) child;
    return this.removeChildShape(parentShape, childShape);
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) WiresContainer(com.ait.lienzo.client.core.shape.wires.WiresContainer)

Aggregations

WiresShape (com.ait.lienzo.client.core.shape.wires.WiresShape)58 Test (org.junit.Test)14 Point2D (com.ait.lienzo.client.core.types.Point2D)11 WiresConnector (com.ait.lienzo.client.core.shape.wires.WiresConnector)9 WiresContainer (com.ait.lienzo.client.core.shape.wires.WiresContainer)7 MultiPath (com.ait.lienzo.client.core.shape.MultiPath)6 WiresManager (com.ait.lienzo.client.core.shape.wires.WiresManager)4 PickerPart (com.ait.lienzo.client.core.shape.wires.PickerPart)3 IContainmentAcceptor (com.ait.lienzo.client.core.shape.wires.IContainmentAcceptor)2 WiresConnection (com.ait.lienzo.client.core.shape.wires.WiresConnection)2 WiresLayer (com.ait.lienzo.client.core.shape.wires.WiresLayer)2 BoundingBox (com.ait.lienzo.client.core.types.BoundingBox)2 AbstractCaseManagementShape (org.kie.workbench.common.stunner.cm.client.wires.AbstractCaseManagementShape)2 MockCaseManagementShape (org.kie.workbench.common.stunner.cm.client.wires.MockCaseManagementShape)2 Node (org.kie.workbench.common.stunner.core.graph.Node)2 Group (com.ait.lienzo.client.core.shape.Group)1 Layer (com.ait.lienzo.client.core.shape.Layer)1 Shape (com.ait.lienzo.client.core.shape.Shape)1 IDockingAcceptor (com.ait.lienzo.client.core.shape.wires.IDockingAcceptor)1 ILayoutHandler (com.ait.lienzo.client.core.shape.wires.ILayoutHandler)1