Examples of moveBy()


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

        drawingEditor.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;
        }

        drawingEditor.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()

                      int off_y = rootFigure.getDisplayBox().y;
                     
                      for (Iterator<String> itFeature=figureMap.keySet().iterator() ; itFeature.hasNext() ; ) {
                        String featureID = itFeature.next();
                        if (featureID.equals(feature.getID())) {
                          rootFigure.moveBy(root_off_x, 0);
                        } else {
                          Feature desFeature = featureModel.getFeature(featureID);
                          Figure desFigure = figureMap.get(featureID);
                         
                          FeatureLayout flo = layout.getFeatureLayout(desFeature);
View Full Code Here

Examples of research.Figure.moveBy()

                        } else {
                          Feature desFeature = featureModel.getFeature(featureID);
                          Figure desFigure = figureMap.get(featureID);
                         
                          FeatureLayout flo = layout.getFeatureLayout(desFeature);
                          desFigure.moveBy(flo.x + off_x, flo.y + off_y);
                        }
                      }
                    }
                }
        }
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()

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

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

            editorArea.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.