Examples of moveBy()


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);
                }
            }

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

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

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

            Rectangle r = ((Figure) arrayList.get(0)).getDisplayBox();
            int base = r.y + r.height;
            for (int i = 1; i < arrayList.size() - 1; i++) {
                Figure fig = (Figure) arrayList.get(i);
                fig.moveBy(0, (int) (base + unit * i - fig.getDisplayBox(r).y));
                base += r.height;
            }

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

            Rectangle r = ((Figure) arrayList.get(0)).getDisplayBox();
            int base = r.x + r.width;
            for (int i = 1; i < arrayList.size() - 1; i++) {
                Figure fig = (Figure) arrayList.get(i);
                fig.moveBy((int) (base + unit * i - fig.getDisplayBox(r).x), 0);
                base += r.width;
            }

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

            Rectangle r = new Rectangle();
            int limit = rect.x;
            while (iterator.hasNext()) {
                Figure figure = (Figure) iterator.next();
                if (!(figure instanceof ConnectionFigure)) {
                    figure.moveBy(limit - figure.getDisplayBox(r).x, 0);
                }
            }

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

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

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

            Rectangle r = new Rectangle();
            int limit = rect.x + rect.width;
            while (iterator.hasNext()) {
                Figure figure = (Figure) iterator.next();
                if (!(figure instanceof ConnectionFigure)) {
                    figure.moveBy(limit - (figure.getDisplayBox(r).x + r.width), 0);
                }
            }

            editorArea.getCurrentView().repairDamage();
        }
View Full Code Here

Examples of research.Figure.moveBy()

    for (Iterator itFeature = this.featureModel.getAllFeature().values().iterator() ; itFeature.hasNext() ; )
    {
      Feature feature = (Feature)itFeature.next();
      AutoLayout.FeatureLayout fl = featureLayout.getFeatureLayout(feature);
      Figure figure = htFigures.get(feature.getID());
      figure.moveBy(30 + fl.x, 30 + fl.y);
//      figure.setDisplayBox(new Rectangle(fl.x , fl.y));
    }
   
    if (this.featureModel.getAllFeatureRelation()!=null)
      for (Iterator itRelation = this.featureModel.getAllFeatureRelation().values().iterator() ; itRelation.hasNext() ; )
View Full Code Here

Examples of research.Figure.moveBy()

    for (Iterator itFeature = this.featureModel.getAllFeature().values().iterator() ; itFeature.hasNext() ; )
    {
      Feature feature = (Feature)itFeature.next();
      AutoLayout_Feature.FeatureLayout fl = featureLayout.getFeatureLayout(feature);
      Figure figure = htFigures.get(feature.getID());
      figure.moveBy(30 + fl.x, 30 + fl.y);
//      figure.setDisplayBox(new Rectangle(fl.x , fl.y));
    }
   
    if (this.featureModel.getAllFeatureRelation()!=null)
      for (Iterator itRelation = this.featureModel.getAllFeatureRelation().values().iterator() ; itRelation.hasNext() ; )
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.