public class NumberFeaturesTile extends Object implements CustomFeaturesTile
| Constructor and Description |
|---|
NumberFeaturesTile(Context context)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Bitmap |
drawTile(int tileWidth,
int tileHeight,
long tileFeatureCount,
FeatureIndexResults featureIndexResults)
Draw a custom tile
|
Bitmap |
drawUnindexedTile(int tileWidth,
int tileHeight,
long totalFeatureCount,
FeatureCursor allFeatureResults)
Draw a custom tile when the number of features within the tile is unknown.
|
Paint |
getCircleFillPaint()
Get the paint object used to draw the filled circle
|
float |
getCirclePaddingPercentage()
Get the circle padding percentage around the text
|
Paint |
getCirclePaint()
Get the paint object used to draw the circle
|
Paint |
getTextPaint()
Get the paint object used to draw the text
|
Paint |
getTileBorderPaint()
Get the tile border paint object used to draw a border around the tile
|
Paint |
getTileFillPaint()
Get the tile fill paint object used to color the entire tile
|
boolean |
isDrawUnindexedTiles()
Is the draw unindexed tiles option enabled
|
void |
setCircleFillPaint(Paint circleFillPaint)
Set the paint object used to draw the filled circle
|
void |
setCirclePaddingPercentage(float circlePaddingPercentage)
Set the circle padding percentage to pad around the text, value between 0.0 and 1.0
|
void |
setCirclePaint(Paint circlePaint)
Set the paint object used to draw the circle
|
void |
setDrawUnindexedTiles(boolean drawUnindexedTiles)
Set the draw unindexed tiles option
|
void |
setTextPaint(Paint textPaint)
Set the paint object used to draw the text
|
void |
setTileBorderPaint(Paint tileBorderPaint)
Set the tile border paint object used to draw a border around the tile
|
void |
setTileFillPaint(Paint tileFillPaint)
Set the tile fill paint object used to color the entire tile
|
public NumberFeaturesTile(Context context)
context - public Paint getTextPaint()
public void setTextPaint(Paint textPaint)
textPaint - public Paint getCirclePaint()
public void setCirclePaint(Paint circlePaint)
circlePaint - public Paint getCircleFillPaint()
public void setCircleFillPaint(Paint circleFillPaint)
circleFillPaint - public float getCirclePaddingPercentage()
public void setCirclePaddingPercentage(float circlePaddingPercentage)
circlePaddingPercentage - public Paint getTileBorderPaint()
public void setTileBorderPaint(Paint tileBorderPaint)
tileBorderPaint - public Paint getTileFillPaint()
public void setTileFillPaint(Paint tileFillPaint)
tileFillPaint - public boolean isDrawUnindexedTiles()
public void setDrawUnindexedTiles(boolean drawUnindexedTiles)
drawUnindexedTiles - public Bitmap drawTile(int tileWidth, int tileHeight, long tileFeatureCount, FeatureIndexResults featureIndexResults)
drawTile in interface CustomFeaturesTiletileWidth - tile width to drawtileHeight - tile height to drawtileFeatureCount - count of features in the requested tilefeatureIndexResults - results as feature index resultspublic Bitmap drawUnindexedTile(int tileWidth, int tileHeight, long totalFeatureCount, FeatureCursor allFeatureResults)
drawUnindexedTile in interface CustomFeaturesTiletileWidth - tile width to drawtileHeight - tile height to drawtotalFeatureCount - count of total features in the feature tableallFeatureResults - results in a feature cursor