本文整理了Java中org.eclipse.swt.graphics.Device.init()
方法的一些代码示例,展示了Device.init()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.init()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Device
类名称:Device
方法名:init
[英]Initializes any internal resources needed by the device.
This method is called after create
.
If subclasses reimplement this method, they must call the super
implementation.
[中]初始化设备所需的任何内部资源。
此方法在create
之后调用。
如果子类重新实现此方法,则它们必须调用super
实现。
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* Constructs a new instance of this class.
* <p>
* You must dispose the device when it is no longer required.
* </p>
*
* @param data the DeviceData which describes the receiver
*
* @see #create
* @see #init
* @see DeviceData
*/
public Device(DeviceData data) {
synchronized (Device.class) {
if (data != null) {
debug = data.debug;
tracking = data.tracking;
}
if (tracking) {
errors = new Error [128];
objects = new Object [128];
trackingLock = new Object ();
}
create (data);
init ();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* Constructs a new instance of this class.
* <p>
* You must dispose the device when it is no longer required.
* </p>
*
* @param data the DeviceData which describes the receiver
*
* @see #create
* @see #init
* @see DeviceData
*/
public Device(DeviceData data) {
synchronized (Device.class) {
if (data != null) {
debug = data.debug;
tracking = data.tracking;
}
if (tracking) {
errors = new Error [128];
objects = new Object [128];
trackingLock = new Object ();
}
create (data);
init ();
register (this);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Constructs a new instance of this class.
* <p>
* You must dispose the device when it is no longer required.
* </p>
*
* @param data the DeviceData which describes the receiver
*
* @see #create
* @see #init
* @see DeviceData
*/
public Device(DeviceData data) {
synchronized (Device.class) {
if (data != null) {
debug = data.debug;
tracking = data.tracking;
}
if (tracking) {
errors = new Error [128];
objects = new Object [128];
trackingLock = new Object ();
}
create (data);
init ();
register (this);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* Constructs a new instance of this class.
* <p>
* You must dispose the device when it is no longer required.
* </p>
*
* @param data the DeviceData which describes the receiver
*
* @see #create
* @see #init
* @see DeviceData
*/
public Device(DeviceData data) {
synchronized (Device.class) {
if (data != null) {
debug = data.debug;
tracking = data.tracking;
}
if (tracking) {
errors = new Error [128];
objects = new Object [128];
trackingLock = new Object ();
}
create (data);
init ();
register (this);
}
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
protected void init () {
NSAutoreleasePool pool = null;
if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
try {
super.init();
} finally {
if (pool != null) pool.release();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* Initializes any internal resources needed by the
* device.
* <p>
* This method is called after <code>create</code>.
* </p>
*
* @see #create
*/
@Override
protected void init () {
super.init ();
initializeCallbacks ();
initializeSubclasses ();
initializeSystemColors ();
initializeSystemSettings ();
initializeWidgetTable ();
initializeWindowManager ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* Initializes any internal resources needed by the
* device.
* <p>
* This method is called after <code>create</code>.
* </p>
*
* @see #create
*/
@Override
protected void init () {
super.init ();
initializeCallbacks ();
initializeSubclasses ();
initializeSystemColors ();
initializeSystemSettings ();
initializeWidgetTable ();
initializeWindowManager ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Initializes any internal resources needed by the
* device.
* <p>
* This method is called after <code>create</code>.
* </p>
*
* @see #create
*/
@Override
protected void init () {
super.init ();
initializeCallbacks ();
initializeSubclasses ();
initializeSystemColors ();
initializeSystemSettings ();
initializeWidgetTable ();
initializeWindowManager ();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
init ();
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
OS.gtk_page_setup_set_orientation(pageSetup, orientation);
OS.gtk_print_settings_set_orientation(settings, orientation);
super.init ();
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
OS.gtk_page_setup_set_orientation(pageSetup, orientation);
OS.gtk_print_settings_set_orientation(settings, orientation);
super.init ();
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
OS.gtk_page_setup_set_orientation(pageSetup, orientation);
OS.gtk_print_settings_set_orientation(settings, orientation);
super.init ();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
super.init ();
DPIUtil.setDeviceZoom (getDeviceZoom ());
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
super.init ();
initClasses ();
initColors ();
内容来源于网络,如有侵权,请联系作者删除!