Package simtools.diagram.undo

Examples of simtools.diagram.undo.DepthChangedEdit


      indice=indices[i];
      if(indice > 0) {
        tmp=this.elementAt(indice);
        this.removeElementAt(indice);
        this.insertElementAt(tmp, indice-1);
        ce.addEdit(new DepthChangedEdit(this, indice, indice-1));
      }
    }
   
    ce.end();
    _comp.fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
View Full Code Here


    for(i=0; i<indices.length; i++) {
      indice=indices[i]-i;
      tmp=this.elementAt(indice);
      this.removeElementAt(indice);
      this.add(tmp);
      ce.addEdit(new DepthChangedEdit(this, indice, size()-1));
    }
   
    ce.end();
    _comp.fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
    _comp.repaint();
View Full Code Here

      indice=indices[i-1];
      if(indice < size()-1) {
        tmp=this.elementAt(indice);
        this.removeElementAt(indice);
        this.insertElementAt(tmp, indice+1);
        ce.addEdit(new DepthChangedEdit(this, indice, indice+1));
      }
    }
   
    ce.end();
    _comp.fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
View Full Code Here

    for(i=0; i<indices.length; i++) {
      indice=indices[i];
      tmp=this.elementAt(indice);
      this.removeElementAt(indice);
      this.insertElementAt(tmp, i);
      ce.addEdit(new DepthChangedEdit(this, indice, i));
    }
   
    ce.end();
    _comp.fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
    _comp.repaint();
View Full Code Here

        for(i=0; i<indices.length; i++) {
            indice=indices[i]-i;
            tmp=getElementContainer().get(indice);
            getElementContainer().remove(indice);
            getElementContainer().add(tmp);
            ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, getElementContainer().size()-1));
        }
       
        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
        getElementContainer().getComponent().repaint();
View Full Code Here

            indice=indices[i-1];
            if(indice < getElementContainer().size()-1) {
                tmp=getElementContainer().get(indice);
                getElementContainer().remove(indice);
                getElementContainer().add(indice+1, tmp);
                ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, indice+1));
            }
        }
       
        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
View Full Code Here

            indice=indices[i];
            if(indice > 0) {
                tmp=getElementContainer().get(indice);
                getElementContainer().remove(indice);
                getElementContainer().add(indice-1, tmp);
                ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, indice-1));
            }
        }
       
        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
View Full Code Here

        for(i=0; i<indices.length; i++) {
            indice=indices[i];
            tmp=getElementContainer().get(indice);
            getElementContainer().remove(indice);
            getElementContainer().add(i, tmp);
            ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, i));
        }

        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
        getElementContainer().getComponent().repaint();
View Full Code Here

TOP

Related Classes of simtools.diagram.undo.DepthChangedEdit

Copyright © 2018 www.massapicom. 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.