Package org.jgraph.util
Class RectUtils
java.lang.Object
org.jgraph.util.RectUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle2D
union
(Rectangle2D src1, Rectangle2D src2) Unions the pair of sourceRectangle2D
objects and puts the result into the returnedRectangle2D
object.
-
Constructor Details
-
RectUtils
public RectUtils()
-
-
Method Details
-
union
Unions the pair of sourceRectangle2D
objects and puts the result into the returnedRectangle2D
object. This method extends the Rectangle2D version by checking for null parameters, the returned value will also benull
if the two input rectangles arenull
- Parameters:
src1
- the first of a pair ofRectangle2D
objects to be combined with each othersrc2
- the second of a pair ofRectangle2D
objects to be combined with each other
-