private static final class MacOSXPopupLocationFix.ScreenGeometry extends Object
This code is inspired by similar in
JPopupMenu.adjustPopupLocationToFitScreen()
.
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
aqua |
(package private) GraphicsConfiguration |
graphicsConfiguration |
Constructor and Description |
---|
ScreenGeometry(JComponent component) |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getScreenBounds()
Get the bounds of where we can put a popup.
|
Insets |
getScreenInsets()
Fetch the screen insets, the off limits areas around the screen such
as menu bar, dock or start bar.
|
Rectangle |
getScreenSize()
Get the bounds of the screen currently displaying the component.
|
private GraphicsConfiguration |
graphicsConfigurationForComponent(Component component)
Get the best graphics configuration for the specified point and component.
|
final GraphicsConfiguration graphicsConfiguration
final boolean aqua
public ScreenGeometry(JComponent component)
private GraphicsConfiguration graphicsConfigurationForComponent(Component component)
public Rectangle getScreenBounds()
public Rectangle getScreenSize()
public Insets getScreenInsets()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses