Package org.jgraph.util
Class RectUtils
- java.lang.Object
-
- org.jgraph.util.RectUtils
-
public class RectUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.geom.Rectangle2Dunion(java.awt.geom.Rectangle2D src1, java.awt.geom.Rectangle2D src2)Unions the pair of sourceRectangle2Dobjects and puts the result into the returnedRectangle2Dobject.
-
-
-
Method Detail
-
union
public static java.awt.geom.Rectangle2D union(java.awt.geom.Rectangle2D src1, java.awt.geom.Rectangle2D src2)Unions the pair of sourceRectangle2Dobjects and puts the result into the returnedRectangle2Dobject. This method extends the Rectangle2D version by checking for null parameters, the returned value will also benullif the two input rectangles arenull- Parameters:
src1- the first of a pair ofRectangle2Dobjects to be combined with each othersrc2- the second of a pair ofRectangle2Dobjects to be combined with each other
-
-