HERE Android SDK Developer's Guide

ARPolylineObject

The class ARPolylineObject is a member of com.here.android.mpa.ar .

Class Summary

public final class ARPolylineObject

extends java.lang.Object

Represent a ARPolyline that users can add to a ARController.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in ARPolylineObject
Constructors

ARPolylineObject (GeoPolyline polyline)

Create ARPolylineObject with GeoPolyline.

ARPolylineObject (GeoPolyline polyline, LineAttributes lineAttributes)

Create ARPolylineObject with a GeoPolyline and a line attribute.

Method Summary

Table 2. Methods in ARPolylineObject
Methods

public GeoPolyline getGeoPolyLine ()

Get the GeoPolyline used for this ARPolyline.

public LineAttributes getLineAttributes ()

Get the LineAttributes used for this ARPolyline.

public void setGeoPolyline (GeoPolyline polyline)

Changes the GeoPolyline rendered by this ARPolylineObject

public void setLineAttributes (LineAttributes lineAttributes)

Changes the LineAttributes rendered by this ARPolylineObject

Class Details

Represent a ARPolyline that users can add to a ARController. This class also provide features to customize polyline attributes such as width of line, color and so on.

Constructor Details

ARPolylineObject (GeoPolyline polyline)

Create ARPolylineObject with GeoPolyline. In this case, a default line attributes LineAttributes will be used.

Parameters:

Throws:

  • NullPointerException

    if GeoPolyline is null.

ARPolylineObject (GeoPolyline polyline, LineAttributes lineAttributes)

Create ARPolylineObject with a GeoPolyline and a line attribute.

Parameters:

  • polyline

    a GeoPolyline

  • lineAttributes

    attributes to customize line features such as width, color, line end cap style.

Throws:

  • NullPointerException

    if GeoPolyline is null OR lineAttributes is null.

Method Details

public GeoPolyline getGeoPolyLine ()

Get the GeoPolyline used for this ARPolyline.

Returns:

GeoPolyline used for this ARPolyline.

public LineAttributes getLineAttributes ()

Get the LineAttributes used for this ARPolyline.

Returns:

LineAttributes used for this ARPolyline.

public void setGeoPolyline (GeoPolyline polyline)

Changes the GeoPolyline rendered by this ARPolylineObject

Parameters:

  • polyline

    GeoPolyline to be rendered

public void setLineAttributes (LineAttributes lineAttributes)

Changes the LineAttributes rendered by this ARPolylineObject

Parameters:

  • lineAttributes