com.sygic.sdk.map.object.data.PolylineData.Builder Class Reference
Inheritance diagram for com.sygic.sdk.map.object.data.PolylineData.Builder:
Collaboration diagram for com.sygic.sdk.map.object.data.PolylineData.Builder:

Public Member Functions

 Builder (@NonNull final GeoCoordinates firstVertex, final ObjectCreator< MapPolyline, PolylineData > creator)
 
 Builder (@NonNull final List< GeoCoordinates > vertices, final ObjectCreator< MapPolyline, PolylineData > creator)
 
Builder addVertices (@NonNull final List< GeoCoordinates > vertices)
 
Builder addVertices (@NonNull final GeoCoordinates... nextVertex)
 
Builder setLineWidth (final float lineWidth)
 
Builder setLineColor (final int lineColor)
 
Builder setSecondaryColor (final int lineColor)
 
Builder setDashed (final boolean dashed)
 
Builder setScalableWidth (final boolean scalable)
 
Builder setBorders (final boolean borders)
 
Builder setDashLength (final float dashLength)
 
Builder setSecondaryDashLength (final float dashSecondaryLength)
 
Builder setCornerRadius (final float cornerRadius)
 

Constructor & Destructor Documentation

◆ Builder() [1/2]

com.sygic.sdk.map.object.data.PolylineData.Builder.Builder ( @NonNull final GeoCoordinates  firstVertex,
final ObjectCreator< MapPolyline, PolylineData creator 
)

◆ Builder() [2/2]

com.sygic.sdk.map.object.data.PolylineData.Builder.Builder ( @NonNull final List< GeoCoordinates vertices,
final ObjectCreator< MapPolyline, PolylineData creator 
)

Member Function Documentation

◆ addVertices() [1/2]

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.addVertices ( @NonNull final GeoCoordinates...  nextVertex)

Adds the GeoCoordinate at the end of the path of the MapPolyline.

Parameters
nextVertexGeoCoordinates that defines next vertex(s) of the Polyline path.

◆ addVertices() [2/2]

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.addVertices ( @NonNull final List< GeoCoordinates vertices)

Adds GeoCoordinates at the end of the path of the MapPolyline.

Parameters
verticesList of GeoCoordinates that defines additional part of the Polyline path.

◆ setBorders()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setBorders ( final boolean  borders)

Enables/Disables MapPolyline to be rendered with antialiased borders.

◆ setCornerRadius()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setCornerRadius ( final float  cornerRadius)

Sets the dash corner radius, in range [0, lineWidth / 2], for the primary dash of the MapPolyline.

Parameters
cornerRadiusDesired corner scale of the dash.

◆ setDashed()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setDashed ( final boolean  dashed)

Sets the appearance of this MapPolyline as either a dashed or solid line.

◆ setDashLength()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setDashLength ( final float  dashLength)

Sets the dash length, for the MapPolyline.

Parameters
dashLengthDesired length of the primary dash.

◆ setLineColor()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setLineColor ( final int  lineColor)

Sets the line color.

Parameters
lineColorThe ARGB integer color value.

◆ setLineWidth()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setLineWidth ( final float  lineWidth)

Returns the line width, in pixels.

Parameters
lineWidthDesired width of the line defining the MapPolyline

◆ setScalableWidth()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setScalableWidth ( final boolean  scalable)

Sets the width of this MapPolyline to either scale or not scale with ground distance.

◆ setSecondaryColor()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setSecondaryColor ( final int  lineColor)

Sets the secondary line color (used for dash/border).

Parameters
lineColorThe ARGB integer color value.

◆ setSecondaryDashLength()

Builder com.sygic.sdk.map.object.data.PolylineData.Builder.setSecondaryDashLength ( final float  dashSecondaryLength)

Sets the secondary dash length, for the MapPolyline.

Parameters
dashSecondaryLengthDesired length of the secondary dash.

The documentation for this class was generated from the following file: