Package com.metsci.glimpse.docking
Class MiscUtils
- java.lang.Object
-
- com.metsci.glimpse.docking.MiscUtils
-
public class MiscUtils extends Object
These utility methods aren't specific to docking, but are used internally by the docking code. They are kept out of DockingUtils not to hide them, but to avoid static-import collisions with other utility classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMiscUtils.IntAndIndex
-
Constructor Summary
Constructors Constructor Description MiscUtils()
-
Method Summary
-
-
-
Method Detail
-
minValueAndIndex
public static MiscUtils.IntAndIndex minValueAndIndex(int... vs)
-
pointRelativeToAncestor
public static Point pointRelativeToAncestor(MouseEvent ev, Component ancestor)
-
onWindowStateChanged
public static Disposable onWindowStateChanged(Window w, Runnable fn)
-
addWindowListener
public static Disposable addWindowListener(Window w, WindowListener listener)
-
onComponentMoved
public static Disposable onComponentMoved(Component c, Runnable fn)
-
onComponentResized
public static Disposable onComponentResized(Component c, Runnable fn)
-
addComponentListener
public static Disposable addComponentListener(Component c, ComponentListener listener)
-
createEmptyBorder
public static Border createEmptyBorder(int size)
-
iround
public static int iround(double d)
-
reversed
public static <T> List<T> reversed(Collection<T> list)
-
-