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; } }
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); }
Point point = DcFactory.eINSTANCE.createPoint(); point.setX(x); point.setY(y); dockers.add(point); parser.nextToken();