@UiThread 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.
|
TransitionOptions |
getFillColorTransition()
Get the FillColor property transition options
|
PropertyValue<java.lang.Float> |
getFillOpacity()
Get the FillOpacity property
|
TransitionOptions |
getFillOpacityTransition()
Get the FillOpacity property transition options
|
PropertyValue<java.lang.String> |
getFillOutlineColor()
Get the FillOutlineColor property
|
int |
getFillOutlineColorAsInt()
The outline color of the fill.
|
TransitionOptions |
getFillOutlineColorTransition()
Get the FillOutlineColor property transition options
|
PropertyValue<java.lang.String> |
getFillPattern()
Get the FillPattern property
|
TransitionOptions |
getFillPatternTransition()
Get the FillPattern property transition options
|
PropertyValue<java.lang.Float[]> |
getFillTranslate()
Get the FillTranslate property
|
PropertyValue<java.lang.String> |
getFillTranslateAnchor()
Get the FillTranslateAnchor property
|
TransitionOptions |
getFillTranslateTransition()
Get the FillTranslate property transition options
|
java.lang.String |
getSourceLayer()
Get the source layer.
|
protected void |
initialize(java.lang.String layerId,
java.lang.String sourceId) |
void |
setFillColorTransition(TransitionOptions options)
Set the FillColor property transition options
|
void |
setFillOpacityTransition(TransitionOptions options)
Set the FillOpacity property transition options
|
void |
setFillOutlineColorTransition(TransitionOptions options)
Set the FillOutlineColor property transition options
|
void |
setFillPatternTransition(TransitionOptions options)
Set the FillPattern property transition options
|
void |
setFillTranslateTransition(TransitionOptions options)
Set the FillTranslate property transition options
|
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, nativeGetSourceLayer, 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 java.lang.String getSourceLayer()
public void setFilter(Filter.Statement filter)
filter - the filter to setpublic FillLayer withFilter(Filter.Statement filter)
filter - the filter to setpublic FillLayer withProperties(@NonNull PropertyValue<?>... properties)
properties - the var-args propertiespublic PropertyValue<java.lang.Boolean> getFillAntialias()
public PropertyValue<java.lang.Float> getFillOpacity()
public TransitionOptions getFillOpacityTransition()
public void setFillOpacityTransition(TransitionOptions options)
options - transition options for Floatpublic PropertyValue<java.lang.String> getFillColor()
public int getFillColorAsInt()
java.lang.RuntimeException - thrown if property isn't a valuepublic TransitionOptions getFillColorTransition()
public void setFillColorTransition(TransitionOptions options)
options - transition options for Stringpublic PropertyValue<java.lang.String> getFillOutlineColor()
public int getFillOutlineColorAsInt()
java.lang.RuntimeException - thrown if property isn't a valuepublic TransitionOptions getFillOutlineColorTransition()
public void setFillOutlineColorTransition(TransitionOptions options)
options - transition options for Stringpublic PropertyValue<java.lang.Float[]> getFillTranslate()
public TransitionOptions getFillTranslateTransition()
public void setFillTranslateTransition(TransitionOptions options)
options - transition options for Float[]public PropertyValue<java.lang.String> getFillTranslateAnchor()
public PropertyValue<java.lang.String> getFillPattern()
public TransitionOptions getFillPatternTransition()
public void setFillPatternTransition(TransitionOptions options)
options - transition options for String