protected double calculateXCoordinate(Bounds boundaryEventBounds) { BpmnShape attachedToElement = findBpmnShape(element);
protected void setBoundaryEventCoordinates(BpmnShape bpmnShape) { BpmnShape activity = findBpmnShape(element); Bounds boundaryBounds = bpmnShape.getBounds(); double x = 0; double y = 0; if (activity != null) { Bounds activityBounds = activity.getBounds(); double activityY = activityBounds.getY(); double activityHeight = activityBounds.getHeight(); double boundaryHeight = boundaryBounds.getHeight(); x = calculateXCoordinate(boundaryBounds); y = activityY + activityHeight - boundaryHeight / 2; } boundaryBounds.setX(x); boundaryBounds.setY(y); }
protected double calculateXCoordinate(Bounds boundaryEventBounds) { BpmnShape attachedToElement = findBpmnShape(element);
protected double calculateXCoordinate(Bounds boundaryEventBounds) { BpmnShape attachedToElement = findBpmnShape(element);
protected void setBoundaryEventCoordinates(BpmnShape bpmnShape) { BpmnShape activity = findBpmnShape(element); Bounds boundaryBounds = bpmnShape.getBounds(); double x = 0; double y = 0; if (activity != null) { Bounds activityBounds = activity.getBounds(); double activityY = activityBounds.getY(); double activityHeight = activityBounds.getHeight(); double boundaryHeight = boundaryBounds.getHeight(); x = calculateXCoordinate(boundaryBounds); y = activityY + activityHeight - boundaryHeight / 2; } boundaryBounds.setX(x); boundaryBounds.setY(y); }
protected void setBoundaryEventCoordinates(BpmnShape bpmnShape) { BpmnShape activity = findBpmnShape(element); Bounds boundaryBounds = bpmnShape.getBounds(); double x = 0; double y = 0; if (activity != null) { Bounds activityBounds = activity.getBounds(); double activityY = activityBounds.getY(); double activityHeight = activityBounds.getHeight(); double boundaryHeight = boundaryBounds.getHeight(); x = calculateXCoordinate(boundaryBounds); y = activityY + activityHeight - boundaryHeight / 2; } boundaryBounds.setX(x); boundaryBounds.setY(y); }