本文整理了Java中org.eclipse.swt.widgets.Monitor.equals()
方法的一些代码示例,展示了Monitor.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.equals()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Monitor
类名称:Monitor
方法名:equals
[英]Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
[中]将参数与接收方进行比较,如果它们使用特定于类的比较表示相同对象,则返回true。
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void updateSystemUIMode () {
if ((window.collectionBehavior() & OS.NSWindowCollectionBehaviorFullScreenPrimary) != 0) return;
if (!getMonitor ().equals (display.getPrimaryMonitor ())) return;
int mode = display.systemUIMode, options = display.systemUIOptions;
if (fullScreen) {
mode = OS.kUIModeAllHidden;
if (menuBar != null) {
mode = OS.kUIModeContentHidden;
}
options = 0;
}
int[] uiMode = new int[1], uiOptions = new int[1];
OS.GetSystemUIMode(uiMode, uiOptions);
if (uiMode[0] != mode || uiOptions[0] != options) OS.SetSystemUIMode (mode, options);
if (fullScreen) window.setFrame(fullScreenFrame, true);
}
代码示例来源:origin: rinde/RinSim
final Button b = new Button(controlsComposite, SWT.CHECK);
b.setData(m);
final boolean isPrimary = m.equals(d.getPrimaryMonitor());
b.setText(i + " " + m.getBounds().width + "x" + m.getBounds().height
+ (isPrimary ? " PRIMARY" : ""));
代码示例来源:origin: com.github.rinde/rinsim-example
final Button b = new Button(controlsComposite, SWT.CHECK);
b.setData(m);
final boolean isPrimary = m.equals(d.getPrimaryMonitor());
b.setText(i + " " + m.getBounds().width + "x" + m.getBounds().height
+ (isPrimary ? " PRIMARY" : ""));
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
if (getShell().getDisplay().getPrimaryMonitor().equals(getShell().getMonitor())) {
int dialogResponse = MessageDialog.open(MessageDialog.QUESTION, getShell(),
WorkbenchMessages.Workbench_zoomChangedTitle,
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
if (getMonitor().equals(display.getPrimaryMonitor ())) {
if (menuBar != null) {
double /*float*/ menuBarHt = NSStatusBar.systemStatusBar().thickness();
内容来源于网络,如有侵权,请联系作者删除!