public class ShpFileEmptyTileHandler extends SimpleEmptyTileHandler
emptyTileHandler=com.bbn.openmap.dataAccess.mapTile.ShpFileEmptyTileHandler shpFile=File, resource or URL to shape file for land representation. # Properties to set how the shp file contents are rendered. land.fillColor=hex RGB color land.lineColor=hex RGB color land.fillPattern=path to resource, file or URL of pattern to use for tile fill. # From SimpleEmptyTileHandler superclass, handling the 'water' # clear by default if not specified background.fillColor=hex RGB color background.lineColor=hex RGB color background.fillPattern=path to resource, file or URL of pattern to use for tile fill. # Zoom level to start using noCoverage attributes. Is 0 by default if the shape file # is not specified. If the shape file is specified and this isn't the zoom level # will be set to 20. noCoverageZoom=zoom level when you don't want empty tiles, you want no coverage tiles # How to render standard empty tiles, will be clear if not defined noCoverage.fillColor=hex RGB color noCoverage.lineColor=hex RGB color noCoverage.fillPattern=path to resource, file or URL of pattern to use for tile fill.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAND_ATTRIBUTES_PROPERTY |
protected DrawingAttributes |
landAttributes |
protected ShapeLayer |
shapeStuff |
static java.lang.String |
SHP_FILE_PROPERTY |
BACKGROUND_PROPERTY, backgroundAtts, backgroundTileImage, emptyTileImage, logger, NO_COVERAGE_PROPERTY, NO_COVERAGE_ZOOM_PROPERTY, noCoverageAtts, noCoverageZoom, prefix, TILE_SIZE
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
ShpFileEmptyTileHandler() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
getImageForEmptyTile(java.lang.String imagePath,
int x,
int y,
int zoomLevel,
MapTileCoordinateTransform mtcTransform,
Projection proj)
The main call from the MapTileFactory to return something for the given
missing tile.
|
DrawingAttributes |
getLandAttributes() |
java.util.Properties |
getProperties(java.util.Properties props)
Method to fill in a Properties object, reflecting the current
values of the PropertyConsumer.
|
ShapeLayer |
getShapeStuff() |
void |
setLandAttributes(DrawingAttributes landAttributes) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Method to set the properties in the PropertyConsumer.
|
void |
setShapeStuff(ShapeLayer shapeStuff) |
createTileImageFromDrawingAttributes, getBackgroundAtts, getNoCoverageAtts, getNoCoverageZoom, getPropertyInfo, getPropertyPrefix, setBackgroundAtts, setNoCoverageAtts, setNoCoverageZoom, setProperties, setPropertyPrefix
public static final java.lang.String LAND_ATTRIBUTES_PROPERTY
public static final java.lang.String SHP_FILE_PROPERTY
protected ShapeLayer shapeStuff
protected DrawingAttributes landAttributes
public java.awt.image.BufferedImage getImageForEmptyTile(java.lang.String imagePath, int x, int y, int zoomLevel, MapTileCoordinateTransform mtcTransform, Projection proj)
EmptyTileHandler
getImageForEmptyTile
in interface EmptyTileHandler
getImageForEmptyTile
in class SimpleEmptyTileHandler
imagePath
- the path of the missing tile that is going to be used as
cache lookup later.x
- the uv x coordinate of the tile.y
- the uv y coordinate of the tile.zoomLevel
- the zoom level of the tile.mtcTransform
- the transform that converts x,y coordinates to
lat/lon and describes the layout of the uv tile coordinates.proj
- the map projection, in case that matters what should be
returned for the empty tile.public ShapeLayer getShapeStuff()
public void setShapeStuff(ShapeLayer shapeStuff)
public void setProperties(java.lang.String prefix, java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
setProperties
in class SimpleEmptyTileHandler
prefix
- a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.props
- a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public java.util.Properties getProperties(java.util.Properties props)
PropertyConsumer
getProperties
in interface PropertyConsumer
getProperties
in class SimpleEmptyTileHandler
props
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public DrawingAttributes getLandAttributes()
public void setLandAttributes(DrawingAttributes landAttributes)
landAttributes
- the landAttributes to setCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details