public final class MIRect
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
MIPoint |
origin
The coordinates of the top-left vertex of the rectangle
|
MISize |
size
The rectangle size
|
| Constructor and Description |
|---|
MIRect()
A default constructor
|
MIRect(float x,
float y,
float width,
float height)
Creates the
MIRect object given the X- and Y-coordinates of the top-left vertex and the width and the height of the rectangle |
MIRect(MIPoint origin,
MISize size)
Creates the
MIRect object given the coordinates of the top-left vertex and the size |
MIRect(MIRect other)
Creates a copy of the
MIRect object |
MIRect(android.graphics.RectF rect)
Creates the
MIRect object from the RectF object |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" the
MIRect object |
int |
hashCode()
Returns a hash code value for the object.
|
android.graphics.RectF |
toRectF()
Converts point into the
PointF object |
public final MIPoint origin
public final MISize size
public MIRect()
public MIRect(MIRect other)
MIRect objectother - - The MIRect objectpublic MIRect(MIPoint origin, MISize size)
MIRect object given the coordinates of the top-left vertex and the sizepublic MIRect(float x,
float y,
float width,
float height)
MIRect object given the X- and Y-coordinates of the top-left vertex and the width and the height of the rectanglex - - The X-coordinate of the top-left vertexy - - The Y-coordinate of the top-left vertexwidth - - The width of the rectangleheight - - The height of the rectanglepublic MIRect(android.graphics.RectF rect)
MIRect object from the RectF objectrect - - The RectF objectpublic android.graphics.RectF toRectF()
PointF objectPointF representation of the rectanglepublic boolean equals(java.lang.Object object)
MIRect objectequals in class java.lang.Objectobject - - The reference object with which to comparetrue if this object is the same as the object argument; false otherwise.public int hashCode()
hashCode in class java.lang.Object