Package de.FeatureModellingTool.GraphicalEditor

Examples of de.FeatureModellingTool.GraphicalEditor.FeatureFigure


            fEditor.setCategory(newFeature, feature.getCategory());
            fEditor.setVariability(newFeature, feature.getVariability());

            nameMap.put(feature.getID(), newFeature.getID());

            FeatureFigure figDist = new FeatureFigure();
            figDist.setText(feature.getName());
            figDist.setAttribute("id", feature.getID());
            figDist.setAttribute(FeatureProperties.VARIABILITY, feature.getVariability().getName());
            dvDist.add(figDist);

            Figure fOld = srcFigureMap.get(feature.getID());
            figDist.moveBy(rDist.getDisplayBox().x - rSrc.getDisplayBox().x + fOld.getDisplayBox().x, rDist.getDisplayBox().y - rSrc.getDisplayBox().y + fOld.getDisplayBox().y);
            figureMap.put(newFeature.getID(), figDist);
        }

        for (Iterator<FeatureRelation> itRelation = fmSrc.getAllFeatureRelation().values().iterator(); itRelation.hasNext();) {
            FeatureRelation relation = itRelation.next();
View Full Code Here


            fEditor.setCategory(newFeature, feature.getCategory());
            fEditor.setVariability(newFeature, feature.getVariability());

            nameMap.put(feature.getID(), newFeature.getID());

            FeatureFigure figDist = new FeatureFigure();
            figDist.setText(feature.getName());
            figDist.setAttribute("id", feature.getID());
            figDist.setAttribute(FeatureProperties.VARIABILITY, feature.getVariability().getName());
            dvDist.add(figDist);

//      Figure fOld = srcFigureMap.get(feature.getID());
//      figDist.moveBy(rDist.getDisplayBox().x - rSrc.getDisplayBox().x + fOld.getDisplayBox().x
//          , rDist.getDisplayBox().y - rSrc.getDisplayBox().y + fOld.getDisplayBox().y);
View Full Code Here

    }

    public static void cloneThroughPaste(Feature fSrc, FeatureModel fmSrc, ConstraintModel cmSrc, Feature fDist, FeatureModel fmDist, ConstraintModel cmDist, DrawingView dvDist, FeatureModelEditor fmEditor, FeatureEditor fEditor, Hashtable<String, String> nameMap, Hashtable<String, Figure> figureMap) {
        Feature fTarget = fmEditor.addFeature(fSrc.getName());

        FeatureFigure figDist = new FeatureFigure();
        figDist.setText(fTarget.getName());
        figDist.setAttribute("id", fTarget.getID());
        figDist.setAttribute(FeatureProperties.VARIABILITY, fTarget.getVariability().getName());
        dvDist.add(figDist);

        nameMap.put(fSrc.getID(), fTarget.getID());
        figureMap.put(fTarget.getID(), figDist);
View Full Code Here

  public static String FIGURE_ID_PREFIX = "FIGURE_ID_PREFIX_";
 
  public static FeatureFigure dupFeatureFigure(FeatureFigure ffSrc
      , HashMap<String,String> mName , HashMap<String,Figure> mFigure
      , DrawingView dvDest) {
    FeatureFigure result = new FeatureFigure();
   
    result.setAttribute("id", mName.get(ffSrc.getAttribute("id")));
    result.setAttribute(FeatureFigure.IS_A_LINK, ffSrc.getAttribute(FeatureFigure.IS_A_LINK));
    result.setAttribute("text", ffSrc.getAttribute("text"));
    result.setAttribute(FeatureProperties.VARIABILITY, ffSrc.getAttribute(FeatureProperties.VARIABILITY));
    result.setAttribute(FeatureProperties.BINDINGTIME, ffSrc.getAttribute(FeatureProperties.BINDINGTIME));
   
    dvDest.add(result);
    result.moveBy(ffSrc.getDisplayBox().x , ffSrc.getDisplayBox().y);
   
    mName.put((String)ffSrc.getAttribute("id") , UIDupHelper.FIGURE_ID_PREFIX + ffSrc.getAttribute("id"));
    mFigure.put(UIDupHelper.FIGURE_ID_PREFIX + ffSrc.getAttribute("id") , result);
   
    return result;
View Full Code Here

      fEditor.setCategory(newFeature , feature.getCategory());
      fEditor.setVariability(newFeature , feature.getVariability());
     
      nameMap.put(feature.getID() , newFeature.getID());
     
      FeatureFigure figDist = new FeatureFigure();
      figDist.setText(feature.getName());
      figDist.setAttribute("id" , feature.getID());
      figDist.setAttribute(FeatureProperties.VARIABILITY , feature.getVariability().getName());
      dvDist.add(figDist);
     
      Figure fOld = srcFigureMap.get(feature.getID());
      figDist.moveBy(rDist.getDisplayBox().x - rSrc.getDisplayBox().x + fOld.getDisplayBox().x
          , rDist.getDisplayBox().y - rSrc.getDisplayBox().y + fOld.getDisplayBox().y);
      figureMap.put(newFeature.getID() , figDist);
    }
   
    for (Iterator<FeatureRelation> itRelation=fmSrc.getAllFeatureRelation().values().iterator()
View Full Code Here

      fEditor.setCategory(newFeature , feature.getCategory());
      fEditor.setVariability(newFeature , feature.getVariability());
     
      nameMap.put(feature.getID() , newFeature.getID());
     
      FeatureFigure figDist = new FeatureFigure();
      figDist.setText(feature.getName());
      figDist.setAttribute("id" , feature.getID());
      figDist.setAttribute(FeatureProperties.VARIABILITY , feature.getVariability().getName());
      dvDist.add(figDist);
     
//      Figure fOld = srcFigureMap.get(feature.getID());
//      figDist.moveBy(rDist.getDisplayBox().x - rSrc.getDisplayBox().x + fOld.getDisplayBox().x
//          , rDist.getDisplayBox().y - rSrc.getDisplayBox().y + fOld.getDisplayBox().y);
View Full Code Here

      , FeatureEditor fEditor
      , Hashtable<String , String> nameMap
      , Hashtable<String , Figure> figureMap) {
    Feature fTarget = fmEditor.addFeature(fSrc.getName());
   
    FeatureFigure figDist = new FeatureFigure();
    figDist.setText(fTarget.getName());
    figDist.setAttribute("id" , fTarget.getID());
    figDist.setAttribute(FeatureProperties.VARIABILITY , fTarget.getVariability().getName());
    dvDist.add(figDist);
   
    nameMap.put(fSrc.getID() , fTarget.getID());
    figureMap.put(fTarget.getID() , figDist);
   
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.GraphicalEditor.FeatureFigure

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.