Examples of nextFigure()


Examples of research.FigureEnumeration.nextFigure()

            FigureEnumeration fe = editorArea.getCurrentView().selectionElements();

            Figure first = null;

            if(fe.hasMoreElements())
                first = fe.nextFigure();
            else
                return;

            Color current  = (Color) first.getAttribute(attributeName);
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

            if (color == null) return;

            first.setAttribute(attributeName, color);
            while (fe.hasMoreElements()) {
                fe.nextFigure().setAttribute(attributeName, color);
            }

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

Examples of research.FigureEnumeration.nextFigure()

            if (!isEnabled()) return;

            DrawingView view = editorArea.getCurrentView();
            FigureEnumeration fe = view.getDrawing().getFigures();
            while (fe.hasMoreElements()) {
                Figure f = fe.nextFigure();
                view.toggleSelection(f);
            }

            view.repairDamage();
        }
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

            DrawingView view = editorArea.getCurrentView();
            FigureEnumeration fe = new ReverseFigureEnumerator(view.getSelectionZOrdered());

            while (fe.hasMoreElements()) {
                view.getDrawing().sendToBack(fe.nextFigure());
            }
            view.checkDamage();
        }
    }
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

            DrawingView view = editorArea.getCurrentView();
            FigureEnumeration fe = new ReverseFigureEnumerator(view.getSelectionZOrdered());

            while (fe.hasMoreElements()) {
                view.getDrawing().bringToFront(fe.nextFigure());
            }
            view.checkDamage();
        }
    }
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

    // remove all figures
    Collection<Figure> figures = new ArrayList<Figure>();
    FigureEnumeration fe = dv.getDrawing().getFigures();
    while (fe.hasMoreElements())
      figures.add(fe.nextFigure());
    for (Iterator<Figure> itFigure = figures.iterator() ; itFigure.hasNext() ; )
      dv.remove(itFigure.next());
   
    super.idToFigureMap.clear();
   
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

    // remove all figures
    Collection<Figure> figures = new ArrayList<Figure>();
    FigureEnumeration fe = dv.getDrawing().getFigures();
    while (fe.hasMoreElements())
      figures.add(fe.nextFigure());
    for (Iterator<Figure> itFigure = figures.iterator() ; itFigure.hasNext() ; )
      dv.remove(itFigure.next());
   
    super.idToFigureMap.clear();
   
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

                DrawingView view = (DrawingView) e.getNewValue();
                //����id��figure��ӳ���
                if (idToFigureMap != null) {
                    FigureEnumeration fe = view.getDrawing().getFigures();
                    while (fe.hasMoreElements()) {
                        Figure figure = fe.nextFigure();

                        idToFigureMap.add(figure.getAttribute("id"), figure);
                    }
                }
            } else if (DrawingEditor.VIEW_REMOVED.equals(propertyName)) {
View Full Code Here

Examples of research.FigureEnumeration.nextFigure()

                DrawingView view = (DrawingView) e.getOldValue();
                //����id��figure��ӳ���
                if (idToFigureMap != null) {
                    FigureEnumeration fe = view.getDrawing().getFigures();
                    while (fe.hasMoreElements()) {
                        Figure figure = fe.nextFigure();

                        idToFigureMap.remove(figure.getAttribute("id"), figure);
                    }
                }
            }
View Full Code Here

Examples of research.FigureEnumerator.nextFigure()

        int visualDeltaY = (int) realDeltaY;

        if (fMoved) {
            FigureEnumeration figures = new FigureEnumerator(drawingView.getSelection());
            while (figures.hasMoreElements()) {
                figures.nextFigure().moveBy(visualDeltaX, visualDeltaY);
            }
        }


        fLastX = x;
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.