RectangleExtensions

Inheritance: java.lang.Object

public final class RectangleExtensions

Contient des méthodes d’extension pour Rectangle.

Méthodes

MéthodeDescription
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ètreTypeDescription
rectangleRectangleLe 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ètreTypeDescription
rectangleRectangleFLe 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ètreTypeDescription
rectangleRectangleFLe premier rectangle.
otherRectangleRectangleFLe deuxième rectangle.

Returns: RectangleF - New rectangle as union operation result