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
|
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.
|
PropertyValue<java.lang.Float[]> |
getLineDasharray()
Get the LineDasharray property
|
PropertyValue<java.lang.Float> |
getLineGapWidth()
Get the LineGapWidth property
|
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
|
PropertyValue<java.lang.Float> |
getLineOpacity()
Get the LineOpacity property
|
PropertyValue<java.lang.String> |
getLinePattern()
Get the LinePattern property
|
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
|
PropertyValue<java.lang.Float> |
getLineWidth()
Get the LineWidth 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.
|
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, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setMaxZoom, setMinZoom, setPropertiespublic 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 void setFilter(Filter.Statement filter)
filter - the filter to setpublic LineLayer withFilter(Filter.Statement filter)
filter - the filter to setpublic LineLayer withProperties(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 PropertyValue<java.lang.String> getLineColor()
public int getLineColorAsInt()
java.lang.RuntimeException - thrown if property isn't a valuepublic PropertyValue<java.lang.Float[]> getLineTranslate()
public PropertyValue<java.lang.String> getLineTranslateAnchor()
public PropertyValue<java.lang.Float> getLineWidth()
public PropertyValue<java.lang.Float> getLineGapWidth()
public PropertyValue<java.lang.Float> getLineOffset()
public PropertyValue<java.lang.Float> getLineBlur()
public PropertyValue<java.lang.Float[]> getLineDasharray()
public PropertyValue<java.lang.String> getLinePattern()