@UiThread public class BackgroundLayer extends Layer
| Constructor and Description |
|---|
BackgroundLayer(java.lang.String layerId)
Creates a BackgroundLayer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
PropertyValue<java.lang.String> |
getBackgroundColor()
Get the BackgroundColor property
|
int |
getBackgroundColorAsInt()
The color with which the background will be drawn.
|
TransitionOptions |
getBackgroundColorTransition()
Get the BackgroundColor property transition options
|
PropertyValue<java.lang.Float> |
getBackgroundOpacity()
Get the BackgroundOpacity property
|
TransitionOptions |
getBackgroundOpacityTransition()
Get the BackgroundOpacity property transition options
|
PropertyValue<java.lang.String> |
getBackgroundPattern()
Get the BackgroundPattern property
|
TransitionOptions |
getBackgroundPatternTransition()
Get the BackgroundPattern property transition options
|
protected void |
initialize(java.lang.String layerId) |
void |
setBackgroundColorTransition(TransitionOptions options)
Set the BackgroundColor property transition options
|
void |
setBackgroundOpacityTransition(TransitionOptions options)
Set the BackgroundOpacity property transition options
|
void |
setBackgroundPatternTransition(TransitionOptions options)
Set the BackgroundPattern property transition options
|
BackgroundLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
checkThread, getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, isDetached, nativeGetFilter, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetSourceId, nativeGetSourceLayer, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setDetached, setMaxZoom, setMinZoom, setPropertiespublic BackgroundLayer(java.lang.String layerId)
layerId - the id of the layerprotected void initialize(java.lang.String layerId)
@NonNull public BackgroundLayer withProperties(@NonNull PropertyValue<?>... properties)
properties - the var-args properties@NonNull public PropertyValue<java.lang.String> getBackgroundColor()
@ColorInt public int getBackgroundColorAsInt()
java.lang.RuntimeException - thrown if property isn't a value@NonNull public TransitionOptions getBackgroundColorTransition()
public void setBackgroundColorTransition(@NonNull
TransitionOptions options)
options - transition options for String@NonNull public PropertyValue<java.lang.String> getBackgroundPattern()
@NonNull public TransitionOptions getBackgroundPatternTransition()
public void setBackgroundPatternTransition(@NonNull
TransitionOptions options)
options - transition options for String@NonNull public PropertyValue<java.lang.Float> getBackgroundOpacity()
@NonNull public TransitionOptions getBackgroundOpacityTransition()
public void setBackgroundOpacityTransition(@NonNull
TransitionOptions options)
options - transition options for Float