Package org.eclipse.graphiti.features.context.impl

Examples of org.eclipse.graphiti.features.context.impl.ResizeShapeContext


          poolRemoveFeature.remove(poolRc);
        }
       
      } else {
        Shape poolShape = (Shape) getFeatureProvider().getPictogramElementForBusinessObject(parentPool);
        ResizeShapeContext resizeContext = new ResizeShapeContext(poolShape);
        resizeContext.setSize(poolShape.getGraphicsAlgorithm().getWidth(), poolShape.getGraphicsAlgorithm().getHeight() - laneHeight);
        resizeContext.setLocation(poolShape.getGraphicsAlgorithm().getX(), poolShape.getGraphicsAlgorithm().getY());
        resizeContext.setDirection(ResizeShapeContext.DIRECTION_NORTH);
        resizeContext.putProperty("org.activiti.designer.lane.create", true);
        getFeatureProvider().getResizeShapeFeature(resizeContext).execute(resizeContext);
      }
     
      for (Lane otherLane : lane.getParentProcess().getLanes()) {
        if(otherLane.equals(lane)) continue;
View Full Code Here


    newLane.setId(getNextId(newLane));
    newLane.setName("New lane");
    newLane.setParentProcess(poolProcess);
    poolProcess.getLanes().add(newLane);

    ResizeShapeContext resizeContext = new ResizeShapeContext(poolShape);
    resizeContext.setSize(poolShape.getGraphicsAlgorithm().getWidth(), poolShape.getGraphicsAlgorithm().getHeight() + height);
    resizeContext.setLocation(poolShape.getGraphicsAlgorithm().getX(), poolShape.getGraphicsAlgorithm().getY());
    resizeContext.setDirection(ResizeShapeContext.DIRECTION_SOUTH);
    resizeContext.putProperty("org.activiti.designer.lane.create", true);
    getFeatureProvider().getResizeShapeFeature(resizeContext).execute(resizeContext);

    context.putProperty("org.activiti.designer.lane.x", x);
    context.putProperty("org.activiti.designer.lane.y", y);
    context.putProperty("org.activiti.designer.lane.width", width);
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.features.context.impl.ResizeShapeContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.