Envoltura para CAJA nativa de Leptonica. Más...
Métodos públicos | |
Box (int x, int y, int w, int h) | |
Creates a box with the specified geometry. All dimensions should be non-negative and specified in pixels. | |
int[] | getGeometry () |
Returns an array containing the coordinates of this box. See INDEX_* constants for indices. | |
boolean | getGeometry (int[] geometry) |
Fills an array containing the coordinates of this box. See INDEX_* constants for indices. | |
int | getHeight () |
Returns the box's height in pixels. | |
int | getWidth () |
Returns the box's width in pixels. | |
int | getX () |
Returns the box's x-coordinate in pixels. | |
int | getY () |
Returns the box's y-coordinate in pixels. | |
void | recycle () |
Releases resources and frees any memory associated with this Box. | |
Atributos públicos estáticos | |
static final int | INDEX_H = 3 |
The index of the height within the geometry array. | |
static final int | INDEX_W = 2 |
The index of the width within the geometry array. | |
static final int | INDEX_X = 0 |
The index of the X coordinate within the geometry array. | |
static final int | INDEX_Y = 1 |
The index of the Y coordinate within the geometry array. | |
Métodos protegidos | |
void | finalize () throws Throwable |
Funciones del 'package' | |
Box (int nativeBox) | |
Creates a new Box wrapper for the specified native BOX. | |
Funciones estáticas del 'package' | |
[static initializer] | |
Atributos del 'package' | |
final int | mNativeBox |
A pointer to the native Box object. This is used internally by native code. | |
Métodos privados estáticos | |
static native int | nativeCreate (int x, int y, int w, int h) |
static native void | nativeDestroy (int nativeBox) |
static native boolean | nativeGetGeometry (int nativeBox, int[] geometry) |
static native int | nativeGetHeight (int nativeBox) |
static native int | nativeGetWidth (int nativeBox) |
static native int | nativeGetX (int nativeBox) |
static native int | nativeGetY (int nativeBox) |
Atributos privados | |
boolean | mRecycled = false |
com.googlecode.leptonica.android.Box.Box | ( | int | nativeBox | ) | [package] |
com.googlecode.leptonica.android.Box.Box | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
Creates a box with the specified geometry. All dimensions should be non-negative and specified in pixels.
x | X-coordinate of the top-left corner of the box. |
y | Y-coordinate of the top-left corner of the box. |
w | Width of the box. |
h | Height of the box. |
Definición en la línea 82 del archivo Box.java.
com.googlecode.leptonica.android.Box.[static initializer] | ( | ) | [static, package] |
void com.googlecode.leptonica.android.Box.finalize | ( | ) | throws Throwable [protected] |
boolean com.googlecode.leptonica.android.Box.getGeometry | ( | int[] | geometry | ) |
static native int com.googlecode.leptonica.android.Box.nativeCreate | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | [static, private] |
static native void com.googlecode.leptonica.android.Box.nativeDestroy | ( | int | nativeBox | ) | [static, private] |
static native boolean com.googlecode.leptonica.android.Box.nativeGetGeometry | ( | int | nativeBox, |
int[] | geometry | ||
) | [static, private] |
static native int com.googlecode.leptonica.android.Box.nativeGetHeight | ( | int | nativeBox | ) | [static, private] |
static native int com.googlecode.leptonica.android.Box.nativeGetWidth | ( | int | nativeBox | ) | [static, private] |
static native int com.googlecode.leptonica.android.Box.nativeGetX | ( | int | nativeBox | ) | [static, private] |
static native int com.googlecode.leptonica.android.Box.nativeGetY | ( | int | nativeBox | ) | [static, private] |
final int com.googlecode.leptonica.android.Box.INDEX_H = 3 [static] |
final int com.googlecode.leptonica.android.Box.INDEX_W = 2 [static] |
final int com.googlecode.leptonica.android.Box.INDEX_X = 0 [static] |
final int com.googlecode.leptonica.android.Box.INDEX_Y = 1 [static] |
final int com.googlecode.leptonica.android.Box.mNativeBox [package] |
boolean com.googlecode.leptonica.android.Box.mRecycled = false [private] |