Examples of RelativeBendpoint


Examples of org.eclipse.draw2d.RelativeBendpoint

     *            The {@link Connection} to attach the relative bendpoint
     *            to.
     * @return A {@link RelativeBendpoint}
     */
    public RelativeBendpoint getBendpoint(Connection conn) {
      RelativeBendpoint bp = new RelativeBendpoint(conn);
      if (end) {
        bp.setWeight(1.0f);
        bp.setRelativeDimensions(new Dimension(0, 0), new Dimension(
            offset, 0));
      } else {
        bp.setWeight(0.0f);
        bp.setRelativeDimensions(new Dimension(offset, 0),
            new Dimension(0, 0));
      }

      return bp;
    }
View Full Code Here

Examples of org.eclipse.draw2d.RelativeBendpoint

    return;
  List modelConstraint = getWire().getBendpoints();
  List figureConstraint = new ArrayList();
  for (int i=0; i<modelConstraint.size(); i++) {
    WireBendpoint wbp = (WireBendpoint)modelConstraint.get(i);
    RelativeBendpoint rbp = new RelativeBendpoint(getConnectionFigure());
    rbp.setRelativeDimensions(wbp.getFirstRelativeDimension(),
                  wbp.getSecondRelativeDimension());
    rbp.setWeight((i+1) / ((float)modelConstraint.size()+1));
    figureConstraint.add(rbp);
  }
  getConnectionFigure().setRoutingConstraint(figureConstraint);
}
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    Connector edge = NotationFactory.eINSTANCE.createConnector();
    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList points = new ArrayList(2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge
        .setType(eu.admire.visual.pmml.treemodel._40.diagram.part.PMMLVisualIDRegistry
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(
        2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge.setType(DispelVisualIDRegistry
        .getType(ConnectionExpressionEditPart.VISUAL_ID));
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(
        2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge.setType(DispelVisualIDRegistry
        .getType(MethodCall2EditPart.VISUAL_ID));
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList points = new ArrayList(2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge
        .setType(eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLVisualIDRegistry
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    edge.getStyles().add(NotationFactory.eINSTANCE.createRoutingStyle());
    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList points = new ArrayList(2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge
        .setType(eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLVisualIDRegistry
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(
        2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge.setType(DispelVisualIDRegistry
        .getType(ConnectionExpressionEditPart.VISUAL_ID));
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(
        2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge.setType(DispelVisualIDRegistry
        .getType(MethodCall2EditPart.VISUAL_ID));
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint

    Connector edge = NotationFactory.eINSTANCE.createConnector();
    edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
        .createRelativeBendpoints();
    ArrayList points = new ArrayList(2);
    points.add(new RelativeBendpoint());
    points.add(new RelativeBendpoint());
    bendpoints.setPoints(points);
    edge.setBendpoints(bendpoints);
    ViewUtil.insertChildView(containerView, edge, index, persisted);
    edge
        .setType(eu.admire.visual.pmml.radviz._40.diagram.part.PMMLVisualIDRegistry
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.