Class FeatureTileCanvas
java.lang.Object
mil.nga.geopackage.tiles.features.FeatureTileCanvas
Feature Tile Canvas for creating layered tiles to draw ordered features.
Draw Order: polygons, lines, points, icons
- Since:
- 3.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandroid.graphics.BitmapCreate the final bitmap from the layers, resets the layersandroid.graphics.BitmapGet the icon bitmapandroid.graphics.CanvasGet the icon canvasandroid.graphics.BitmapGet the line bitmapandroid.graphics.CanvasGet the line canvasandroid.graphics.BitmapGet the point bitmapandroid.graphics.CanvasGet the point canvasandroid.graphics.BitmapGet the polygon bitmapandroid.graphics.CanvasGet the polygon canvasvoidrecycle()Recycle the layered bitmaps
-
Constructor Details
-
FeatureTileCanvas
public FeatureTileCanvas(int tileWidth, int tileHeight) Constructor- Parameters:
tileWidth- tile widthtileHeight- tile height
-
-
Method Details
-
getPolygonBitmap
public android.graphics.Bitmap getPolygonBitmap()Get the polygon bitmap- Returns:
- polygon bitmap
-
getPolygonCanvas
public android.graphics.Canvas getPolygonCanvas()Get the polygon canvas- Returns:
- polygon canvas
-
getLineBitmap
public android.graphics.Bitmap getLineBitmap()Get the line bitmap- Returns:
- line bitmap
-
getLineCanvas
public android.graphics.Canvas getLineCanvas()Get the line canvas- Returns:
- line canvas
-
getPointBitmap
public android.graphics.Bitmap getPointBitmap()Get the point bitmap- Returns:
- point bitmap
-
getPointCanvas
public android.graphics.Canvas getPointCanvas()Get the point canvas- Returns:
- point canvas
-
getIconBitmap
public android.graphics.Bitmap getIconBitmap()Get the icon bitmap- Returns:
- icon bitmap
-
getIconCanvas
public android.graphics.Canvas getIconCanvas()Get the icon canvas- Returns:
- icon canvas
-
createBitmap
public android.graphics.Bitmap createBitmap()Create the final bitmap from the layers, resets the layers- Returns:
- bitmap
-
recycle
public void recycle()Recycle the layered bitmaps
-