RectUtils (JGraph v5.12.4.2 API Specification)
Keywords: org.jgraph.util.RectUtils class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph v5.12.4.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jgraph.util
Class RectUtils

    java.lang.Object
      org.jgraph.util.RectUtils

public class RectUtils
extends Object

Constructor Summary
`RectUtils()`

Method Summary
`static Rectangle2D` | `union(Rectangle2D src1, Rectangle2D src2)` Unions the pair of source `Rectangle2D` objects and puts the result into the returned `Rectangle2D` object.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RectUtils

    public RectUtils()

Method Detail

### union

    public static Rectangle2D union(Rectangle2D src1,
                                    Rectangle2D src2)

  Unions the pair of source `Rectangle2D` objects and puts the result into the returned `Rectangle2D` object. This method extends the Rectangle2D version by checking for null parameters, the returned value will also be `null` if the two input rectangles are `null`

  Parameters:
    `src1` - the first of a pair of `Rectangle2D` objects to be combined with each other
    `src2` - the second of a pair of `Rectangle2D` objects to be combined with each other

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph v5.12.4.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (C) 2001-2008 Gaudenz Alder. All rights reserved.