ConsumerPolylineOptions.Builder

  • ConsumerPolylineOptions.Builder is used to construct instances of ConsumerPolylineOptions, which define the appearance of polylines on a map.

  • This builder provides methods to customize polyline attributes such as color, width, caps, joints, pattern, visibility, and z-index.

  • It also allows setting a tag for the polyline and whether it should be drawn as a geodesic.

  • The build() method is used to create the final ConsumerPolylineOptions object after configuring the desired properties.

public static abstract class ConsumerPolylineOptions.Builder extends Object

Builds ConsumerPolylineOptions instance.

Public Constructor Summary

Public Method Summary

abstract ConsumerPolylineOptions
abstract ConsumerPolylineOptions.Builder
setColor(int value)
Sets the polyline color as a 32-bit ARGB color.
abstract ConsumerPolylineOptions.Builder
setEndCap(Cap value)
Sets the cap set for the end vertex of a polyline.
abstract ConsumerPolylineOptions.Builder
setIsGeodesic(boolean value)
Sets whether to draw each segment of a polyline as a geodesic.
abstract ConsumerPolylineOptions.Builder
setJointType(int value)
Sets the joint type for all vertices in a polyline except the start and end vertices.
abstract ConsumerPolylineOptions.Builder
setPattern(List<PatternItem> value)
Sets the stroke pattern for a polyline.
abstract ConsumerPolylineOptions.Builder
setStartCap(Cap value)
Sets the cap set for the start vertex of a polyline.
abstract ConsumerPolylineOptions.Builder
setTag(Object value)
Sets the tag for a polyline.
abstract ConsumerPolylineOptions.Builder
setVisible(boolean value)
Sets whether a polyline is visible.
abstract ConsumerPolylineOptions.Builder
setWidth(float value)
Sets the width for a polyline in screen pixels.
abstract ConsumerPolylineOptions.Builder
setZIndex(float value)
Sets the z-index for a polyline.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public abstract ConsumerPolylineOptions build ()

public abstract ConsumerPolylineOptions.Builder setColor (int value)

Sets the polyline color as a 32-bit ARGB color.

public abstract ConsumerPolylineOptions.Builder setEndCap (Cap value)

Sets the cap set for the end vertex of a polyline.

public abstract ConsumerPolylineOptions.Builder setIsGeodesic (boolean value)

Sets whether to draw each segment of a polyline as a geodesic.

public abstract ConsumerPolylineOptions.Builder setJointType (int value)

Sets the joint type for all vertices in a polyline except the start and end vertices.

public abstract ConsumerPolylineOptions.Builder setPattern (List<PatternItem> value)

Sets the stroke pattern for a polyline.

public abstract ConsumerPolylineOptions.Builder setStartCap (Cap value)

Sets the cap set for the start vertex of a polyline.

public abstract ConsumerPolylineOptions.Builder setTag (Object value)

Sets the tag for a polyline.

public abstract ConsumerPolylineOptions.Builder setVisible (boolean value)

Sets whether a polyline is visible.

public abstract ConsumerPolylineOptions.Builder setWidth (float value)

Sets the width for a polyline in screen pixels.

public abstract ConsumerPolylineOptions.Builder setZIndex (float value)

Sets the z-index for a polyline.