public class NumberFeaturesTile extends java.lang.Object implements CustomFeaturesTile
| Constructor and Description |
|---|
NumberFeaturesTile(android.content.Context context)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
drawTile(int tileWidth,
int tileHeight,
long tileFeatureCount,
FeatureIndexResults featureIndexResults)
Draw a custom tile
|
android.graphics.Bitmap |
drawUnindexedTile(int tileWidth,
int tileHeight,
long totalFeatureCount,
FeatureCursor allFeatureResults)
Draw a custom tile when the number of features within the tile is unknown.
|
android.graphics.Paint |
getCircleFillPaint()
Get the paint object used to draw the filled circle
|
float |
getCirclePaddingPercentage()
Get the circle padding percentage around the text
|
android.graphics.Paint |
getCirclePaint()
Get the paint object used to draw the circle
|
android.graphics.Paint |
getTextPaint()
Get the paint object used to draw the text
|
android.graphics.Paint |
getTileBorderPaint()
Get the tile border paint object used to draw a border around the tile
|
android.graphics.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(android.graphics.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(android.graphics.Paint circlePaint)
Set the paint object used to draw the circle
|
void |
setDrawUnindexedTiles(boolean drawUnindexedTiles)
Set the draw unindexed tiles option
|
void |
setTextPaint(android.graphics.Paint textPaint)
Set the paint object used to draw the text
|
void |
setTileBorderPaint(android.graphics.Paint tileBorderPaint)
Set the tile border paint object used to draw a border around the tile
|
void |
setTileFillPaint(android.graphics.Paint tileFillPaint)
Set the tile fill paint object used to color the entire tile
|
public NumberFeaturesTile(android.content.Context context)
context - public android.graphics.Paint getTextPaint()
public void setTextPaint(android.graphics.Paint textPaint)
textPaint - public android.graphics.Paint getCirclePaint()
public void setCirclePaint(android.graphics.Paint circlePaint)
circlePaint - public android.graphics.Paint getCircleFillPaint()
public void setCircleFillPaint(android.graphics.Paint circleFillPaint)
circleFillPaint - public float getCirclePaddingPercentage()
public void setCirclePaddingPercentage(float circlePaddingPercentage)
circlePaddingPercentage - public android.graphics.Paint getTileBorderPaint()
public void setTileBorderPaint(android.graphics.Paint tileBorderPaint)
tileBorderPaint - public android.graphics.Paint getTileFillPaint()
public void setTileFillPaint(android.graphics.Paint tileFillPaint)
tileFillPaint - public boolean isDrawUnindexedTiles()
public void setDrawUnindexedTiles(boolean drawUnindexedTiles)
drawUnindexedTiles - public android.graphics.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 android.graphics.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