Package javax.swing.event

Examples of javax.swing.event.UndoableEditEvent


     
      // update the selection
      ((ShapeDiagramSelection)getElementContainer().getSelection()).setToShape(cs);

      // Update undoable operations
      fireUndoableEditUpdate(new UndoableEditEvent(this, new GroupEdit(this, cs, shapesDeletedInCompoundShapes, deletedFromOldCompounds)));
     
      // repaint
      repaint();
    }
View Full Code Here


      }
      // update the selection
      ((ShapeDiagramSelection)getElementContainer().getSelection()).setToShapes(selection);

      // Update undoable operations
      fireUndoableEditUpdate(new UndoableEditEvent(this, new UnGroupEdit(this, undoUngroup)));
     
      repaint();
    }
View Full Code Here

      }
      for(int i=0;i<deletedFromOldCompounds.size();i++)
        _oldCompounds.remove(deletedFromOldCompounds.get(i));
     
//      Update undoable operations
      fireUndoableEditUpdate(new UndoableEditEvent(this, new ReGroupEdit(this,shapesDeletedInCompoundShapes, deletedFromOldCompounds)));
      repaint();
    }
View Full Code Here

        AbstractShape s=(AbstractShape)elementAt(i);
        s.translate(x,y);
        ce.addEdit(new TranslateEdit(x, y, s));
      }
      ce.end();
      fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
    }
View Full Code Here

                compoundEdit.addEdit(new CreateEdit(ShapesContainer.this,newConnector));
            }
        }

        compoundEdit.end();
        fireUndoableEditUpdate(new UndoableEditEvent(this, compoundEdit));
    }
View Full Code Here

         */
        public void pointTranslationEnd() {
            // _compoundEdit has been
            _compoundEdit.end();
            fireUndoableEditUpdate(
                    new UndoableEditEvent(
                            this, _compoundEdit
                    )
                );
            super.pointTranslationEnd();
        }
View Full Code Here

     */
    public void translationEnd() {
      // _compoundEdit has been
      _compoundEdit.end();
      fireUndoableEditUpdate(
          new UndoableEditEvent(
              this, _compoundEdit
          )
        );
      super.translationEnd();
    }
View Full Code Here

     * Overridden in order to handle Undo/Redo on resize events.
     */
    public void resizeEnd() {
      _compoundEdit.end();
      fireUndoableEditUpdate(
        new UndoableEditEvent(
            this, _compoundEdit
        )
      );
      super.resizeEnd();
    }
View Full Code Here

      super.resizeEnd();
    }
   
    public void performCreate(AbstractShape shape) {
      fireUndoableEditUpdate(
          new UndoableEditEvent(this, new CreateEdit(ShapesContainer.this, shape))
      );
    }
View Full Code Here

        // Overridden to store undo info
        protected void translationEnd() {
            // _compoundEdit has been
            _compoundEdit.end();
            fireUndoableEditUpdate( new UndoableEditEvent(this, _compoundEdit));
            super.translationEnd();
        }
View Full Code Here

TOP

Related Classes of javax.swing.event.UndoableEditEvent

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.