Examples of FigureEnumeration


Examples of research.FigureEnumeration

  protected void refreshFigures() {
    DrawingView dv = this.getEditorArea().view();

    // 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

  protected void refreshFigures() {
    DrawingView dv = this.getEditorArea().view();

    // 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

            if (DrawingEditor.VIEW_ADDED.equals(propertyName)) {
                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)) {
                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
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.