summaryrefslogtreecommitdiff
path: root/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polyline.java
blob: 331974c9c66b1a650aa3f9fc1209b37e2752cb3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.mapbox.mapboxsdk.annotations;

import android.graphics.Color;

public final class Polyline extends MultiPoint {

    private int color = Color.BLACK; // default color is black
    private float width = 10; // As specified by Google API Docs (in pixels)

    Polyline() {
        super();
    }

    public int getColor() {
        return color;
    }

    public float getWidth() {
        return width;
    }

    /**
     * Sets the color of the polyline.
     *
     * @param color - the color in ARGB format
     */
    void setColor(int color) {
        this.color = color;
    }

    /**
     * Sets the width of the polyline.
     *
     * @param width in pixels
     */
    void setWidth(float width) {
        this.width = width;
    }
}