GISDisplay

public class GISDisplay

Fields

mBkBitmap

protected Bitmap mBkBitmap

mCenter

protected GeoPoint mCenter

mCurrentBounds

protected GeoEnvelope mCurrentBounds

mDoubleBufferBitmap

protected Bitmap mDoubleBufferBitmap

mDoubleBufferCanvas

protected Canvas mDoubleBufferCanvas

mFullBounds

protected GeoEnvelope mFullBounds

mGeoLimits

protected GeoEnvelope mGeoLimits

mInvertScale

protected double mInvertScale

mInvertTransformMatrix

protected Matrix mInvertTransformMatrix

mLimitType

protected int mLimitType

mLimits

protected GeoEnvelope mLimits

mMainBitmap

protected Bitmap mMainBitmap

mMainBitmapOffsetX

protected float mMainBitmapOffsetX

mMainBitmapOffsetY

protected float mMainBitmapOffsetY

mMainCanvas

protected Canvas mMainCanvas

mMapTileSize

protected GeoPoint mMapTileSize

mMaxZoomLevel

protected float mMaxZoomLevel

mMinZoomLevel

protected float mMinZoomLevel

mOffScreenBounds

protected GeoEnvelope mOffScreenBounds

mRasterPaint

protected final Paint mRasterPaint

mScale

protected double mScale

mScreenBounds

protected GeoEnvelope mScreenBounds

mTileSize

protected final int mTileSize

mTransformMatrix

protected Matrix mTransformMatrix

mWidth

protected int mWidth

mZoomLevel

protected float mZoomLevel

Constructors

GISDisplay

public GISDisplay(Bitmap backgroundTile)

Methods

buffer

public void buffer(float x, float y, float scale)

clearBackground

public void clearBackground(Canvas canvas)

clearLayer

public void clearLayer()

draw

public void draw(Canvas canvas, boolean clearBackground)

draw

public synchronized void draw(Canvas canvas, float x, float y, boolean clearBackground)

draw

public synchronized void draw(Canvas canvas, float x, float y, float scale)

drawBitmap

public void drawBitmap(Bitmap bitmap, GeoPoint point, float offsetX, float offsetY)

drawBox

public void drawBox(float x, float y, float size, Paint paint)

drawCircle

public void drawCircle(float x, float y, Paint paint)

drawCircle

public void drawCircle(float x, float y, float radius, Paint paint)

drawCross

public void drawCross(float x, float y, float size, Paint paint)

drawCrossedBox

public void drawCrossedBox(float x, float y, float size, Paint paint)

drawLine

public void drawLine(float x0, float y0, float x1, float y1, Paint paint)

drawLines

public void drawLines(float[] pts, Paint paint)

drawPath

public void drawPath(Path path, Paint paint)

drawPoint

public void drawPoint(float x, float y, Paint paint)

drawTextOnPath

public void drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint)

drawTile

public void drawTile(Bitmap bitmap, GeoPoint pt, Paint paint)

getBounds

public final GeoEnvelope getBounds()

getCenter

public GeoPoint getCenter()

getFullBounds

public final GeoEnvelope getFullBounds()

getLimitType

public int getLimitType()

getLimits

public final GeoEnvelope getLimits()

getMaxZoomLevel

public float getMaxZoomLevel()

getMinZoomLevel

public float getMinZoomLevel()

getOffScreenBounds

public final GeoEnvelope getOffScreenBounds()

getScale

public final double getScale()

getScaledOffset

public GeoPoint getScaledOffset(float x, float y, float scale)

getScreenBounds

public final GeoEnvelope getScreenBounds()

getTileSize

public GeoPoint getTileSize()

getZoomLevel

public final float getZoomLevel()

mapToScreen

public GeoEnvelope mapToScreen(GeoEnvelope env)

mapToScreen

public GeoPoint mapToScreen(GeoPoint pt)

mapToScreen

public float[] mapToScreen(GeoPoint[] points)

screenToMap

public GeoPoint screenToMap(GeoPoint pt)

screenToMap

public GeoPoint[] screenToMap(float[] points)

screenToMap

public GeoEnvelope screenToMap(GeoEnvelope env)

setBackground

public void setBackground(Bitmap bkBitmap)

setGeoLimits

public void setGeoLimits(GeoEnvelope geoLimits, int limitType)

setMaxZoomLevel

public void setMaxZoomLevel(float maxZoom)

setMinZoomLevel

public void setMinZoomLevel(float minZoom)

setSize

public boolean setSize(int w, int h)

setZoomAndCenter

public void setZoomAndCenter(float zoom, GeoPoint center)