本文整理了Java中java.awt.Window.isLocationByPlatform()
方法的一些代码示例,展示了Window.isLocationByPlatform()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.isLocationByPlatform()
方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:isLocationByPlatform
暂无
代码示例来源:origin: org.jdesktop.bsaf/bsaf
if (!window.isLocationByPlatform() &&
(root.getX() == defaultLocation.getX()) &&
(root.getY() == defaultLocation.getY())) {
代码示例来源:origin: net.java.dev.appframework/appframework
window.pack();
if (!window.isLocationByPlatform() && (root.getX() == 0) && (root.getY() == 0)) {
Component owner = window.getOwner();
if (owner == null) {
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-session
@Override
public void setState(Object o, State state) {
Window w = checkComponent(o);
if ((state != null) && !(state instanceof WindowState)) {
throw new IllegalArgumentException("invalid state");
}
WindowState windowState = (WindowState) state;
if (windowState.getBounds() != null) {
putWindowNormalBounds(w, windowState.getBounds());
if (!w.isLocationByPlatform() && (state != null)) {
Rectangle gcBounds0 = windowState.getGcBounds();
if (gcBounds0 != null && isResizable(w)) {
if (computeVirtualGraphicsBounds().contains(gcBounds0.getLocation())) {
w.setBounds(windowState.getBounds());
} else {
w.setSize(windowState.getBounds().getSize());
}
}
}
if (w instanceof Frame) {
((Frame) w).setExtendedState(windowState.getFrameState());
}
}
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
@Override
public void setState(Object o, State state) {
Window w = checkComponent(o);
if ((state != null) && !(state instanceof WindowState)) {
throw new IllegalArgumentException("invalid state");
}
WindowState windowState = (WindowState) state;
if (windowState.getBounds() != null) {
putWindowNormalBounds(w, windowState.getBounds());
if (!w.isLocationByPlatform() && (state != null)) {
Rectangle gcBounds0 = windowState.getGcBounds();
if (gcBounds0 != null && isResizable(w)) {
if (computeVirtualGraphicsBounds().contains(gcBounds0.getLocation())) {
w.setBounds(windowState.getBounds());
} else {
w.setSize(windowState.getBounds().getSize());
}
}
}
}
if (w instanceof Frame) {
((Frame) w).setExtendedState(windowState.getFrameState());
}
}
}
代码示例来源:origin: org.nuiton/nuiton-widgets
@Override
public void setState(Object o, State state) {
Window w = checkComponent(o);
if ((state != null) && !(state instanceof WindowState)) {
throw new IllegalArgumentException("invalid state");
}
WindowState windowState = (WindowState) state;
if (windowState.getBounds() != null) {
putWindowNormalBounds(w, windowState.getBounds());
if (!w.isLocationByPlatform() && (state != null)) {
Rectangle gcBounds0 = windowState.getGcBounds();
if (gcBounds0 != null && isResizable(w)) {
if (computeVirtualGraphicsBounds().contains(gcBounds0.getLocation())) {
w.setBounds(windowState.getBounds());
} else {
w.setSize(windowState.getBounds().getSize());
}
}
}
if (w instanceof Frame) {
((Frame) w).setExtendedState(windowState.getFrameState());
}
}
}
代码示例来源:origin: net.java.dev.appframework/appframework
if (!w.isLocationByPlatform() && (state != null)) {
WindowState windowState = (WindowState)state;
Rectangle gcBounds0 = windowState.getGraphicsConfigurationBounds();
代码示例来源:origin: org.jdesktop.bsaf/bsaf
WindowState windowState = (WindowState) state;
SwingHelper.putWindowNormalBounds(w, windowState.getBounds());
if (!w.isLocationByPlatform() && (state != null)) {
内容来源于网络,如有侵权,请联系作者删除!