public class JUtilities
extends java.lang.Object
Constructor and Description |
---|
JUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
centerWindow(java.awt.Window window)
Centres the supplied Window in the middle of the screen.
|
static void |
centreWindowUnderRectangle(java.awt.Window window,
java.awt.geom.Rectangle2D rectangle,
java.awt.Point offset,
int distance) |
static void |
centreWindowUnderVertex(NetGraph graph,
java.awt.Window window,
YAWLVertex vertex,
int distance) |
static void |
equalizeComponentSizes(java.util.List<javax.swing.JComponent> components)
Makes the supplied list of Component objects the same size (width and height) as the largest
component in the list.
|
static java.awt.Window |
getWindow(java.awt.Component c) |
public static java.awt.Window getWindow(java.awt.Component c)
public static void centerWindow(java.awt.Window window)
window
- the window to centre on-screenpublic static void equalizeComponentSizes(java.util.List<javax.swing.JComponent> components)
components
- the list of components that are to be resized.public static void centreWindowUnderVertex(NetGraph graph, java.awt.Window window, YAWLVertex vertex, int distance)
public static void centreWindowUnderRectangle(java.awt.Window window, java.awt.geom.Rectangle2D rectangle, java.awt.Point offset, int distance)