org.eclipse.swt.graphics.Device.create()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中org.eclipse.swt.graphics.Device.create()方法的一些代码示例,展示了Device.create()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.create()方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Device
类名称:Device
方法名:create

Device.create介绍

[英]Creates the device in the operating system. If the device does not have a handle, this method may do nothing depending on the device.

This method is called before init.

Subclasses are supposed to reimplement this method and not call the super implementation.
[中]在操作系统中创建设备。如果设备没有句柄,此方法可能不会根据设备执行任何操作。
此方法在init之前调用。
子类应该重新实现这个方法,而不是调用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

create (data);
init ();

相关文章