public class VectorStyleSimpleGenerator extends java.lang.Object implements VectorStyleInterface
| Modifier and Type | Class and Description |
|---|---|
class |
VectorStyleSimpleGenerator.VectorStyleSimple
Base class for our vector style implementations.
|
class |
VectorStyleSimpleGenerator.VectorStyleSimpleLinear
For linears we turn them into random linear features.
|
class |
VectorStyleSimpleGenerator.VectorStyleSimplePoint
For points we just turn them into labels for demonstration.
|
class |
VectorStyleSimpleGenerator.VectorStyleSimplePolygon |
| Constructor and Description |
|---|
VectorStyleSimpleGenerator(RenderControllerInterface inControl) |
| Modifier and Type | Method and Description |
|---|---|
VectorStyle[] |
allStyles()
Return the full list of styles.
|
int |
backgroundColorForZoom(double zoom)
Return a color for the background (clear color).
|
boolean |
layerShouldDisplay(java.lang.String layerName,
TileID tileID)
We'll display all layers
|
VectorStyle |
styleForUUID(long uuid,
RenderControllerInterface controller)
Returns a vector style corresponding to the given unique ID.
|
VectorStyle[] |
stylesForFeature(AttrDictionary attrs,
TileID tileID,
java.lang.String layerName,
RenderControllerInterface controller)
We'll return a point, line, or areal vector style
|
public VectorStyleSimpleGenerator(RenderControllerInterface inControl)
public VectorStyle[] stylesForFeature(AttrDictionary attrs, TileID tileID, java.lang.String layerName, RenderControllerInterface controller)
stylesForFeature in interface VectorStyleInterfaceattrs - The attribute dictionary from the vector feature.tileID - The tileID if we're building from a tile source. null if not.layerName - The layer name if the data is coming from vector tiles.controller - Maply base controller where thepublic boolean layerShouldDisplay(java.lang.String layerName,
TileID tileID)
layerShouldDisplay in interface VectorStyleInterfacelayerName - Name of the layer to be displayed (or not)tileID - If we're using a tile source, this is the tile ID. If not, it will be null.public VectorStyle styleForUUID(long uuid, RenderControllerInterface controller)
VectorStyleInterfacestyleForUUID in interface VectorStyleInterfaceuuid - Unique IDcontroller - Base controller used for the geometry.public VectorStyle[] allStyles()
VectorStyleInterfaceallStyles in interface VectorStyleInterfacepublic int backgroundColorForZoom(double zoom)
VectorStyleInterfacebackgroundColorForZoom in interface VectorStyleInterface