Package org.eclipse.gmf.runtime.notation

Examples of org.eclipse.gmf.runtime.notation.RelativeBendpoints


  public Edge createRequireRelation_4006(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(RequireRelationEditPart.VISUAL_ID));
    edge.setElement(domainElement);
View Full Code Here


  public Edge createExcludesRelation_4010(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(ExcludesRelationEditPart.VISUAL_ID));
    edge.setElement(domainElement);
View Full Code Here

  public Edge createOneManyRelationTargetFeatureNodes_4004(
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(OneManyRelationTargetFeatureNodesEditPart.VISUAL_ID));
    edge.setElement(null);
View Full Code Here

  public Edge createMandatoryRelation_4008(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(MandatoryRelationEditPart.VISUAL_ID));
    edge.setElement(domainElement);
View Full Code Here

  public Edge createOptionalRelation_4009(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(OptionalRelationEditPart.VISUAL_ID));
    edge.setElement(domainElement);
View Full Code Here

  public Edge createRequireRelation_4006(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(RequireRelationEditPart.VISUAL_ID));
    edge.setElement(domainElement);
View Full Code Here

  public Edge createExcludesRelation_4010(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(ExcludesRelationEditPart.VISUAL_ID));
    edge.setElement(domainElement);
View Full Code Here

  public Edge createOneManyRelationTargetFeatureNodes_4004(
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    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(Fd2VisualIDRegistry
        .getType(OneManyRelationTargetFeatureNodesEditPart.VISUAL_ID));
    edge.setElement(null);
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.notation.RelativeBendpoints

Copyright © 2018 www.massapicom. 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.