RectangleExtensions
Inheritance: java.lang.Object
public final class RectangleExtensions
Contiene métodos de extensión para Rectangle.
Métodos
| Método | Descripción |
|---|---|
| toGdiRectangle(Rectangle rectangle) | Convierte el Rectangle al System.Drawing.Rectangle. |
| toGdiRectangle(RectangleF rectangle) | Convierte el RectangleF al System.Drawing.Rectangle. |
| unionWith(RectangleF rectangle, RectangleF otherRectangle) | Une dos rectángulos. |
toGdiRectangle(Rectangle rectangle)
public static Rectangle toGdiRectangle(Rectangle rectangle)
Convierte el Rectangle al System.Drawing.Rectangle.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| rectangle | Rectangle | El rectángulo a convertir. |
Returns:
Rectangle - The converted System.Drawing.Rectangle.
toGdiRectangle(RectangleF rectangle)
public static Rectangle2D.Float toGdiRectangle(RectangleF rectangle)
Convierte el RectangleF al System.Drawing.Rectangle.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| rectangle | RectangleF | El rectángulo a convertir. |
Returns:
java.awt.geom.Rectangle2D.Float - El System.Drawing.RectangleF convertido.
unionWith(RectangleF rectangle, RectangleF otherRectangle)
public static RectangleF unionWith(RectangleF rectangle, RectangleF otherRectangle)
Une dos rectángulos.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| rectangle | RectangleF | El primer rectángulo. |
| otherRectangle | RectangleF | El segundo rectángulo. |
Returns: RectangleF - New rectangle as union operation result