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

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


            // associates this the merge view with the merge context
            view.setMergeContext(mergeContext);
            mergeContext.activeMergeView(view);

        } catch (Exception ex) {
            AnimationUpdater.runTimer(getContext().getMapDisplay(), new MessageBubble(eventX,
                    eventY, "It cannot be merge", //$NON-NLS-1$
                    PreferenceUtil.instance().getMessageDisplayDelay()));
        }

    }
View Full Code Here


   * displays the error message
   */
  @SuppressWarnings("unused")
  private void handleError(IToolContext context, MapMouseEvent e) {

    AnimationUpdater.runTimer(context.getMapDisplay(), new MessageBubble(
        e.x, e.y, this.message, PreferenceUtil.instance()
            .getMessageDisplayDelay()));
  }
View Full Code Here

        if( message!=null ){
            if( messageBubble!=null && messageBubble.isValid() )
                messageBubble.setValid(false);
            Control control=(Control) mapDisplay;
            Point mouseLocation = control.toControl(display.getCursorLocation());
            messageBubble = new MessageBubble(mouseLocation.x, mouseLocation.y,
                                message, PreferenceUtil.instance().getMessageDisplayDelay());
            AnimationUpdater.runTimer(mapDisplay, messageBubble);
        }
    }
View Full Code Here

        if( message!=null ){
            if( messageBubble!=null && messageBubble.isValid() )
                messageBubble.setValid(false);
            Control control=(Control) mapDisplay;
            Point mouseLocation = control.toControl(display.getCursorLocation());
            messageBubble = new MessageBubble(mouseLocation.x, mouseLocation.y,
                                message, PreferenceUtil.instance().getMessageDisplayDelay());
            AnimationUpdater.runTimer(mapDisplay, messageBubble);
        }
    }
View Full Code Here

              return null;
            }
      }

    private void openErrorBubble( EditToolHandler handler, MapMouseEvent e, String errorMessage ) {
            MessageBubble bubble=new MessageBubble(e.getPoint().x, e.getPoint().y, errorMessage, //$NON-NLS-1$
                    PreferenceUtil.instance().getMessageDisplayDelay());
            AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), bubble);
            EditBlackboard editBlackboard = handler.getEditBlackboard(handler.getEditLayer());
            doMove(start.getX()-lastPoint.getX(), start.getY()-lastPoint.getY(),
                    handler, editBlackboard, selection);
View Full Code Here

    public UndoableMapCommand getCommand( EditToolHandler handler, MapMouseEvent e, EventType eventType ) {
       
        String reasonForFaliure = validator.isValid(handler, e, eventType);
        if (reasonForFaliure !=null ){
            AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), new MessageBubble(e.x, e.y,
                    Messages.AddVertexWhileCreatingBehaviour_illegal+"\n"+reasonForFaliure, PreferenceUtil.instance().getMessageDisplayDelay())); //$NON-NLS-1$
            return null;
        }
       
        Point valueOf = Point.valueOf(e.x, e.y);
View Full Code Here

TOP

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

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.