Modifier and Type | Field and Description |
---|---|
protected RectF |
mBounds |
protected T[][] |
mData |
protected java.util.ArrayList<PointF> |
mScratchList |
protected Point |
mSize |
protected boolean |
mUseCellCenter |
static java.lang.String |
TAG |
Constructor and Description |
---|
AbstractGrid(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
PointF[] |
cellToPointPath(java.util.List<? extends Point> cellPath,
boolean compression) |
int |
cellToPointPath(java.util.List<? extends Point> cellPath,
boolean compression,
PointF[] resultPath)
Optimized version
|
void |
dispose() |
RectF |
getBounds() |
T |
getDataAt(int cellX,
int cellY) |
Point |
getSize() |
void |
setDataAt(int cellX,
int cellY,
T data) |
void |
setSize(int w,
int h) |
protected abstract void |
updateBounds() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cellToPoint, cellToPoint, pointToCell, pointToCell
public static final java.lang.String TAG
protected T[][] mData
protected Point mSize
protected boolean mUseCellCenter
protected RectF mBounds
protected java.util.ArrayList<PointF> mScratchList
protected abstract void updateBounds()
public void setDataAt(int cellX, int cellY, T data)
public PointF[] cellToPointPath(java.util.List<? extends Point> cellPath, boolean compression)
public int cellToPointPath(java.util.List<? extends Point> cellPath, boolean compression, PointF[] resultPath)
cellPath
- compression
- resultPath
-