public class Boxa extends Object
Constructor and Description |
---|
Boxa(long nativeBoxa)
Creates a new Box wrapper for the specified native BOX.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
int |
getCount() |
int[] |
getGeometry(int index)
Returns an array containing the coordinates of this box.
|
boolean |
getGeometry(int index,
int[] geometry)
Fills an array containing the coordinates of this box.
|
long |
getNativeBoxa()
Returns a pointer to the native Boxa object.
|
Rect |
getRect(int index)
Returns an
Rect containing the coordinates
of this box. |
void |
recycle()
Releases resources and frees any memory associated with this Box.
|
public Boxa(long nativeBoxa)
nativeBoxa
- A pointer to the native Boxa object.public long getNativeBoxa()
public int getCount()
public Rect getRect(int index)
Rect
containing the coordinates
of this box.index
- which box element to refer topublic int[] getGeometry(int index)
index
- which box element to refer topublic boolean getGeometry(int index, int[] geometry)
index
- which box element to refer togeometry
- A 4+ element integer array to fill with coordinates.true
on successpublic void recycle()