Package javax.swing.undo

Examples of javax.swing.undo.CompoundEdit.end()


            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


            ss.translateShape(0, dy);
            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }  
        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint();
    }
View Full Code Here

            ss.translateShape(0, dy);
            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
           
        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint();
    }
View Full Code Here

           
            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }  
        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint();
    }
View Full Code Here

            ss.translateShape(dx,0);
            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }
        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint();
    }
View Full Code Here

            ss.translateShape(0,dy);
            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }
        }
        ce.end();

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

            ss.translateShape(dx,0);
            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }
        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint();   
    }
View Full Code Here

            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }

        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint();
    }
View Full Code Here

            if(ce!=null){
                ce.addEdit(ss.translateShapeEnd());
            }

        }
        ce.end();

        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate(new UndoableEditEvent(dc, ce));
        dc.repaint()
    }
View Full Code Here

                CompoundEdit ce = new CompoundEdit();
                if (shape.setProperties(shapeProperties, ce)) {
                    shapesEdit.addEdit(ce);  
                }  
                ce.end();
            }

            shapesEdit.end();
            if (shapesEdit.isSignificant()) {
                shapeComponent.fireUndoableEditUpdate(new UndoableEditEvent(shapeComponent, shapesEdit));
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.