@Deprecated public final class GraphicsUtils extends GraphicsUtils
GraphicsUtils defines common user-interface related utility
 functions.| Modifier and Type | Field and Description | 
|---|---|
| protected static java.awt.Component | componentDeprecated.  | 
| protected static java.awt.MediaTracker | trackerDeprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | centerWindowOnComponent(java.awt.Window window,
                       java.awt.Component over)Deprecated.  Centers the window over a component (usually another window). | 
| static javax.swing.ImageIcon | createImageIcon(java.awt.Image image)Deprecated.  | 
| static javax.swing.ImageIcon | createImageIcon(java.net.URL url)Deprecated.  Create an image icon from the specified URL. | 
| static void | drawHighlightBorder(java.awt.Graphics g,
                   int x,
                   int y,
                   int width,
                   int height,
                   boolean raised,
                   java.awt.Color shadow,
                   java.awt.Color highlight)Deprecated.  Draws a single-line highlight border rectangle. | 
| static java.awt.Component | focusComponentOrChild(java.awt.Component c)Deprecated.  Puts the focus on the first component in the tree of  cthat
 can accept the focus. | 
| static javax.swing.JComponent | focusComponentOrChild(java.awt.Component c,
                     boolean deepest)Deprecated.  Puts the focus on the first component in the tree of  cthat
 can accept the focus. | 
| static java.awt.Component | getFocusableComponentOrChild(java.awt.Component c)Deprecated. 
 replaced by  getFocusableComponentOrChild(Component, boolean) | 
| static javax.swing.JComponent | getFocusableComponentOrChild(java.awt.Component c,
                            boolean deepest)Deprecated.  Returns the first component in the tree of  cthat can accept
 the focus. | 
| static java.awt.Component | getFocusedChildComponent(java.awt.Component c)Deprecated.  | 
| static java.awt.Insets | getHighlightBorderInsets()Deprecated.  Return the amount of space taken up by a highlight border drawn by
  drawHighlightBorder(). | 
| static java.lang.String[] | getImageExtensions()Deprecated.  Returns an array of extenstions for available images. | 
| static java.awt.Point | getPopupMenuShowPoint(javax.swing.JPopupMenu popup,
                     int x,
                     int y)Deprecated.  Returns a point where the given popup menu should be shown. | 
| static java.awt.Point | getPopupMenuShowPoint(javax.swing.JPopupMenu popup,
                     java.awt.event.MouseEvent event)Deprecated.  Returns a point where the given popup menu should be shown. | 
| static java.awt.Rectangle[] | getScreenBounds()Deprecated.  | 
| static boolean | isAncestorOfFocusedComponent(java.awt.Component c)Deprecated.  | 
| static java.awt.Image | loadFromResource(java.lang.String imageName,
                java.lang.Class cls)Deprecated.  Loads an  ImagenamedimageNameas a resource 
 relative to the Classcls. | 
centerWindowOnScreenprotected static final java.awt.Component component
protected static final java.awt.MediaTracker tracker
public static void drawHighlightBorder(java.awt.Graphics g,
                                       int x,
                                       int y,
                                       int width,
                                       int height,
                                       boolean raised,
                                       java.awt.Color shadow,
                                       java.awt.Color highlight)
g - The graphics context to use for drawing.x - The left edge of the border.y - The top edge of the border.width - The width of the border.height - The height of the border.raised - true if the border is to be drawn raised,
               false if lowered.shadow - The shadow color for the border.highlight - The highlight color for the border.EtchedBorder, 
BasicGraphicsUtils.drawEtchedRect(java.awt.Graphics, int, int, int, int, java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)public static java.awt.Insets getHighlightBorderInsets()
drawHighlightBorder().Insets needed for the highlight border.drawHighlightBorder(java.awt.Graphics, int, int, int, int, boolean, java.awt.Color, java.awt.Color)public static javax.swing.ImageIcon createImageIcon(java.net.URL url)
url - the url to load an image icon forpublic static javax.swing.ImageIcon createImageIcon(java.awt.Image image)
public static java.awt.Point getPopupMenuShowPoint(javax.swing.JPopupMenu popup,
                                                   java.awt.event.MouseEvent event)
popup - the popup menuevent - the mouse eventpublic static java.awt.Point getPopupMenuShowPoint(javax.swing.JPopupMenu popup,
                                                   int x,
                                                   int y)
popup - the popup menux - the x position in screen coordinatey - the y position in screen coordinatespublic static void centerWindowOnComponent(java.awt.Window window,
                                           java.awt.Component over)
public static boolean isAncestorOfFocusedComponent(java.awt.Component c)
public static java.awt.Component getFocusedChildComponent(java.awt.Component c)
public static java.awt.Component getFocusableComponentOrChild(java.awt.Component c)
getFocusableComponentOrChild(Component, boolean)c that can accept
 the focus.c - the root of the component hierarchy to searchfocusComponentOrChild(java.awt.Component)public static javax.swing.JComponent getFocusableComponentOrChild(java.awt.Component c,
                                                                  boolean deepest)
c that can accept
 the focus.c - the root of the component hierarchy to searchdeepest - if deepest is true the method will return the first and deepest component that can accept the 
 focus.  For example, if both a child and its parent are focusable and deepest is true, the child is
 returned.focusComponentOrChild(java.awt.Component)public static java.awt.Component focusComponentOrChild(java.awt.Component c)
c that
 can accept the focus.public static javax.swing.JComponent focusComponentOrChild(java.awt.Component c,
                                                           boolean deepest)
c that
 can accept the focus.c - the root of the component hierarchy to searchdeepest - if deepest is true the method will focus the first and deepest component that can 
 accept the focus.  
 For example, if both a child and its parent are focusable and deepest is true, the child is focused.getFocusableComponentOrChild(java.awt.Component)public static java.awt.Image loadFromResource(java.lang.String imageName,
                                              java.lang.Class cls)
Image named imageName as a resource 
 relative to the Class cls.  If the Image can
 not be loaded, then null is returned.  Images loaded here 
 will be added to an internal cache based upon the full URL to 
 their location.
 This method replaces legacy code from JDeveloper 3.x and earlier.Class.getResource(String), 
Toolkit.createImage(URL)public static java.awt.Rectangle[] getScreenBounds()
public static java.lang.String[] getImageExtensions()