A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/javase/8/docs/api/javax/swing/SwingUtilities.html below:

SwingUtilities (Java Platform SE 8 )

Modifier and Type Method Description static Rectangle calculateInnerArea(JComponent c, Rectangle r)

Stores the position and size of the inner painting area of the specified component in r and returns r.

static Rectangle[] computeDifference(Rectangle rectA, Rectangle rectB)

Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB.

static Rectangle computeIntersection(int x, int y, int width, int height, Rectangle dest)

Convenience to calculate the intersection of two rectangles without allocating a new rectangle.

static int computeStringWidth(FontMetrics fm, String str)

Compute the width of the string using a font with the specified "metrics" (sizes).

static Rectangle computeUnion(int x, int y, int width, int height, Rectangle dest)

Convenience method that calculates the union of two rectangles without allocating a new rectangle.

static MouseEvent convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)

Returns a MouseEvent similar to sourceEvent except that its x and y members have been converted to destination's coordinate system.

static Point convertPoint(Component source, int x, int y, Component destination)

Convert the point (x,y) in source coordinate system to destination coordinate system.

static Point convertPoint(Component source, Point aPoint, Component destination)

Convert a aPoint in source coordinate system to destination coordinate system.

static void convertPointFromScreen(Point p, Component c)

Convert a point from a screen coordinates to a component's coordinate system

static void convertPointToScreen(Point p, Component c)

Convert a point from a component's coordinate system to screen coordinates.

static Rectangle convertRectangle(Component source, Rectangle aRectangle, Component destination)

Convert the rectangle aRectangle in source coordinate system to destination coordinate system.

static Component findFocusOwner(Component c) static Accessible getAccessibleAt(Component c, Point p)

Returns the Accessible child contained at the local coordinate Point, if one exists.

static Accessible getAccessibleChild(Component c, int i)

Return the nth Accessible child of the object.

static int getAccessibleChildrenCount(Component c)

Returns the number of accessible children in the object.

static int getAccessibleIndexInParent(Component c)

Get the index of this object in its accessible parent.

static AccessibleStateSet getAccessibleStateSet(Component c)

Get the state of this object.

static Container getAncestorNamed(String name, Component comp)

Convenience method for searching above comp in the component hierarchy and returns the first object of name it finds.

static Container getAncestorOfClass(Class<?> c, Component comp)

Convenience method for searching above comp in the component hierarchy and returns the first object of class c it finds.

static Component getDeepestComponentAt(Component parent, int x, int y)

Returns the deepest visible descendent Component of parent that contains the location x, y.

static Rectangle getLocalBounds(Component aComponent)

Return the rectangle (0,0,bounds.width,bounds.height) for the component aComponent

static Component getRoot(Component c)

Returns the root component for the current component tree.

static JRootPane getRootPane(Component c)

If c is a JRootPane descendant return its JRootPane ancestor.

static ActionMap getUIActionMap(JComponent component)

Returns the ActionMap provided by the UI in component component.

static InputMap getUIInputMap(JComponent component, int condition)

Returns the InputMap provided by the UI for condition condition in component component.

static Container getUnwrappedParent(Component component)

Returns the first ancestor of the

component

which is not an instance of

JLayer

.

static Component getUnwrappedView(JViewport viewport)

Returns the first JViewport's descendant which is not an instance of JLayer.

static Window getWindowAncestor(Component c)

Returns the first Window ancestor of c, or null if c is not contained inside a Window.

static void invokeAndWait(Runnable doRun)

Causes doRun.run() to be executed synchronously on the AWT event dispatching thread.

static void invokeLater(Runnable doRun)

Causes doRun.run() to be executed asynchronously on the AWT event dispatching thread.

static boolean isDescendingFrom(Component a, Component b)

Return true if a component a descends from a component b

static boolean isEventDispatchThread()

Returns true if the current thread is an AWT event dispatching thread.

static boolean isLeftMouseButton(MouseEvent anEvent)

Returns true if the mouse event specifies the left mouse button.

static boolean isMiddleMouseButton(MouseEvent anEvent)

Returns true if the mouse event specifies the middle mouse button.

static boolean isRectangleContainingRectangle(Rectangle a, Rectangle b)

Return true if a contains b

static boolean isRightMouseButton(MouseEvent anEvent)

Returns true if the mouse event specifies the right mouse button.

static String layoutCompoundLabel(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.

static String layoutCompoundLabel(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.

static boolean notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)

Invokes actionPerformed on action if action is enabled (and non-null).

static void paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)

Paints a component to the specified Graphics.

static void paintComponent(Graphics g, Component c, Container p, Rectangle r)

Paints a component to the specified Graphics.

static boolean processKeyBindings(KeyEvent event)

Process the key bindings for the Component associated with event.

static void replaceUIActionMap(JComponent component, ActionMap uiActionMap)

Convenience method to change the UI ActionMap for component to uiActionMap.

static void replaceUIInputMap(JComponent component, int type, InputMap uiInputMap)

Convenience method to change the UI InputMap for component to uiInputMap.

static void updateComponentTreeUI(Component c)

A simple minded look and feel change: ask each node in the tree to updateUI() -- that is, to initialize its UI property with the current look and feel.

static Window windowForComponent(Component c)

Returns the first Window ancestor of c, or null if c is not contained inside a Window.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4