Package javax.swing.undo

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


                connection.disconnect(lastGate);
                ce.addEdit(new GateDisconnectEdit(connection, lastGate,false));  
            }
        }

        ce.end();
        if (ce.isSignificant()){
            _compoundEdit.addEdit(ce);
        }  
    }
 
View Full Code Here


      for(int i=0;i<ShapesContainer.this.size();i++){
        AbstractShape s=(AbstractShape)elementAt(i);
        s.translate(x,y);
        ce.addEdit(new TranslateEdit(x, y, s));
      }
      ce.end();
      fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
    }

    protected void getMin(Point p){
      for(int i=0;i<ShapesContainer.this.size();i++){
View Full Code Here

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

        compoundEdit.end();
        fireUndoableEditUpdate(new UndoableEditEvent(this, compoundEdit));
    }
   
    public Shape getShapeAt(int ox, int oy){
      for(int i=(ShapesContainer.this.size()-1); i>=0; i--){
View Full Code Here

                    // Add it ton container
                    TestShapesContainer.this.add(newConnector);  
                }
            }

            compoundEdit.end();
            fireUndoableEditUpdate(new UndoableEditEvent(this, compoundEdit));
        }

        protected void drawDiagramElements(Graphics2D g2, Point pMax) {
View Full Code Here

                ok=true;
              }
            }
          }
          if(ok){
            ce.end();
            sc.fireUndoableEditUpdate(new UndoableEditEvent(sc, ce));
            sc.repaint();
          }
        }
      }
View Full Code Here

      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

        this.insertElementAt(tmp, indice+1);
        ce.addEdit(new DepthChangedEdit(this, indice, indice+1));
      }
    }
   
    ce.end();
    _comp.fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
    _comp.repaint();
  }

  /**
 
View Full Code Here

      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

        this.insertElementAt(tmp, indice-1);
        ce.addEdit(new DepthChangedEdit(this, indice, indice-1));
      }
    }
   
    ce.end();
    _comp.fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
    _comp.repaint();
  }
}
View Full Code Here

        CompoundEdit ce=new CompoundEdit();
       
        ContextualActionProvider provider = (ContextualActionProvider)o;
          provider.doAction(actionX, actionY, actionTarget, action, ce);
         
          ce.end();
          if (ce.isSignificant()) {
                ShapesContainer.ShapesComponent sc=JSynoptic.gui.getActiveComponent();
                sc.fireUndoableEditUpdate(new UndoableEditEvent(sc, ce));
            }
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.