public class FeaturePreview extends Object
| Constructor and Description |
|---|
FeaturePreview(Context context,
GeoPackage geoPackage,
FeatureDao featureDao)
Constructor
|
FeaturePreview(Context context,
GeoPackage geoPackage,
String featureTable)
Constructor
|
FeaturePreview(GeoPackage geoPackage,
FeatureTiles featureTiles)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String column)
Add a query column
|
void |
addColumns(Collection<String> columns)
Add query columns
|
void |
addColumns(String[] columns)
Add query columns
|
void |
appendWhere(String where)
Append to the where clause
|
void |
close()
Close the feature tiles connection
|
Bitmap |
draw()
Draw a preview image
|
double |
getBufferPercentage()
Get the buffer percentage for drawing empty non features edges (i.e.
|
Set<String> |
getColumns()
Get the query columns
|
FeatureTiles |
getFeatureTiles()
Get the feature tiles
|
GeoPackage |
getGeoPackage()
Get the GeoPackage
|
Integer |
getLimit()
Get the feature query limit
|
String |
getWhere()
Get the where clause
|
String[] |
getWhereArgs()
Get the where arguments
|
boolean |
isManual()
Is manual bounding box query enabled for non indexed and empty contents
bounds feature tables
|
void |
setBufferPercentage(double bufferPercentage)
Set the buffer percentage for drawing empty non features edges (i.e.
|
void |
setLimit(Integer limit)
Set the feature query limit
|
void |
setManual(boolean manual)
Set the manual bounding box query flag for non indexed and empty contents
bounds feature tables
|
void |
setWhere(String where)
Set the where clause
|
void |
setWhereArgs(String[] whereArgs)
Set the where arguments
|
public FeaturePreview(Context context, GeoPackage geoPackage, String featureTable)
context - contextgeoPackage - GeoPackagefeatureTable - feature tablepublic FeaturePreview(Context context, GeoPackage geoPackage, FeatureDao featureDao)
context - contextgeoPackage - GeoPackagefeatureDao - feature DAOpublic FeaturePreview(GeoPackage geoPackage, FeatureTiles featureTiles)
geoPackage - GeoPackagefeatureTiles - feature tilespublic GeoPackage getGeoPackage()
public FeatureTiles getFeatureTiles()
public boolean isManual()
public void setManual(boolean manual)
manual - manual flagpublic double getBufferPercentage()
public void setBufferPercentage(double bufferPercentage)
bufferPercentage - buffer percentage (greater than or equal to 0.0 and less than 0.5)public void addColumns(Collection<String> columns)
columns - columnspublic void addColumns(String[] columns)
columns - columnspublic void addColumn(String column)
column - columnpublic String getWhere()
public void setWhere(String where)
where - wherepublic void appendWhere(String where)
where - wherepublic String[] getWhereArgs()
public void setWhereArgs(String[] whereArgs)
whereArgs - where argumentspublic Integer getLimit()
public void setLimit(Integer limit)
limit - limitpublic Bitmap draw()
public void close()