org.openide.util.Utilities.getCurrentGraphicsConfiguration()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(95)

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

Utilities.getCurrentGraphicsConfiguration介绍

[英]Finds out the monitor where the user currently has the input focus. This method is usually used to help the client code to figure out on which monitor it should place newly created windows/frames/dialogs.
[中]找出用户当前具有输入焦点的监视器。此方法通常用于帮助客户端代码确定应在哪个监视器上放置新创建的窗口/框架/对话框。

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-util

/**
 * Helps client code place components on the center of the screen.  It
 * handles multiple monitor configuration correctly
 *
 * @param componentSize the size of the component
 * @return bounds of the centered component
 *
 * @since 2.5
 */
public static Rectangle findCenterBounds(Dimension componentSize) {
  return findCenterBounds(getCurrentGraphicsConfiguration(), componentSize);
}

代码示例来源:origin: org.netbeans.api/org-openide-util

/**
 * Returns the usable area of the screen where applications can place its
 * windows.  The method subtracts from the screen the area of taskbars,
 * system menus and the like.  The screen this method applies to is the one
 * which is considered current, ussually the one where the current input
 * focus is.
 *
 * @return the rectangle of the screen where one can place windows
 *
 * @since 2.5
 */
public static Rectangle getUsableScreenBounds() {
  return getUsableScreenBounds(getCurrentGraphicsConfiguration());
}

代码示例来源:origin: org.netbeans.api/org-openide-util-ui

/**
 * Helps client code place components on the center of the screen.  It
 * handles multiple monitor configuration correctly
 *
 * @param componentSize the size of the component
 * @return bounds of the centered component
 *
 * @since 2.5
 */
public static Rectangle findCenterBounds(Dimension componentSize) {
  return findCenterBounds(getCurrentGraphicsConfiguration(), componentSize);
}

代码示例来源:origin: org.netbeans.api/org-openide-util-ui

/**
 * Returns the usable area of the screen where applications can place its
 * windows.  The method subtracts from the screen the area of taskbars,
 * system menus and the like.  The screen this method applies to is the one
 * which is considered current, ussually the one where the current input
 * focus is.
 *
 * @return the rectangle of the screen where one can place windows
 *
 * @since 2.5
 */
public static Rectangle getUsableScreenBounds() {
  return getUsableScreenBounds(getCurrentGraphicsConfiguration());
}

代码示例来源:origin: in.jlibs/org-openide-util

/**
 * Helps client code place components on the center of the screen.  It
 * handles multiple monitor configuration correctly
 *
 * @param componentSize the size of the component
 * @return bounds of the centered component
 *
 * @since 2.5
 */
public static Rectangle findCenterBounds(Dimension componentSize) {
  return findCenterBounds(getCurrentGraphicsConfiguration(), componentSize);
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/**
 * Helps client code place components on the center of the screen.  It
 * handles multiple monitor configuration correctly
 *
 * @param componentSize the size of the component
 * @return bounds of the centered component
 *
 * @since 2.5
 */
public static Rectangle findCenterBounds(Dimension componentSize) {
  return findCenterBounds(getCurrentGraphicsConfiguration(), componentSize);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/**
 * Helps client code place components on the center of the screen.  It
 * handles multiple monitor configuration correctly
 *
 * @param componentSize the size of the component
 * @return bounds of the centered component
 *
 * @since 2.5
 */
public static Rectangle findCenterBounds(Dimension componentSize) {
  return findCenterBounds(getCurrentGraphicsConfiguration(),
              componentSize);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/**
 * Helps client code place components on the center of the screen.  It
 * handles multiple monitor configuration correctly
 *
 * @param componentSize the size of the component
 * @return bounds of the centered component
 *
 * @since 2.5
 */
public static Rectangle findCenterBounds(Dimension componentSize) {
  return findCenterBounds(getCurrentGraphicsConfiguration(),
              componentSize);
}

代码示例来源:origin: in.jlibs/org-openide-util

/**
 * Returns the usable area of the screen where applications can place its
 * windows.  The method subtracts from the screen the area of taskbars,
 * system menus and the like.  The screen this method applies to is the one
 * which is considered current, ussually the one where the current input
 * focus is.
 *
 * @return the rectangle of the screen where one can place windows
 *
 * @since 2.5
 */
public static Rectangle getUsableScreenBounds() {
  return getUsableScreenBounds(getCurrentGraphicsConfiguration());
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/**
 * Returns the usable area of the screen where applications can place its
 * windows.  The method subtracts from the screen the area of taskbars,
 * system menus and the like.  The screen this method applies to is the one
 * which is considered current, ussually the one where the current input
 * focus is.
 *
 * @return the rectangle of the screen where one can place windows
 *
 * @since 2.5
 */
public static Rectangle getUsableScreenBounds() {
  return getUsableScreenBounds(getCurrentGraphicsConfiguration());
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/**
 * Returns the usable area of the screen where applications can place its
 * windows.  The method subtracts from the screen the area of taskbars,
 * system menus and the like.  The screen this method applies to is the one
 * which is considered current, ussually the one where the current input
 * focus is.
 * 
 * @return the rectangle of the screen where one can place windows
 * 
 * @since 2.5
 */
public static Rectangle getUsableScreenBounds() {
  return getUsableScreenBounds(getCurrentGraphicsConfiguration());
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/**
 * Returns the usable area of the screen where applications can place its
 * windows.  The method subtracts from the screen the area of taskbars,
 * system menus and the like.  The screen this method applies to is the one
 * which is considered current, ussually the one where the current input
 * focus is.
 * 
 * @return the rectangle of the screen where one can place windows
 * 
 * @since 2.5
 */
public static Rectangle getUsableScreenBounds() {
  return getUsableScreenBounds(getCurrentGraphicsConfiguration());
}

相关文章

微信公众号

最新文章

更多