@UiThread public class LineLayer extends Layer
Constructor and Description |
---|
LineLayer(long nativePtr)
Creates a LineLayer.
|
LineLayer(java.lang.String layerId,
java.lang.String sourceId)
Creates a LineLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
PropertyValue<java.lang.Float> |
getLineBlur()
Get the LineBlur property
|
TransitionOptions |
getLineBlurTransition()
Get the LineBlur property transition options
|
PropertyValue<java.lang.String> |
getLineCap()
Get the LineCap property
|
PropertyValue<java.lang.String> |
getLineColor()
Get the LineColor property
|
int |
getLineColorAsInt()
The color with which the line will be drawn.
|
TransitionOptions |
getLineColorTransition()
Get the LineColor property transition options
|
PropertyValue<java.lang.Float[]> |
getLineDasharray()
Get the LineDasharray property
|
TransitionOptions |
getLineDasharrayTransition()
Get the LineDasharray property transition options
|
PropertyValue<java.lang.Float> |
getLineGapWidth()
Get the LineGapWidth property
|
TransitionOptions |
getLineGapWidthTransition()
Get the LineGapWidth property transition options
|
PropertyValue<java.lang.String> |
getLineJoin()
Get the LineJoin property
|
PropertyValue<java.lang.Float> |
getLineMiterLimit()
Get the LineMiterLimit property
|
PropertyValue<java.lang.Float> |
getLineOffset()
Get the LineOffset property
|
TransitionOptions |
getLineOffsetTransition()
Get the LineOffset property transition options
|
PropertyValue<java.lang.Float> |
getLineOpacity()
Get the LineOpacity property
|
TransitionOptions |
getLineOpacityTransition()
Get the LineOpacity property transition options
|
PropertyValue<java.lang.String> |
getLinePattern()
Get the LinePattern property
|
TransitionOptions |
getLinePatternTransition()
Get the LinePattern property transition options
|
PropertyValue<java.lang.Float> |
getLineRoundLimit()
Get the LineRoundLimit property
|
PropertyValue<java.lang.Float[]> |
getLineTranslate()
Get the LineTranslate property
|
PropertyValue<java.lang.String> |
getLineTranslateAnchor()
Get the LineTranslateAnchor property
|
TransitionOptions |
getLineTranslateTransition()
Get the LineTranslate property transition options
|
PropertyValue<java.lang.Float> |
getLineWidth()
Get the LineWidth property
|
TransitionOptions |
getLineWidthTransition()
Get the LineWidth property transition options
|
java.lang.String |
getSourceLayer()
Get the source layer.
|
protected void |
initialize(java.lang.String layerId,
java.lang.String sourceId) |
void |
setFilter(Filter.Statement filter)
Set a single filter.
|
void |
setLineBlurTransition(TransitionOptions options)
Set the LineBlur property transition options
|
void |
setLineColorTransition(TransitionOptions options)
Set the LineColor property transition options
|
void |
setLineDasharrayTransition(TransitionOptions options)
Set the LineDasharray property transition options
|
void |
setLineGapWidthTransition(TransitionOptions options)
Set the LineGapWidth property transition options
|
void |
setLineOffsetTransition(TransitionOptions options)
Set the LineOffset property transition options
|
void |
setLineOpacityTransition(TransitionOptions options)
Set the LineOpacity property transition options
|
void |
setLinePatternTransition(TransitionOptions options)
Set the LinePattern property transition options
|
void |
setLineTranslateTransition(TransitionOptions options)
Set the LineTranslate property transition options
|
void |
setLineWidthTransition(TransitionOptions options)
Set the LineWidth property transition options
|
void |
setSourceLayer(java.lang.String sourceLayer)
Set the source layer.
|
LineLayer |
withFilter(Filter.Statement filter)
Set a single filter.
|
LineLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
LineLayer |
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, setProperties
public LineLayer(long nativePtr)
nativePtr
- pointer used by corepublic LineLayer(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 LineLayer 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 LineLayer withFilter(Filter.Statement filter)
filter
- the filter to setpublic LineLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<java.lang.String> getLineCap()
public PropertyValue<java.lang.String> getLineJoin()
public PropertyValue<java.lang.Float> getLineMiterLimit()
public PropertyValue<java.lang.Float> getLineRoundLimit()
public PropertyValue<java.lang.Float> getLineOpacity()
public TransitionOptions getLineOpacityTransition()
public void setLineOpacityTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<java.lang.String> getLineColor()
public int getLineColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getLineColorTransition()
public void setLineColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<java.lang.Float[]> getLineTranslate()
public TransitionOptions getLineTranslateTransition()
public void setLineTranslateTransition(TransitionOptions options)
options
- transition options for Float[]public PropertyValue<java.lang.String> getLineTranslateAnchor()
public PropertyValue<java.lang.Float> getLineWidth()
public TransitionOptions getLineWidthTransition()
public void setLineWidthTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<java.lang.Float> getLineGapWidth()
public TransitionOptions getLineGapWidthTransition()
public void setLineGapWidthTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<java.lang.Float> getLineOffset()
public TransitionOptions getLineOffsetTransition()
public void setLineOffsetTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<java.lang.Float> getLineBlur()
public TransitionOptions getLineBlurTransition()
public void setLineBlurTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<java.lang.Float[]> getLineDasharray()
public TransitionOptions getLineDasharrayTransition()
public void setLineDasharrayTransition(TransitionOptions options)
options
- transition options for Float[]public PropertyValue<java.lang.String> getLinePattern()
public TransitionOptions getLinePatternTransition()
public void setLinePatternTransition(TransitionOptions options)
options
- transition options for String