HERE Android SDK Developer's Guide

CapStyle

The enumeration CapStyle is a member of com.here.android.mpa.mapping.MapPolyline.

Enumeration Summary

public static final enumeration MapPolyline.CapStyle

extends java.lang.Enum, java.lang.Object

Line ending cap rendering styles

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in CapStyle
Fields

public static final CapStyle BUTT

The line ends exactly where the endpoint is located.

public static final CapStyle ROUND

Adding a round cap to the endpoint.

Method Summary

Table 2. Methods in CapStyle
Methods

public static CapStyle toCapStyle (int style)

public int value ()

public static CapStyle valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static MapPolyline.CapStyle[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Line ending cap rendering styles

Enum Constant Details

public static final CapStyle BUTT

The line ends exactly where the endpoint is located.

public static final CapStyle ROUND

Adding a round cap to the endpoint.

Method Details

public static CapStyle toCapStyle (int style)

Parameters:

  • style

public int value ()

public static CapStyle valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static MapPolyline.CapStyle[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.