Package de.FeatureModellingTool.GraphicalEditor

Examples of de.FeatureModellingTool.GraphicalEditor.ConstraintConnection


                cf = dvc;
            } else if (FeatureRelation.DECOMPOSE.equals(newRelation.getName())) {
                DecomposeConnection ic = new DecomposeConnection();
                cf = ic;
            } else if (FeatureRelation.REQUIRE.equals(newRelation.getName())) {
                ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
                cc.setEndDecoration(new ArrowTip());
                cf = cc;
            } else if (FeatureRelation.EXCLUDE.equals(newRelation.getName())) {
                ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
                cc.setMidDecoration(new CrossDecoration(5));
                cf = cc;
            }

            if (cf != null) {
                cf.setAttribute("id", newRelation.getID());
View Full Code Here


                    cf = dvc;
                } else if (FeatureRelation.DECOMPOSE.equals(newRelation.getName())) {
                    DecomposeConnection ic = new DecomposeConnection();
                    cf = ic;
                } else if (FeatureRelation.REQUIRE.equals(newRelation.getName())) {
                    ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
                    cc.setEndDecoration(new ArrowTip());
                    cf = cc;
                } else if (FeatureRelation.EXCLUDE.equals(newRelation.getName())) {
                    ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
                    cc.setMidDecoration(new CrossDecoration(5));
                    cf = cc;
                }

                if (cf != null) {
                    cf.setAttribute("id", newRelation.getID());
View Full Code Here

                        cf = dvc;
                    } else if (FeatureRelation.DECOMPOSE.equals(newRelation.getName())) {
                        DecomposeConnection ic = new DecomposeConnection();
                        cf = ic;
                    } else if (FeatureRelation.REQUIRE.equals(newRelation.getName())) {
                        ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
                        cc.setEndDecoration(new ArrowTip());
                        cf = cc;
                    } else if (FeatureRelation.EXCLUDE.equals(newRelation.getName())) {
                        ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
                        cc.setMidDecoration(new CrossDecoration(5));
                        cf = cc;
                    }

                    if (cf != null) {
                        cf.setAttribute("id", newRelation.getID());
View Full Code Here

    if (cfSrc instanceof AttributeConnection) {
      result = new AttributeConnection();
    } else if (cfSrc instanceof DecomposeConnection) {
      result = new DecomposeConnection();
    } else if (cfSrc instanceof ConstraintConnection) {
      result = new ConstraintConnection((String)cfSrc.getAttribute("type"));
      ((ConstraintConnection)result).setStartDecoration(((ConstraintConnection)cfSrc).getStartDecoration());
      ((ConstraintConnection)result).setMidDecoration(((ConstraintConnection)cfSrc).getMidDecoration());
      ((ConstraintConnection)result).setEndDecoration(((ConstraintConnection)cfSrc).getEndDecoration());
    } else if (cfSrc instanceof PLConnection){
      result = new PLConnection();
View Full Code Here

          cf = dvc;
        } else if (FeatureRelation.DECOMPOSE.equals(featureRelation.getName())) {
          DecomposeConnection ic = new DecomposeConnection();
          cf = ic;
        } else if (FeatureRelation.REQUIRE.equals(featureRelation.getName())) {
          ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
              cc.setEndDecoration(new ArrowTip());
          cf = cc;
        } else if (FeatureRelation.EXCLUDE.equals(featureRelation.getName())) {
          ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
              cc.setMidDecoration(new CrossDecoration(5));
          cf = cc;
        }
       
        if (cf!=null) {
          cf.setAttribute("id" , featureRelation.getID());
View Full Code Here

          cf = dvc;
        } else if (FeatureRelation.DECOMPOSE.equals(featureRelation.getName())) {
          DecomposeConnection ic = new DecomposeConnection();
          cf = ic;
        } else if (FeatureRelation.REQUIRE.equals(featureRelation.getName())) {
          ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
              cc.setEndDecoration(new ArrowTip());
          cf = cc;
        } else if (FeatureRelation.EXCLUDE.equals(featureRelation.getName())) {
          ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
              cc.setMidDecoration(new CrossDecoration(5));
          cf = cc;
        }
       
        if (cf!=null) {
          cf.setAttribute("id" , featureRelation.getID());
View Full Code Here

        cf = dvc;
      } else if (FeatureRelation.DECOMPOSE.equals(newRelation.getName())) {
        DecomposeConnection ic = new DecomposeConnection();
        cf = ic;
      } else if (FeatureRelation.REQUIRE.equals(newRelation.getName())) {
        ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
            cc.setEndDecoration(new ArrowTip());
        cf = cc;
      } else if (FeatureRelation.EXCLUDE.equals(newRelation.getName())) {
        ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
            cc.setMidDecoration(new CrossDecoration(5));
        cf = cc;
      }
     
      if (cf!=null) {
        cf.setAttribute("id" , newRelation.getID());
View Full Code Here

        cf = dvc;
      } else if (FeatureRelation.DECOMPOSE.equals(newRelation.getName())) {
        DecomposeConnection ic = new DecomposeConnection();
        cf = ic;
      } else if (FeatureRelation.REQUIRE.equals(newRelation.getName())) {
        ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
            cc.setEndDecoration(new ArrowTip());
        cf = cc;
      } else if (FeatureRelation.EXCLUDE.equals(newRelation.getName())) {
        ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
            cc.setMidDecoration(new CrossDecoration(5));
        cf = cc;
      }
     
      if (cf!=null) {
        cf.setAttribute("id" , newRelation.getID());
View Full Code Here

            cf = dvc;
          } else if (FeatureRelation.DECOMPOSE.equals(newRelation.getName())) {
            DecomposeConnection ic = new DecomposeConnection();
            cf = ic;
          } else if (FeatureRelation.REQUIRE.equals(newRelation.getName())) {
            ConstraintConnection cc = new ConstraintConnection(FeatureRelation.REQUIRE);
                cc.setEndDecoration(new ArrowTip());
            cf = cc;
          } else if (FeatureRelation.EXCLUDE.equals(newRelation.getName())) {
            ConstraintConnection cc = new ConstraintConnection(FeatureRelation.EXCLUDE);
                cc.setMidDecoration(new CrossDecoration(5));
            cf = cc;
          }

          if (cf!=null) {
            cf.setAttribute("id" , newRelation.getID());
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.GraphicalEditor.ConstraintConnection

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.