@UiThread public class LineLayer extends Layer
Constructor | Description |
---|---|
LineLayer(java.lang.String layerId,
java.lang.String sourceId) |
Creates a LineLayer.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
finalize() |
|
Expression |
getFilter() |
Get a single expression filter.
|
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> |
getLineGradient() |
Get the LineGradient property
|
int |
getLineGradientAsInt() |
Defines a gradient with which to color a line feature.
|
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> |
getLineSortKey() |
Get the LineSortKey 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 |
getSourceId() |
Get the source id.
|
java.lang.String |
getSourceLayer() |
Get the source layer.
|
protected void |
initialize(java.lang.String layerId,
java.lang.String sourceId) |
|
void |
setFilter(Expression filter) |
Set a single expression 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(Expression filter) |
Set a single expression filter.
|
LineLayer |
withProperties(PropertyValue<?>... properties) |
Set a property or properties.
|
LineLayer |
withSourceLayer(java.lang.String sourceLayer) |
Set the source Layer.
|
checkThread, getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, isDetached, nativeGetFilter, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetSourceId, nativeGetSourceLayer, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setDetached, setMaxZoom, setMinZoom, setProperties
public 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 set@NonNull public LineLayer withSourceLayer(java.lang.String sourceLayer)
sourceLayer
- the source layer to set@NonNull public java.lang.String getSourceId()
@NonNull public java.lang.String getSourceLayer()
public void setFilter(@NonNull Expression filter)
filter
- the expression filter to set@NonNull public LineLayer withFilter(@NonNull Expression filter)
filter
- the expression filter to set@Nullable public Expression getFilter()
@NonNull public LineLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args properties@NonNull public PropertyValue<java.lang.String> getLineCap()
@NonNull public PropertyValue<java.lang.String> getLineJoin()
@NonNull public PropertyValue<java.lang.Float> getLineMiterLimit()
@NonNull public PropertyValue<java.lang.Float> getLineRoundLimit()
@NonNull public PropertyValue<java.lang.Float> getLineSortKey()
@NonNull public PropertyValue<java.lang.Float> getLineOpacity()
@NonNull public TransitionOptions getLineOpacityTransition()
public void setLineOpacityTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.String> getLineColor()
public int getLineColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getLineColorTransition()
public void setLineColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.Float[]> getLineTranslate()
@NonNull public TransitionOptions getLineTranslateTransition()
public void setLineTranslateTransition(@NonNull TransitionOptions options)
options
- transition options for Float[]@NonNull public PropertyValue<java.lang.String> getLineTranslateAnchor()
@NonNull public PropertyValue<java.lang.Float> getLineWidth()
@NonNull public TransitionOptions getLineWidthTransition()
public void setLineWidthTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float> getLineGapWidth()
@NonNull public TransitionOptions getLineGapWidthTransition()
public void setLineGapWidthTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float> getLineOffset()
@NonNull public TransitionOptions getLineOffsetTransition()
public void setLineOffsetTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float> getLineBlur()
@NonNull public TransitionOptions getLineBlurTransition()
public void setLineBlurTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.Float[]> getLineDasharray()
@NonNull public TransitionOptions getLineDasharrayTransition()
public void setLineDasharrayTransition(@NonNull TransitionOptions options)
options
- transition options for Float[]@NonNull public PropertyValue<java.lang.String> getLinePattern()
@NonNull public TransitionOptions getLinePatternTransition()
public void setLinePatternTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.String> getLineGradient()
public int getLineGradientAsInt()
java.lang.RuntimeException
- thrown if property isn't a value