List of usage examples for javax.swing SwingUtilities computeIntersection
public static Rectangle computeIntersection(int x, int y, int width, int height, Rectangle dest)
From source file:GraphicsUtil.java
public static Rectangle calculateIntersectionClip(int x, int y, int width, int height, Shape originalClip) { Rectangle bounds = originalClip.getBounds(); SwingUtilities.computeIntersection(x, y, width, height, bounds); return bounds; }