Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Cursor


     
      CursorProxy cursorProxy = cursorsCache.get(cursorID);
      if(cursorProxy != null)
        return cursorProxy.getCursor();
     
      Cursor systemCursor = CursorProxy.getSystemCursor(cursorID);
      if(systemCursor != null)
        return systemCursor;
     
     
      return null;
View Full Code Here


           
            activeTool.setActive(true);// this should register itself with the tool manager

            // this was normally handled by the ToolProxy which we cannot get a hold of
            String currentCursorID = activeTool.getCursorID();
      Cursor toolCursor = findToolCursor(currentCursorID);
     
      activeTool.getContext().getViewportPane().setCursor(toolCursor);
        }
        catch (Throwable eek){
            System.err.println("Trouble activating "+modalTool+":"+eek);
View Full Code Here

        public void mouseUp(MouseEvent e) {
            if (e.button == 1) {
                down = false;
                movingAlgorithm = null;

                Cursor cursor = new Cursor(parent.getDisplay(), SWT.CURSOR_ARROW);
                table.setCursor(cursor);
            }
        }
View Full Code Here

    public void mouseMove(MouseEvent event) {
        int urlOffsetOfMousePosition = determineURLOffsetOfMousePosition(event);
        Integer[] urlOffsets = this.offsetsToURLs.keySet().toArray(new Integer[0]);
        boolean mouseIsOverURL = determineIfMouseIsHoveringOverURL(urlOffsetOfMousePosition, urlOffsets);
        Cursor cursor = new Cursor(parent.getDisplay(), determineMouseCursor(mouseIsOverURL));
        textField.setCursor(cursor);
    }
View Full Code Here

    private int determineURLOffsetOfMousePosition(MouseEvent event) {
        try {
            return textField.getOffsetAtLocation(new Point(event.x, event.y));
        } catch (IllegalArgumentException e) {
            Cursor cursor = new Cursor(parent.getDisplay(), SWT.CURSOR_ARROW);
            textField.setCursor(cursor);
        }

        return -1;
    }
View Full Code Here

    private void createControls() {
        this.setLayout(new GridLayout(1, true));
        statusLine = new Label(this, SWT.NONE);
        statusLine.setLayoutData(new GridData(SWT.RIGHT, GridData.CENTER, true, false));
        statusLine.setAlignment(SWT.CENTER);
        statusLine.setCursor(new Cursor(null, SWT.CURSOR_HAND));
        statusLine.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseDown(MouseEvent e) {
                showSigninPopupMenu(statusLine.toDisplay(e.x, e.y));
            }
View Full Code Here

      }
      boolean needsProgressMonitor = wizard.needsProgressMonitor();
     
      // Set the busy cursor to all shells.
      Display d = getShell().getDisplay();
      waitCursor = new Cursor(d, SWT.CURSOR_WAIT);
      setDisplayCursor(waitCursor);
     
      if (useCustomProgressMonitorPart) {
        cancelButton.removeSelectionListener(cancelListener);
        // Set the arrow cursor to the cancel component.
        arrowCursor = new Cursor(d, SWT.CURSOR_ARROW);
        cancelButton.setCursor(arrowCursor);
      }
     
      // Deactivate shell
      savedState = saveUIState(useCustomProgressMonitorPart && needsProgressMonitor && enableCancelButton);
View Full Code Here

  /**
   * Set the cursor to the four-way arrow to indicate that the
   * trim can be dragged
   */
  private void setDragCursor() {
      Cursor dragCursor = toDrag.getDisplay().getSystemCursor(SWT.CURSOR_SIZEALL);
      setCursor(dragCursor);
  }
View Full Code Here

        renderer.getProtocol().getShapeBasket().add(shape);
        renderer.setRenderedShape();
      }
    });
   
    Cursor cursor = new Cursor(ctrl.getDisplay(), SWT.CURSOR_HAND);
    ctrl.setCursor(cursor);

    return ctrl;
  }
View Full Code Here

  public ShapeEditor() {
    undoContext = new ObjectUndoContext(this);
    listeners = new ArrayList<ISelectionChangedListener>();
    editControllers = new ArrayList<ControllerBase>();
   
    cursorCrosshair = new Cursor(getDisplay(), SWT.CURSOR_SIZEALL);
    cursorNormal = new Cursor(getDisplay(), SWT.CURSOR_ARROW);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.graphics.Cursor

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.