public class FillLayer extends Layer
| Constructor and Description |
|---|
FillLayer(long nativePtr)
Creates a FillLayer.
|
FillLayer(java.lang.String layerId,
java.lang.String sourceId)
Creates a FillLayer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
PropertyValue<java.lang.Boolean> |
getFillAntialias()
Get the FillAntialias property
|
PropertyValue<java.lang.String> |
getFillColor()
Get the FillColor property
|
int |
getFillColorAsInt()
The color of the filled part of this layer.
|
PropertyValue<java.lang.Float> |
getFillOpacity()
Get the FillOpacity property
|
PropertyValue<java.lang.String> |
getFillOutlineColor()
Get the FillOutlineColor property
|
int |
getFillOutlineColorAsInt()
The outline color of the fill.
|
PropertyValue<java.lang.String> |
getFillPattern()
Get the FillPattern property
|
PropertyValue<java.lang.Float[]> |
getFillTranslate()
Get the FillTranslate property
|
PropertyValue<java.lang.String> |
getFillTranslateAnchor()
Get the FillTranslateAnchor property
|
protected void |
initialize(java.lang.String layerId,
java.lang.String sourceId) |
void |
setFilter(Filter.Statement filter)
Set a single filter.
|
void |
setSourceLayer(java.lang.String sourceLayer)
Set the source layer.
|
FillLayer |
withFilter(Filter.Statement filter)
Set a single filter.
|
FillLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
FillLayer |
withSourceLayer(java.lang.String sourceLayer)
Set the source Layer.
|
getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setMaxZoom, setMinZoom, setPropertiespublic FillLayer(long nativePtr)
nativePtr - pointer used by corepublic FillLayer(java.lang.String layerId,
java.lang.String sourceId)
layerId - the id of the layersourceId - the id of the sourceprotected void initialize(java.lang.String layerId,
java.lang.String sourceId)
public void setSourceLayer(java.lang.String sourceLayer)
sourceLayer - the source layer to setpublic FillLayer withSourceLayer(java.lang.String sourceLayer)
sourceLayer - the source layer to setpublic void setFilter(Filter.Statement filter)
filter - the filter to setpublic FillLayer withFilter(Filter.Statement filter)
filter - the filter to setpublic FillLayer withProperties(PropertyValue<?>... properties)
properties - the var-args propertiespublic PropertyValue<java.lang.Boolean> getFillAntialias()
public PropertyValue<java.lang.Float> getFillOpacity()
public PropertyValue<java.lang.String> getFillColor()
public int getFillColorAsInt()
java.lang.RuntimeException - thrown if property isn't a valuepublic PropertyValue<java.lang.String> getFillOutlineColor()
public int getFillOutlineColorAsInt()
java.lang.RuntimeException - thrown if property isn't a valuepublic PropertyValue<java.lang.Float[]> getFillTranslate()
public PropertyValue<java.lang.String> getFillTranslateAnchor()
public PropertyValue<java.lang.String> getFillPattern()