@Override protected void setCoordinates(BpmnShape shape) { final BpmnShape source = findBpmnShape(element); final Bounds shapeBounds = shape.getBounds(); double x = 0; double y = 0; if (source != null) { final Bounds sourceBounds = source.getBounds(); final double sourceX = sourceBounds.getX(); final double sourceWidth = sourceBounds.getWidth(); final double sourceY = sourceBounds.getY(); final double sourceHeight = sourceBounds.getHeight(); final double targetHeight = shapeBounds.getHeight(); x = sourceX + sourceWidth + SPACE / 4; y = sourceY + sourceHeight - targetHeight / 2 + SPACE; } shapeBounds.setX(x); shapeBounds.setY(y); }
@Override protected void setCoordinates(BpmnShape shape) { final BpmnShape source = findBpmnShape(element); final Bounds shapeBounds = shape.getBounds(); double x = 0; double y = 0; if (source != null) { final Bounds sourceBounds = source.getBounds(); final double sourceX = sourceBounds.getX(); final double sourceWidth = sourceBounds.getWidth(); final double sourceY = sourceBounds.getY(); final double sourceHeight = sourceBounds.getHeight(); final double targetHeight = shapeBounds.getHeight(); x = sourceX + sourceWidth + SPACE / 4; y = sourceY + sourceHeight - targetHeight / 2 + SPACE; } shapeBounds.setX(x); shapeBounds.setY(y); }
@Override protected void setWaypointsWithSourceAndTarget( BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget) { final BpmnShape source = findBpmnShape(edgeSource); final BpmnShape target = findBpmnShape(edgeTarget);
@Override protected void setWaypointsWithSourceAndTarget( BpmnEdge edge, FlowNode edgeSource, FlowNode edgeTarget) { final BpmnShape source = findBpmnShape(edgeSource); final BpmnShape target = findBpmnShape(edgeTarget);