private static org.eclipse.dd.dc.Point pointOf(double x, double y) { org.eclipse.dd.dc.Point pt = dc.createPoint(); pt.setX((float) x); pt.setY((float) y); return pt; } }
private Point pointOf(float x, float y) { Point point = dc.createPoint(); point.setX(x); point.setY(y); return point; }
private static Point pointOf(double x, double y) { Point point = dc.createPoint(); point.setX((float) x); point.setY((float) y); return point; } }
point.setX(sourceBounds.getX() + dockers.get(0).getX()); point.setY(sourceBounds.getY() + dockers.get(0).getY()); } else { point.setX(sourceBounds.getX() + sourceBounds.getWidth()); point.setY(sourceBounds.getY() + (sourceBounds.getHeight() / 2)); point.setX(targetBounds.getX() + dockers.get(dockers.size() - 1).getX()); point.setY(targetBounds.getY() + dockers.get(dockers.size() - 1).getY()); } else { point.setX(targetBounds.getX()); point.setY(targetBounds.getY() + (targetBounds.getHeight() / 2));
private void createBpmnEdgeForAssociation(BpmnDiFactory factory, BPMNPlane plane, Association association) { BPMNEdge edge = factory.createBPMNEdge(); edge.setBpmnElement(association); DcFactory dcFactory = DcFactory.eINSTANCE; Point point = dcFactory.createPoint(); Bounds sourceBounds = _bounds.get(association.getSourceRef().getId()); point.setX(sourceBounds.getX() + (sourceBounds.getWidth() / 2)); point.setY(sourceBounds.getY() + (sourceBounds.getHeight() / 2)); edge.getWaypoint().add(point); List<Point> dockers = _dockers.get(association.getId()); for (int i = 1; i < dockers.size() - 1; i++) { edge.getWaypoint().add(dockers.get(i)); } point = dcFactory.createPoint(); Bounds targetBounds = _bounds.get(association.getTargetRef().getId()); point.setX(targetBounds.getX() + (targetBounds.getWidth() / 2)); point.setY(targetBounds.getY() + (targetBounds.getHeight() / 2)); edge.getWaypoint().add(point); plane.getPlaneElement().add(edge); }
Integer y = parser.getIntValue(); Point point = DcFactory.eINSTANCE.createPoint(); point.setX(x); point.setY(y); dockers.add(point);
if (sourceBounds != null) { Point first = edgePoints.get(0); first.setX(first.getX() + getBoundsForElement(container, plane).getX()); first.setY(first.getY() + getBoundsForElement(container, if (targetBounds != null) { Point last = edgePoints.get(edgePoints.size() - 1); last.setX(last.getX() + getBoundsForElement(container, plane).getX()); last.setY(last.getY() + getBoundsForElement(container,
if (eleBounds != null) { Point first = edgePoints.get(0); first.setX(first.getX() + laneBounds.getX()); first.setY(first.getY() + laneBounds.getY()); if (eleBounds != null) { Point last = edgePoints.get(edgePoints.size() - 1); last.setX(last.getX() + laneBounds.getX()); last.setY(last.getY() + laneBounds.getY());