| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | checkedSuppressDropSupport
Indicates if we've checked the system property for suppressing drop support. |
| private static Frame | |
| private static boolean | suppressDropSupport
Indicates if we should change the drop target when a
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Rectangle | Returns: null if the Component is null;
otherwise, returns the passed-in rectangle (if non-null)
or a new rectangle specifying position and size informationthe JComponent in question; if c, Rectangle null, this method returns nullthe Rectangle instance to be modified;
may be r)nullStores the position and size of
the inner painting area of the specified component
in |
| private static boolean | Returns: true if the anEvent contains specified mouseButton or mouseButtonDownMask based on MouseEvent ID.a MouseEvent object anEvent, int mouse button type mouseButton, int mouse button down mask event modifier mouseButtonDownMask)Check whether MouseEvent contains specified mouse button or mouse button down mask based on MouseEvent ID. |
| public static Rectangle[] | Returns: an array of rectangles representing the regions withinrectA
that do not overlap with rectB.the first rectangle rectA, Rectangle the second rectangle rectB)Convenience returning an array of rect representing the regions within
|
| public static Rectangle | Returns: dest, modified to specify the intersectionthe X coordinate of the first rectangle's top-left point x, int the Y coordinate of the first rectangle's top-left point y, int the width of the first rectangle width, int the height of the first rectangle height, Rectangle the second rectangle dest)Convenience to calculate the intersection of two rectangles without allocating a new rectangle. |
| public static int | Returns: an int containing the string widtha FontMetrics object to compute with fm, String the String to compute str)Compute the width of the string using a font with the specified "metrics" (sizes). |
| public static Rectangle | Returns: thedest Rectanglethe x-coordinate of the first rectangle x, int the y-coordinate of the first rectangle y, int the width of the first rectangle width, int the height of the first rectangle height, Rectangle the coordinates of the second rectangle; the union
of the two rectangles is returned in this rectangle dest)Convenience method that calculates the union of two rectangles without allocating a new rectangle. |
| public static MouseEvent | Returns: the new mouse eventthe source component source, MouseEvent the source mouse event sourceEvent, Component the destination component destination)Returns a MouseEvent similar to |
| public static Point | Returns: the converted coordinatethe source component source, Point the point aPoint, Component the destination component destination)Convert a |
| public static Point | Returns: the converted coordinatethe source component source, int the x-coordinate of the point x, int the y-coordinate of the point y, Component the destination component destination)Convert the point |
| public static void | convertPointFromScreen(Point
a Point object (converted to the new coordinate system) p, Component a Component object c)Convert a point from a screen coordinates to a component's coordinate system |
| public static void | convertPointToScreen(Point
a Point object (converted to the new coordinate system) p, Component a Component object c)Convert a point from a component's coordinate system to screen coordinates. |
| public static Rectangle | Returns: the converted rectanglethe source component source, Rectangle a rectangle aRectangle, Component the destination component destination)Convert the rectangle |
| pack-priv static Point | convertScreenLocationToParent(Container parent, int x, int y)
Converts the location |
| pack-priv static boolean | doesIconReferenceImage(Icon icon, Image image)
Returns true if the Icon |
| pack-priv static int | Returns: index into the string if exists, otherwise -1The text to search through, may be text, int nullThe mnemonic to find the character for. mnemonic)Returns index of the first occurrence of |
| public static Component | Returns: the focus owner, ornull if there is no focus
owner, or if the focus owner is not comp, or a
descendant of compthe root of the c)Component hierarchy to
search for the focus owner
Deprecated
As of 1.4, replaced by
KeyboardFocusManager.getFocusOwner().
Return the child |
| public static Accessible | Returns: theAccessible at the specified location,
if it exists; otherwise nullthe component c, Point the local coordinate p)Returns the |
| public static Accessible | Returns: the nth Accessible child of the objectthe component c, int zero-based index of child i)Return the nth Accessible child of the object. |
| public static int | Returns: the number of accessible children in the object.the component c)Returns the number of accessible children in the object. |
| public static int | Returns: -1 of this object does not have an accessible parent. Otherwise, the index of the child in its accessible parent.the component c)Get the index of this object in its accessible parent. |
| public static AccessibleStateSet | Returns: an instance of AccessibleStateSet containing the current state set of the objectthe component c)Get the state of this object. |
| public static Container | Returns: the ancestor of thecomp,
or null if name cannot be found.the name of a component name, Component the component comp)Convenience method for searching above |
| public static Container | Returns: the ancestor of thecomp,
or null if c cannot be found.the class of a component c, Component the component comp)Convenience method for searching above |
| private static CellRendererPane | |
| public static Component | Returns: the deepest componentthe root component to begin the search parent, int the x target location x, int the y target location y)Returns the deepest visible descendent Component of |
| public static Rectangle | Returns: the local bounds for the componentaComponenta component aComponent)Return the rectangle (0,0,bounds.width,bounds.height) for the component |
| pack-priv static JComponent | |
| public static Component | |
| public static JRootPane | Returns: the JRootPane for Component c ornull.the component c)If c is a JRootPane descendant return its JRootPane ancestor. |
| pack-priv static Frame | getSharedOwnerFrame()
Returns a toolkit-private, shared, invisible Frame
to be the owner for JDialogs and JWindows created with
|
| pack-priv static WindowListener | getSharedOwnerFrameShutdownListener()
Returns a SharedOwnerFrame's shutdown listener to dispose the SharedOwnerFrame if it has no more displayable children. |
| private static boolean | |
| public static ActionMap | Returns: theActionMap provided by the UI in the component,
or null if the UI has not installed an ActionMap.a component component)Returns the ActionMap provided by the UI
in component |
| public static InputMap | Returns: theActionMap provided by the UI for condition
in the component, or null if the UI has not installed
an InputMap of the specified type.a component component, int a condition condition)Returns the InputMap provided by the UI for condition
|
| public static Container | Returns: the first ancestor of thecomponent
which is not an instance of JLayer.
If such an ancestor can not be found, null is returned.Component to get
the first ancestor of, which is not a JLayer instance.Returns the first ancestor of the |
| public static Component | Returns: the firstJViewport's descendant
which is not an instance of JLayer.
If such a descendant can not be found, null is returned.JViewport to get the first descendant of,
which in not a JLayer instance.Returns the first |
| pack-priv static Container | Returns: the validate root of the given container or nullRetrieves the validate root of a given container. |
| public static Window | Returns: the firstWindow ancestor of c, or
null if c is not contained inside a
Window.Component to get Window ancestor
of.Returns the first |
| pack-priv static void | installSwingDropTargetAsNecessary(Component c, TransferHandler t)
Installs a |
| public static void | invokeAndWait(final Runnable
the instance of doRun)RunnableCauses |
| public static void | invokeLater(Runnable
the instance of doRun)RunnableCauses doRun.run() to be executed asynchronously on the AWT event dispatching thread. |
| public static boolean | Returns: true if a component a descends from a component bthe first component a, Component the second component b)Return |
| public static boolean | Returns: true if the current thread is an AWT event dispatching threadReturns true if the current thread is an AWT event dispatching thread. |
| public static boolean | Returns: true if the left mouse button was activea MouseEvent object anEvent)Returns true if the mouse event specifies the left mouse button. |
| pack-priv static boolean | |
| public static boolean | Returns: true if the middle mouse button was activea MouseEvent object anEvent)Returns true if the mouse event specifies the middle mouse button. |
| public static final boolean | Returns: true if a contains bthe first rectangle a, Rectangle the second rectangle b)Return |
| public static boolean | Returns: true if the right mouse button was activea MouseEvent object anEvent)Returns true if the mouse event specifies the right mouse button. |
| pack-priv static boolean | isValidKeyEventForKeyBindings(KeyEvent e)
Returns true if the |
| public static String | Returns: the possibly clipped version of the compound labels stringthe component c, FontMetrics the instance of fm, String FontMetricsthe text text, Icon the icon icon, int the vertical alignment verticalAlignment, int the horizontal alignment horizontalAlignment, int the vertical text position verticalTextPosition, int the horizontal text position horizontalTextPosition, Rectangle the available rectangle viewR, Rectangle the rectangle for the icon iconR, Rectangle the rectangle for the text textR, int the gap between text and icon textIconGap)Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. |
| public static String | Returns: the possibly clipped version of the compound labels stringthe instance of fm, String FontMetricsthe text text, Icon the icon icon, int the vertical alignment verticalAlignment, int the horizontal alignment horizontalAlignment, int the vertical text position verticalTextPosition, int the horizontal text position horizontalTextPosition, Rectangle the available rectangle viewR, Rectangle the rectangle for the icon iconR, Rectangle the rectangle for the text textR, int the gap between text and icon textIconGap)Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. |
| private static String | layoutCompoundLabelImpl(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. |
| pack-priv static Class | |
| public static boolean | Returns: true if action is non-null and
actionPerformed is invoked on it.an action action, KeyStroke a key stroke ks, KeyEvent a key event event, Object a sender sender, int action modifiers modifiers)Invokes |
| public static void | paintComponent(Graphics
the g, Component Graphics object to draw onthe c, Container Component to drawthe intermediate p, int Containeran int specifying the left side of the area draw in, in pixels,
measured from the left edge of the graphics context x, int an int specifying the top of the area to draw in, in pixels
measured down from the top edge of the graphics context y, int an int specifying the width of the area draw in, in pixels w, int an int specifying the height of the area draw in, in pixels h)Paints a component to the specified |
| public static void | paintComponent(Graphics
the g, Component Graphics object to draw onthe c, Container Component to drawthe intermediate p, Rectangle Containerthe r)Rectangle to draw inPaints a component to the specified |
| public static boolean | Returns: true if a binding has found and processedKeyEvent used to identify which bindings to process, as
well as which Component has focus. event)Process the key bindings for the |
| public static void | replaceUIActionMap(JComponent
a component component, ActionMap an uiActionMap)ActionMapConvenience method to change the UI ActionMap for |
| public static void | replaceUIInputMap(JComponent
a component component, int a type type, InputMap an uiInputMap)InputMapConvenience method to change the UI InputMap for |
| public static void | updateComponentTreeUI(Component
the component c)A simple minded look and feel change: ask each node in the tree
to |
| private static void | |
| pack-priv static void | |
| public static Window | Returns: the firstWindow ancestor of c, or
null if c is not contained inside a
Window.Component to get Window ancestor
of.Returns the first |