Class MacOSXPopupLocationFix.ScreenGeometry
java.lang.Object
org.jdesktop.swingx.autocomplete.workarounds.MacOSXPopupLocationFix.ScreenGeometry
- Enclosing class:
MacOSXPopupLocationFix
Figure out the dimensions of our screen.
This code is inspired by similar in
JPopupMenu.adjustPopupLocationToFitScreen().
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) final GraphicsConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the bounds of where we can put a popup.Fetch the screen insets, the off limits areas around the screen such as menu bar, dock or start bar.Get the bounds of the screen currently displaying the component.private GraphicsConfigurationgraphicsConfigurationForComponent(Component component) Get the best graphics configuration for the specified point and component.
-
Field Details
-
graphicsConfiguration
-
aqua
final boolean aqua
-
-
Constructor Details
-
ScreenGeometry
-
-
Method Details
-
graphicsConfigurationForComponent
Get the best graphics configuration for the specified point and component. -
getScreenBounds
Get the bounds of where we can put a popup. -
getScreenSize
Get the bounds of the screen currently displaying the component. -
getScreenInsets
Fetch the screen insets, the off limits areas around the screen such as menu bar, dock or start bar.
-