Package javax.swing.event

Examples of javax.swing.event.UndoableEditEvent


                CompoundEdit ce=new CompoundEdit();
                ((SelectionContextualActionProvider)getElementContainer().getSelection().getSelectedElements().get(0)).doCollectiveAction(getElementContainer().getSelection(), actionX, actionY, actionTarget, actionName, ce);
                ce.end();

                if (ce.isSignificant()) {
                    fireUndoableEditUpdate(new UndoableEditEvent(ShapesContainer.this, ce));
                }
            }
        }
View Full Code Here


    plot1.zoomWheel(x1, y1, PlotZoom.zoomWheelFactor, zoomIn);
    ce=plot1.new PlotCompoundEdit(plot1OldValues);
    plot1.repaintDiagram(plot1.getBounds());

    // store undoable event
    selection.getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(selection.getElementContainer().getComponent(), ce));
    selection.getElementContainer().getComponent().repaint();

    // end of drawing
    plot1=null;
    twoPoints = false;
View Full Code Here

          ce.addEdit(ce2);
        }
        ce.end();
      }
      // store undoable event
      selection.getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(selection.getElementContainer().getComponent(), ce));
      selection.getElementContainer().getComponent().repaint();


    }
    // end of drawing
View Full Code Here

      ce.end();
    }
   
    // store undoable event
    if (firstTranslation){
      selection.getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(selection.getElementContainer().getComponent(), ce));
      firstTranslation = false;
    }
    selection.getElementContainer().getComponent().repaint();
     
    // end of drawing
View Full Code Here

        }

        animHolder.removeSceneGraphObject(ref, null);
        RemoveEdit re=new RemoveEdit(animHolder, ref);
        animHolder.getUndoableEditListener().undoableEditHappened(
                new UndoableEditEvent(this, re));
    }
View Full Code Here

                    (SceneGraphObject)cn.getGraphObject(),
                    replaced));
        }
        compoundEdit.end();
        getTree().getUndoableEditListener().undoableEditHappened(
                new UndoableEditEvent(this, compoundEdit));
    }
View Full Code Here

        if(getParent() instanceof SceneGraphObjectHolder){
            SceneGraphObjectHolder owner=(SceneGraphObjectHolder)getParent();
            owner.removeSceneGraphObject((SceneGraphObject)getGraphObject(), null);
            RemoveEdit re=new RemoveEdit(owner, (SceneGraphObject)getGraphObject());
            getTree().getUndoableEditListener().undoableEditHappened(
                    new UndoableEditEvent(this, re));
        }
        else{
            throw new RuntimeException("Can not remove node from "+ getParent().getClass());
        }
    }
View Full Code Here

                GroupNode gn=(GroupNode)getNode();
                gn.addChild(n);
                AddEdit ae=new AddEdit(gn, n, null);

                getNode().getTree().getUndoableEditListener().undoableEditHappened(
                        new UndoableEditEvent(this, ae));
                getNode().refresh();
            }
        }
View Full Code Here

           
            gn.addChild(g);
           
            AddEdit ae=new AddEdit(gn, g, null);
            getNode().getTree().getUndoableEditListener().undoableEditHappened(
                    new UndoableEditEvent(this, ae));

            getNode().refresh();
        }
View Full Code Here

            gn.addChild(g);
           
            AddEdit ae=new AddEdit(gn, g, null);
            getNode().getTree().getUndoableEditListener().undoableEditHappened(
                    new UndoableEditEvent(this, ae));

            getNode().refresh();
        }
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.