Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Cursor


    }

    public void mouseHover(MouseEvent arg0) {
        switch (position) {
        case WindowResizeListener.LEFT:
            control.setCursor(new Cursor(Display.getDefault(),
                    SWT.CURSOR_SIZEE));
            break;
        case WindowResizeListener.RIGHT:
            control.setCursor(new Cursor(Display.getDefault(),
                    SWT.CURSOR_SIZEW));
            break;
        case WindowResizeListener.TOP:
            control.setCursor(new Cursor(Display.getDefault(),
                    SWT.CURSOR_SIZEN));
            break;
        case WindowResizeListener.DOWN:
            control.setCursor(new Cursor(Display.getDefault(),
                    SWT.CURSOR_SIZES));
            break;
        }
    }
View Full Code Here


   */
  public static Cursor getCursor(int type) {
    if (map.get(new Integer(type)) != null) {
      return map.get(new Integer(type));
    }
    Cursor c = new Cursor(Display.getDefault(), type);
    map.put(new Integer(type), c);
    return c;

  }
View Full Code Here

  private static Cursor handCursor;
  private static Cursor textCursor;
 
  public static Cursor getBusyCursor() {
    if (busyCursor==null)
      busyCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_WAIT);
    return busyCursor;
  }
View Full Code Here

      busyCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_WAIT);
    return busyCursor;
  }
  public static Cursor getHandCursor() {
    if (handCursor==null)
      handCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_HAND);
    return handCursor;
  }
View Full Code Here

      handCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_HAND);
    return handCursor;
  }
  public static Cursor getTextCursor() {
    if (textCursor==null)
      textCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_IBEAM);
    return textCursor;
  }
View Full Code Here

      public void widgetDisposed(DisposeEvent event) {
        onDispose(event);
      }
    });
   
    setCursor(new Cursor(getDisplay(), SWT.CURSOR_HAND));   
    setForeground(new Color(getDisplay(), 0, 50, 100));      
    initAccessible();   
  }
View Full Code Here

  private boolean visible = true;

  public VTab(Composite com, int i) {
    super(com, i);   
    setCursor(new Cursor(getDisplay(), SWT.CURSOR_HAND));   
    selectedGroup = null;
    groupsList = new ArrayList<IVTabGroup>();
    setLayout(new VTabLayout(this));   
    listeners = new ArrayList<VTabHideListener>();
View Full Code Here

      public void widgetDisposed(DisposeEvent event) {
        onDispose(event);
      }
    });

    setCursor(new Cursor(getDisplay(), SWT.CURSOR_HAND));   
    setForeground(new Color(getDisplay(), 0, 64, 64));  
  }
View Full Code Here

    super(comp, style);
    setLayout(new FillLayout());
    bar = new ExpandBar(this, SWT.V_SCROLL);
    bar.setBackground(new org.eclipse.swt.graphics.Color(getDisplay(), 255, 255, 255));
    bar.setSpacing(7);       
    bar.setCursor(new Cursor(getDisplay(), SWT.CURSOR_HAND));
    bar.setFont(UIDATA.FONT_8VB);
    listeners = new ArrayList<ExpandSelectionListener>();
  }
View Full Code Here

   */
  public Control createControl(Composite parent, ITextViewer textViewer) {

    fTextViewer= textViewer;

    fHitDetectionCursor= new Cursor(parent.getDisplay(), SWT.CURSOR_HAND);

    fHeader= new Canvas(parent, SWT.NONE);

    if (fAnnotationAccess instanceof IAnnotationAccessExtension) {
      fHeader.addMouseTrackListener(new MouseTrackAdapter() {
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.