|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.util.SwingUtil
public class SwingUtil
This class contains a collection of static utility methods for Swing.
Method Summary | |
---|---|
static java.awt.Container |
getContentPane(java.awt.Window window)
Gets the content pane of the given window. |
static java.awt.Component |
getGlassPane(java.awt.Component component)
Gets the glass pane of the window of the given component. |
static javax.swing.JLayeredPane |
getLayeredPane(javax.swing.JRootPane rootPane)
Gets the layered pane of the window of the given component. |
static javax.swing.JRootPane |
getRootPane(java.awt.Component component)
Gets the root pane of the window of the given component. |
static javax.swing.JRootPane |
getRootPane(java.awt.Window window)
Gets the root pane of the window. |
static boolean |
isLocationInScreenBounds(java.awt.Point location)
Verifies if the given point is visible on the screen. |
static boolean |
locationInComponentVisible(java.awt.Point location,
java.awt.Component component)
Determines if the component is visible in its window at the given screen location. |
static void |
repaintParent(javax.swing.JComponent component)
Repaints the parent of the given component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void repaintParent(javax.swing.JComponent component)
component
- The component whose parent will be repainted.public static java.awt.Component getGlassPane(java.awt.Component component)
component
- The component whose glass pane is retrieved.
public static javax.swing.JRootPane getRootPane(java.awt.Component component)
component
- The component whose root pane is retrieved.
public static javax.swing.JRootPane getRootPane(java.awt.Window window)
window
- The window whose root pane is retrieved.
public static javax.swing.JLayeredPane getLayeredPane(javax.swing.JRootPane rootPane)
rootPane
- The root pane whose layered pane is retrieved.
public static java.awt.Container getContentPane(java.awt.Window window)
window
- The window. It should inherit from javax.swing.JFrame,
javax.swing.JDialog or javax.swing.JWindow.
public static boolean isLocationInScreenBounds(java.awt.Point location)
location
- The given location on the screen.
public static boolean locationInComponentVisible(java.awt.Point location, java.awt.Component component)
Determines if the component is visible in its window at the given screen location.
location
- A location on the screen.component
- A component in a window.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |