Interface PolylineMapObject

com.yandex.mapkit.map

public interface PolylineMapObject extends MapObject

All Superinterfaces:
MapObject

Methods

float getDashLength()

Length of a dash in units.

float getDashOffset()

Offset from the start of the polyline to the reference dash in units.

float getGapLength()

Length of the gap between two dashes in units.

Polyline getGeometry()
int getOutlineColor()

Outline color.

float getOutlineWidth()

Outline width in units.

int getStrokeColor()

Stroke color.

float getStrokeWidth()

Stroke width in units.

boolean isGeodesic()

The object geometry can be interpreted in two different ways: 1) If the object mode is 'geodesic', the object geometry is defined on a sphere.

void setDashLength(float dashLength)
void setDashOffset(float dashOffset)
void setGapLength(float gapLength)
void setGeodesic(boolean geodesic)
void setGeometry( Polyline geometry)
void setOutlineColor(int outlineColor)
void setOutlineWidth(float outlineWidth)
void setStrokeColor(int strokeColor)
void setStrokeWidth(float strokeWidth)
float getDashLength()

Length of a dash in units.

float getDashOffset()

Offset from the start of the polyline to the reference dash in units.

float getGapLength()

Length of the gap between two dashes in units.

Polyline getGeometry()
int getOutlineColor()

Outline color.

float getOutlineWidth()

Outline width in units.

int getStrokeColor()

Stroke color.

float getStrokeWidth()

Stroke width in units.

boolean isGeodesic()

The object geometry can be interpreted in two different ways: 1) If the object mode is 'geodesic', the object geometry is defined on a sphere.

void setDashLength(float dashLength)
void setDashOffset(float dashOffset)
void setGapLength(float gapLength)
void setGeodesic(boolean geodesic)
void setGeometry( Polyline geometry)
void setOutlineColor(int outlineColor)
void setOutlineWidth(float outlineWidth)
void setStrokeColor(int strokeColor)
void setStrokeWidth(float strokeWidth)

Method Detail

getDashLength

public float getDashLength ()

Length of a dash in units.

Default: 0 (dashing is turned off).

getDashOffset

public float getDashOffset ()

Offset from the start of the polyline to the reference dash in units.

Default: 0.

getGapLength

public float getGapLength ()

Length of the gap between two dashes in units.

Default: 0 (dashing is turned off).

getGeometry

public Polyline getGeometry ()

getOutlineColor

public int getOutlineColor ()

Outline color.

Default: hexademical RGBA code 0x00000000. Setting the color to any transparent color (i.e. RGBA code 0x00000000) effectively disables the outline.

getOutlineWidth

public float getOutlineWidth ()

Outline width in units.

Default: 0. The size of a unit is equal to the size of a pixel at the current zoom when the camera position's tilt is equal to 0 and the scale factor is equal to 1.

getStrokeColor

public int getStrokeColor ()

Stroke color.

Default: hexademical RGBA code 0x0066FFFF. Setting the stroke color to any transparent color (i.e. RGBA code 0x00000000) effectively disables the stroke.

getStrokeWidth

public float getStrokeWidth ()

Stroke width in units.

Default: 5. The size of a unit is equal to the size of a pixel at the current zoom with the camera position's tilt at 0 and a scale factor of 1.

isGeodesic

public boolean isGeodesic ()

The object geometry can be interpreted in two different ways: 1) If the object mode is 'geodesic', the object geometry is defined on a sphere.

2) Otherwise, the object geometry is defined in projected space. Default: false.

setDashLength

public void setDashLength (float dashLength)

setDashOffset

public void setDashOffset (float dashOffset)

setGapLength

public void setGapLength (float gapLength)

setGeodesic

public void setGeodesic (boolean geodesic)

setGeometry

public void setGeometry (Polyline geometry)

setOutlineColor

public void setOutlineColor (int outlineColor)

setOutlineWidth

public void setOutlineWidth (float outlineWidth)

setStrokeColor

public void setStrokeColor (int strokeColor)

setStrokeWidth

public void setStrokeWidth (float strokeWidth)