Package org.locationtech.udig.tools.edit.animation

Examples of org.locationtech.udig.tools.edit.animation.DeleteVertexAnimation


  public void rollback(IProgressMonitor monitor) throws Exception {
    if (addedCoord == null) {
      return;
    }
    if (handler.getContext().getMapDisplay() != null && showAnimation) {
      IAnimation animation = new DeleteVertexAnimation(point);
      AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), animation);
    }
    board.removeCoordinate(index, addedCoord, shape);
    addedCoord = null;
  }
View Full Code Here


        Selection selection = blackboard.getSelection();
        undoData = new ArrayList<Bag>();
        EditState oldState = handler.getCurrentState();
        try {
            handler.setCurrentState(EditState.BUSY);
            DeleteVertexAnimation deleteVertexAnimation=null;
            if( runAnimation ){
                for( Point point : selection ) {
                    deleteVertexAnimation = new DeleteVertexAnimation(point);
                    AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), deleteVertexAnimation);
                }
                if( deleteVertexAnimation!=null ){
                    final DeleteVertexAnimation finalDeleteVertexAnim=deleteVertexAnimation;
                    PlatformGIS.wait(deleteVertexAnimation.getFrameInterval(), 5000, new WaitCondition(){
   
                        public boolean isTrue()  {
                            return !finalDeleteVertexAnim.isValid();
                        }
                       
                    }, null);
                }
            }
View Full Code Here

    public void rollback( IProgressMonitor monitor ) throws Exception {
        if (addedCoord == null){
            return;
        }
        if (handler.getContext().getMapDisplay() != null && showAnimation) {
            IAnimation animation = new DeleteVertexAnimation(point);
            AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), animation);
        }
        board.removeCoordinate(index, addedCoord, shapeProvider.get(monitor));
        addedCoord = null;
    }
View Full Code Here

   
    public void rollback( IProgressMonitor monitor ) throws Exception {
        board.startBatchingEvents();

        if (handler.getContext().getMapDisplay() != null) {
            IAnimation animation = new DeleteVertexAnimation(point);
            AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), animation);
        }
       
        board.removeCoordinate(index, toAdd, shape.get(new SubProgressMonitor(monitor, 1)));
        board.selectionClear();
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.animation.DeleteVertexAnimation

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.