RectangleExtensions
Inheritance: java.lang.Object
public final class RectangleExtensions
Contient des méthodes d’extension pour Rectangle.
Méthodes
| Méthode | Description |
|---|---|
| toGdiRectangle(Rectangle rectangle) | Convertit le Rectangle en System.Drawing.Rectangle. |
| toGdiRectangle(RectangleF rectangle) | Convertit le RectangleF en System.Drawing.Rectangle. |
| unionWith(RectangleF rectangle, RectangleF otherRectangle) | Fusionne deux rectangles. |
toGdiRectangle(Rectangle rectangle)
public static Rectangle toGdiRectangle(Rectangle rectangle)
Convertit le Rectangle en System.Drawing.Rectangle.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| rectangle | Rectangle | Le rectangle à convertir. |
Returns:
Rectangle - The converted System.Drawing.Rectangle.
toGdiRectangle(RectangleF rectangle)
public static Rectangle2D.Float toGdiRectangle(RectangleF rectangle)
Convertit le RectangleF en System.Drawing.Rectangle.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| rectangle | RectangleF | Le rectangle à convertir. |
Returns:
java.awt.geom.Rectangle2D.Float - Le System.Drawing.RectangleF converti.
unionWith(RectangleF rectangle, RectangleF otherRectangle)
public static RectangleF unionWith(RectangleF rectangle, RectangleF otherRectangle)
Fusionne deux rectangles.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| rectangle | RectangleF | Le premier rectangle. |
| otherRectangle | RectangleF | Le deuxième rectangle. |
Returns: RectangleF - New rectangle as union operation result