Examples of UndoableEditEvent


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

Examples of javax.swing.event.UndoableEditEvent

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

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

Examples of javax.swing.event.UndoableEditEvent

      }
      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

Examples of javax.swing.event.UndoableEditEvent

        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

Examples of javax.swing.event.UndoableEditEvent

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

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

Examples of javax.swing.event.UndoableEditEvent

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

Examples of javax.swing.event.UndoableEditEvent

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

Examples of javax.swing.event.UndoableEditEvent

     * 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

Examples of javax.swing.event.UndoableEditEvent

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

Examples of javax.swing.event.UndoableEditEvent

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