Search in sources :

Example 1 with AbstractCaseManagementShape

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

the class CaseManagementCanvasView method addChildShape.

public AbstractCanvas.View addChildShape(final ShapeView<?> parent, final ShapeView<?> child, final int index) {
    final AbstractCaseManagementShape parentShape = (AbstractCaseManagementShape) parent;
    final AbstractCaseManagementShape childShape = (AbstractCaseManagementShape) child;
    parentShape.addShape(childShape, index);
    return this;
}
Also used : AbstractCaseManagementShape(org.kie.workbench.common.stunner.cm.client.wires.AbstractCaseManagementShape)

Example 2 with AbstractCaseManagementShape

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

the class ActivityView method createGhost.

@Override
protected AbstractCaseManagementShape createGhost() {
    final ActivityView ghost = new ActivityView(getWidth(), getHeight());
    for (WiresShape ws : getChildShapes()) {
        final AbstractCaseManagementShape wsg = ((AbstractCaseManagementShape) ws).getGhost();
        ghost.add(wsg);
    }
    return ghost;
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) AbstractCaseManagementShape(org.kie.workbench.common.stunner.cm.client.wires.AbstractCaseManagementShape)

Example 3 with AbstractCaseManagementShape

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

the class StageView method createGhost.

@Override
protected AbstractCaseManagementShape createGhost() {
    final StageView ghost = new StageView(getWidth(), getHeight(), voffset);
    for (WiresShape ws : getChildShapes()) {
        final AbstractCaseManagementShape wsg = ((AbstractCaseManagementShape) ws).getGhost();
        ghost.add(wsg);
    }
    return ghost;
}
Also used : WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) AbstractCaseManagementShape(org.kie.workbench.common.stunner.cm.client.wires.AbstractCaseManagementShape)

Aggregations

AbstractCaseManagementShape (org.kie.workbench.common.stunner.cm.client.wires.AbstractCaseManagementShape)3 WiresShape (com.ait.lienzo.client.core.shape.wires.WiresShape)2