Examples of BendPoint


Examples of org.eclipse.zest.layouts.dataStructures.BendPoint

    // Adjust bendpoint positions and shift based on source node size
    for (int i = 0; i < relationships.length; i++) {
      InternalRelationship rel = relationships[i];
      for (int j = 0; j < rel.getBendPoints().size(); j++) {
        BendPoint bp = (BendPoint) rel.getBendPoints().get(j);
        DisplayIndependentPoint fromPercent = bp.convertFromPercent(screenBounds);
        bp.setX(fromPercent.x);
        bp.setY(fromPercent.y);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.ui.common.model.Bendpoint

                        List<Element> bendpointInfoList = getNamedChildren(transitionElement, BENDPOINT_ELEMENT_NAME);
                        for (Element bendpointElement : bendpointInfoList) {
                            try {
                                int x = Integer.valueOf(bendpointElement.getAttribute(X_ATTRIBUTE_NAME)).intValue();
                                int y = Integer.valueOf(bendpointElement.getAttribute(Y_ATTRIBUTE_NAME)).intValue();
                                bendpoints.add(new Bendpoint(x, y));
                            } catch (NumberFormatException e) {
                                DesignerLogger.logErrorWithoutDialog("Unable to parce bendpoint info for element " + bendpointElement, e);
                            }
                        }
                        transition.setBendpoints(bendpoints);
View Full Code Here

Examples of org.jbpm.ui.common.model.Bendpoint

    public void setIndex(int index) {
        this.index = index;
    }

    public void setLocation(int x, int y) {
        bendpoint = new Bendpoint(x, y);
    }
View Full Code Here

Examples of org.jbpm.ui.common.model.Bendpoint

                    if (source != null && target != null) {
                        Transition tr = (Transition) trFactory.getNewObject(source);
                        tr.setName(transition.getName());
                        tr.setTarget(target);
                        for (Bendpoint bp : transition.getBendpoints()) {
                            tr.getBendpoints().add(new Bendpoint(bp.getX(), bp.getY()));
                        }
                        source.addLeavingTransition(tr);

                        for (org.jbpm.ui.common.model.Action action : transition.getActions()) {
                            AddActionHandlerAction copyAction = new AddActionHandlerAction(tr, action);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.