Search in sources :

Example 1 with WiresContainer

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

the class WiresUtilsTest method isWiresShapeWhenWiresContainer.

@Test
public void isWiresShapeWhenWiresContainer() {
    final WiresContainer wc = new WiresContainer(new Group());
    assertFalse(WiresUtils.isWiresShape(wc));
}
Also used : Group(com.ait.lienzo.client.core.shape.Group) WiresContainer(com.ait.lienzo.client.core.shape.wires.WiresContainer) Test(org.junit.Test)

Example 2 with WiresContainer

use of com.ait.lienzo.client.core.shape.wires.WiresContainer 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 3 with WiresContainer

use of com.ait.lienzo.client.core.shape.wires.WiresContainer 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)

Example 4 with WiresContainer

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

the class AbstractNestedLayoutHandler method requestLayout.

@Override
public void requestLayout(final WiresContainer container) {
    final WiresContainer root = findRoot(container);
    final List<WiresContainer> children = walker.getChildren(root);
    for (WiresContainer child : children) {
        child.getLayoutHandler().layout(child);
    }
}
Also used : WiresContainer(com.ait.lienzo.client.core.shape.wires.WiresContainer)

Example 5 with WiresContainer

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

the class CaseManagementContainmentControl method execute.

@Override
public void execute() {
    // Execute.
    final AbstractCaseManagementShape ghost = state.getGhost().get();
    // Children contains m_ghost and others excluding m_shape. This replaces m_ghost with m_shape.
    final WiresContainer originalParent = state.getOriginalParent().get();
    reparentDraggedShape(ghost, originalParent);
    clearState();
    batch();
}
Also used : WiresContainer(com.ait.lienzo.client.core.shape.wires.WiresContainer)

Aggregations

WiresContainer (com.ait.lienzo.client.core.shape.wires.WiresContainer)13 WiresShape (com.ait.lienzo.client.core.shape.wires.WiresShape)7 Point2D (com.ait.lienzo.client.core.types.Point2D)4 WiresLayer (com.ait.lienzo.client.core.shape.wires.WiresLayer)2 WiresManager (com.ait.lienzo.client.core.shape.wires.WiresManager)2 Group (com.ait.lienzo.client.core.shape.Group)1 IContainmentAcceptor (com.ait.lienzo.client.core.shape.wires.IContainmentAcceptor)1 PickerPart (com.ait.lienzo.client.core.shape.wires.PickerPart)1 BoundingBox (com.ait.lienzo.client.core.types.BoundingBox)1 Test (org.junit.Test)1