RectangleExtensions

Inheritance: java.lang.Object

public final class RectangleExtensions

Contains extension methods for Rectangle .

Methods

MethodDescription
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toGdiRectangle(Rectangle rectangle)Converts the Rectangle to the System.Drawing.Rectangle .
toGdiRectangle(RectangleF rectangle)Converts the RectangleF to the System.Drawing.Rectangle .
toString()
unionWith(RectangleF rectangle, RectangleF otherRectangle)Unions two rectangle.
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toGdiRectangle(Rectangle rectangle)

public static Rectangle toGdiRectangle(Rectangle rectangle)

Converts the Rectangle to the System.Drawing.Rectangle .

Parameters:

ParameterTypeDescription
rectangleRectangleThe rectangle to convert.

Returns: Rectangle - The converted System.Drawing.Rectangle .

toGdiRectangle(RectangleF rectangle)

public static Rectangle2D.Float toGdiRectangle(RectangleF rectangle)

Converts the RectangleF to the System.Drawing.Rectangle .

Parameters:

ParameterTypeDescription
rectangleRectangleFThe rectangle to convert.

Returns: java.awt.geom.Rectangle2D.Float - The converted System.Drawing.RectangleF .

toString()

public String toString()

Returns: java.lang.String

unionWith(RectangleF rectangle, RectangleF otherRectangle)

public static RectangleF unionWith(RectangleF rectangle, RectangleF otherRectangle)

Unions two rectangle.

Parameters:

ParameterTypeDescription
rectangleRectangleFThe first rectangle.
otherRectangleRectangleFThe second rectangle.

Returns: RectangleF - New rectangle as union operation result

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int