Examples of moveBy()


Examples of CH.ifa.draw.framework.Figure.moveBy()

        boolean first = true;
        for (Iterator it = selection.iterator(); it.hasNext();)
        {
          Figure f = (Figure) it.next();

          f.moveBy(xOffset, yOffset);
          if (first)
          {
            scrollIntoView(f, true);
            first = false;
          }
View Full Code Here

Examples of CH.ifa.draw.framework.Figure.moveBy()

  public void translateChildren(int dx, int dy)
  {
    for (FigureEnumeration fe = figures(); fe.hasMoreElements();)
    {
      Figure f = fe.nextFigure();
      f.moveBy(dx, dy);
    }
  }

  public void setIconFigure(Figure iconFigure)
  {
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.FeatureFigure.moveBy()

            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

Examples of de.FeatureModellingTool.GraphicalEditor.FeatureFigure.moveBy()

    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

Examples of de.FeatureModellingTool.GraphicalEditor.FeatureFigure.moveBy()

      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

Examples of de.FeatureModellingTool.GraphicalEditor.GroupConstraintFigure.moveBy()

    gcfDest.setAttribute("id" , gcDest.getID());
    gcfDest.setAttribute("GroupType" , gcDest.getType().getName());
//    gcfDest.setAttribute("PortPosition" , gcfSrc.getAttribute("PortPosition"));
    gcfDest.setAttribute("bounds" , fSrc.getAttribute("bounds"));
    gcfDest.setAttribute("frameColor" , fSrc.getAttribute("frameColor"));
    gcfDest.moveBy(fSrc.getDisplayBox().x , fSrc.getDisplayBox().y);
   
    for (Iterator<Feature> itFeature=fsSrc.iterator() ; itFeature.hasNext() ; ) {
      Feature f = itFeature.next();
      if (undecidedOnly && !cvSrc.getFinalCustomizationById(f.getID()).equals(Customization.Undecided)) {
        continue;
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.GroupConstraintFigure.moveBy()

    result.setAttribute("PortPosition" , gcfSrc.getAttribute("PortPosition"));
    result.setAttribute("bounds" , gcfSrc.getAttribute("bounds"));
    result.setAttribute("frameColor" , gcfSrc.getAttribute("frameColor"));

    dvDest.add(result);
    result.moveBy(gcfSrc.getDisplayBox().x , gcfSrc.getDisplayBox().y);
   
    mName.put((String)gcfSrc.getAttribute("id") , UIDupHelper.FIGURE_ID_PREFIX + gcfSrc.getAttribute("id"));
    mFigure.put(UIDupHelper.FIGURE_ID_PREFIX + gcfSrc.getAttribute("id") , result);
   
    return result;
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.PLFigure.moveBy()

    result.setAttribute("PLType" , gcfSrc.getAttribute("PLType"));
    result.setAttribute("SourceType" , gcfSrc.getAttribute("SourceType"));
    result.setAttribute("SinkType" , gcfSrc.getAttribute("SinkType"));

    dvDest.add(result);
    result.moveBy(gcfSrc.getDisplayBox().x , gcfSrc.getDisplayBox().y);
   
    mName.put((String)gcfSrc.getAttribute("id") , UIDupHelper.FIGURE_ID_PREFIX + gcfSrc.getAttribute("id"));
    mFigure.put(UIDupHelper.FIGURE_ID_PREFIX + gcfSrc.getAttribute("id") , result);
   
    return result;
View Full Code Here

Examples of de.FeatureModellingTool.GraphicalEditor.VPConstraintFigure.moveBy()

    result.setAttribute("botLeg" , vpcfSrc.getAttribute("botLeg"));
    result.setAttribute("frameColor" , vpcfSrc.getAttribute("frameColor"));
    result.setAttribute("VPType" , vpcfSrc.getAttribute("VPType"));

    dvDest.add(result);
    result.moveBy(vpcfSrc.getDisplayBox().x , vpcfSrc.getDisplayBox().y);
   
    mName.put((String)vpcfSrc.getAttribute("id") , UIDupHelper.FIGURE_ID_PREFIX + vpcfSrc.getAttribute("id"));
    mFigure.put(UIDupHelper.FIGURE_ID_PREFIX + vpcfSrc.getAttribute("id") , result);
   
    return result;
View Full Code Here

Examples of research.Figure.moveBy()

        Rectangle r = new Rectangle();
        int limit = rect.y + rect.height / 2;
        while (iterator.hasNext()) {
            Figure figure = (Figure) iterator.next();
            if (!(figure instanceof ConnectionFigure)) {
                figure.moveBy(0, limit - figure.center().y);
            }
        }

        drawingEditor.getCurrentView().repairDamage();
    }
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.