Examples of startPoint()


Examples of de.FeatureModellingTool.GraphicalEditor.PLConnection.startPoint()

      PLConnection plc = new PLConnection();
      plc.setAttribute("id" , cfrDest.getID());
//      result.setAttribute("frameColor" , cfSrc.getAttribute("frameColor"));
//      plc.setAttribute("type" , cfSrc.getAttribute("type"));
      plc.setAttribute("CFRModifier" , modifier.getName());
      plc.startPoint(gcfDest.getDisplayBox().x , gcfDest.getDisplayBox().y);
      Figure figureSrc = mFigure.get(f.getID());
      plc.endPoint(figureSrc.getDisplayBox().x , figureSrc.getDisplayBox().y);
    }
  }
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.PLConnection.startPoint()

      plcNew.setAttribute("CFRModifier" , modifier.getName());
     
      for (int i=0 ; i<plcOld.pointCount() ; i++) {
        plcNew.addPoint(plcOld.pointAt(i).x , plcOld.pointAt(i).y);
      }
      plcNew.startPoint(gcf.getConnectors()[0].getDisplayBox().x , gcf.getConnectors()[0].getDisplayBox().y);
      plcNew.connectStart(gcf.getConnectors()[0]);
      Figure featureFigure = mFigure.get(f.getID());
      plcNew.endPoint(featureFigure.getConnectors()[3].getDisplayBox().x , featureFigure.getConnectors()[3].getDisplayBox().y);
      plcNew.connectEnd(featureFigure.getConnectors()[3]);
     
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.PLConnection.startPoint()

      plcNew.setAttribute("CFRModifier" , rNew.getModifier().getName());

      for (int i=0 ; i<plcOld.pointCount() ; i++) {
        plcNew.addPoint(plcOld.pointAt(i).x , plcOld.pointAt(i).y);
      }
      plcNew.startPoint(plfNew.getConnectors()[0].getDisplayBox().x , plfNew.getConnectors()[0].getDisplayBox().y);
      plcNew.connectStart(plfNew.getConnectors()[0]);
      plcNew.endPoint(figureSource.getConnectors()[4].getDisplayBox().x , figureSource.getConnectors()[4].getDisplayBox().y);
      plcNew.connectEnd(figureSource.getConnectors()[4]);
      dv.add(plcNew);
    }
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.PLConnection.startPoint()

      plcNew.setAttribute("CFRModifier" , rNew.getModifier().getName());

      for (int i=0 ; i<plcOld.pointCount() ; i++) {
        plcNew.addPoint(plcOld.pointAt(i).x , plcOld.pointAt(i).y);
      }
      plcNew.startPoint(plfNew.getConnectors()[1].getDisplayBox().x , plfNew.getConnectors()[1].getDisplayBox().y);
      plcNew.connectStart(plfNew.getConnectors()[1]);
      plcNew.endPoint(figureSink.getConnectors()[3].getDisplayBox().x , figureSink.getConnectors()[3].getDisplayBox().y);
      plcNew.connectEnd(figureSink.getConnectors()[3]);
      dv.add(plcNew);
    }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.spline.PolySplineConnection.startPoint()

      else if (figure instanceof PolySplineConnection)
      {
        // Start and end point of the spline have to be within the rectangle
        PolySplineConnection con = (PolySplineConnection) figure;

        if (selectRect.contains(con.startPoint()) && selectRect.contains(con.endPoint()))
        {
          selected = figure;
        }
      }
      else if (figure instanceof TextElementFigure)
View Full Code Here

Examples of research.ConnectionFigure.startPoint()

        cf = cc;
      }
     
      if (cf!=null) {
        cf.setAttribute("id" , newRelation.getID());
        cf.startPoint(figureMap.get(newRelation.getStartFeature().getID()).center().x , figureMap.get(newRelation.getStartFeature().getID()).center().y);
        cf.endPoint(figureMap.get(newRelation.getEndFeature().getID()).center().x , figureMap.get(newRelation.getEndFeature().getID()).center().y);
        if (de.FeatureModellingTool.Pattern.ConstantDefinition.isStructRelation(relation)) {
          cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[2]);
          cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[1]);
        } else {
View Full Code Here

Examples of research.ConnectionFigure.startPoint()

        cf = cc;
      }
     
      if (cf!=null) {
        cf.setAttribute("id" , newRelation.getID());
        cf.startPoint(figureMap.get(newRelation.getStartFeature().getID()).center().x , figureMap.get(newRelation.getStartFeature().getID()).center().y);
        cf.endPoint(figureMap.get(newRelation.getEndFeature().getID()).center().x , figureMap.get(newRelation.getEndFeature().getID()).center().y);
        if (de.FeatureModellingTool.Pattern.ConstantDefinition.isStructRelation(relation)) {
          cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[2]);
          cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[1]);
        } else {
View Full Code Here

Examples of research.ConnectionFigure.startPoint()

            cf = cc;
          }

          if (cf!=null) {
            cf.setAttribute("id" , newRelation.getID());
            cf.startPoint(figureMap.get(newRelation.getStartFeature().getID()).center().x , figureMap.get(newRelation.getStartFeature().getID()).center().y);
            cf.endPoint(figureMap.get(newRelation.getEndFeature().getID()).center().x , figureMap.get(newRelation.getEndFeature().getID()).center().y);
            if (de.FeatureModellingTool.Pattern.ConstantDefinition.isStructRelation(relation)) {
              cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[2]);
              cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[1]);
            } else {
View Full Code Here

Examples of research.ConnectionFigure.startPoint()

    } else {
      return null;
    }
   
    result.setAttribute("id" , mName.get(cfSrc.getAttribute("id")));
    result.startPoint(cfSrc.startPoint().x , cfSrc.startPoint().y);
    result.endPoint(cfSrc.endPoint().x , cfSrc.endPoint().y);

    dvDest.add(result);
   
    mName.put((String)cfSrc.getAttribute("id") , UIDupHelper.FIGURE_ID_PREFIX + cfSrc.getAttribute("id"));
View Full Code Here

Examples of research.ConnectionFigure.startPoint()

                cf = cc;
            }

            if (cf != null) {
                cf.setAttribute("id", newRelation.getID());
                cf.startPoint(figureMap.get(newRelation.getStartFeature().getID()).center().x, figureMap.get(newRelation.getStartFeature().getID()).center().y);
                cf.endPoint(figureMap.get(newRelation.getEndFeature().getID()).center().x, figureMap.get(newRelation.getEndFeature().getID()).center().y);
                if (de.FeatureModellingTool.Pattern.ConstantDefinition.isStructRelation(relation)) {
                    cf.connectStart(figureMap.get(newRelation.getStartFeature().getID()).getConnectors()[2]);
                    cf.connectEnd(figureMap.get(newRelation.getEndFeature().getID()).getConnectors()[1]);
                } else {
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.