本文整理了Java中org.eclipse.swt.graphics.Cursor
类的一些代码示例,展示了Cursor
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cursor
类的具体详情如下:
包路径:org.eclipse.swt.graphics.Cursor
类名称:Cursor
[英]Instances of this class manage operating system resources that specify the appearance of the on-screen pointer.
To obtain cursors, it is recommended to use one of the getSystemCursor
method from class Display
.
Styles: CURSOR_ARROW, CURSOR_WAIT, CURSOR_CROSS, CURSOR_APPSTARTING, CURSOR_HELP, CURSOR_SIZEALL, CURSOR_SIZENESW, CURSOR_SIZENS, CURSOR_SIZENWSE, CURSOR_SIZEWE, CURSOR_SIZEN, CURSOR_SIZES, CURSOR_SIZEE, CURSOR_SIZEW, CURSOR_SIZENE, CURSOR_SIZESE, CURSOR_SIZESW, CURSOR_SIZENW, CURSOR_UPARROW, CURSOR_IBEAM, CURSOR_NO, CURSOR_HAND
Note: Only one of the above styles may be specified.
[中]此类的实例管理指定屏幕指针外观的操作系统资源。
要获取游标,建议使用类Display
中的getSystemCursor
方法之一。
样式:光标箭头、光标等待、光标十字、光标应用程序启动、光标帮助、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小、光标大小
注意:只能指定上述样式之一。
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
getPreviousFields();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public synchronized void dispose() {
setStopped( true );
cursor_hand.dispose();
cursor_hourglass.dispose();
if ( destroy && ( display != null ) && !display.isDisposed() ) {
try {
display.dispose();
} catch ( SWTException e ) {
// dispose errors
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( (Cursor) object ).isDisposed() ) {
return;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* Returns a string containing a concise, human-readable
* description of the receiver.
*
* @return a string representation of the receiver
*/
@Override
public String toString () {
if (isDisposed()) return "Cursor {*DISPOSED*}";
return "Cursor {" + handle + "}";
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
setEncodings();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
/**
* Returns a string containing a concise, human-readable
* description of the receiver.
*
* @return a string representation of the receiver
*/
public String toString () {
if (isDisposed()) return "Cursor {*DISPOSED*}";
return "Cursor {" + handle + "}";
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
getPreviousFields();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* Returns a string containing a concise, human-readable
* description of the receiver.
*
* @return a string representation of the receiver
*/
@Override
public String toString () {
if (isDisposed()) return "Cursor {*DISPOSED*}";
return "Cursor {" + handle + "}";
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
setEncodings();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* Returns a string containing a concise, human-readable
* description of the receiver.
*
* @return a string representation of the receiver
*/
@Override
public String toString () {
if (isDisposed()) return "Cursor {*DISPOSED*}";
return "Cursor {" + handle + "}";
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
getFields();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Returns a string containing a concise, human-readable
* description of the receiver.
*
* @return a string representation of the receiver
*/
@Override
public String toString () {
if (isDisposed()) return "Cursor {*DISPOSED*}";
return "Cursor {" + handle + "}";
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
setStreamFields();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Returns a string containing a concise, human-readable
* description of the receiver.
*
* @return a string representation of the receiver
*/
@Override
public String toString () {
String result;
if (isDisposed()) {
result = "Cursor {*DISPOSED*}";
} else {
result = "Cursor {" + value + "}";
}
return result;
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
setEncodings();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: BiglySoftware/BiglyBT
public void setCursor(Cursor cursor) {
if (isDisposed() || cursor == null || cursor.isDisposed()) {
return;
}
label.setCursor(cursor);
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
setEncodings();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt
protected boolean isDisposed(Object resource) {
if (resource instanceof Color) {
return ((Color) resource).isDisposed();
} else if (resource instanceof Font) {
return ((Font) resource).isDisposed();
} else if (resource instanceof Image) {
return ((Image) resource).isDisposed();
} else if (resource instanceof Cursor) {
return ((Cursor) resource).isDisposed();
}
return false;
}
代码示例来源:origin: pentaho/pentaho-kettle
public void focusGained( org.eclipse.swt.events.FocusEvent e ) {
Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT );
shell.setCursor( busy );
get();
shell.setCursor( null );
busy.dispose();
}
} );
代码示例来源:origin: org.eclipse.e4.ui.css/swt
protected boolean isDisposed(Object resource) {
if (resource instanceof Color) {
return ((Color) resource).isDisposed();
} else if (resource instanceof Font) {
return ((Font) resource).isDisposed();
} else if (resource instanceof Image) {
return ((Image) resource).isDisposed();
} else if (resource instanceof Cursor) {
return ((Cursor) resource).isDisposed();
}
return false;
}
}
内容来源于网络,如有侵权,请联系作者删除!