Package com.yandex.mapkit.map

Interface Arrow

interface Arrow

The arrow element.

Summary

Methods

Type and modifiers

Method and Description

PolylinePosition

getPosition()
Arrow center.

int

getFillColor()
Arrow fill color.

void

setFillColor(int fillColor)

int

getOutlineColor()
Color of the arrow's outline.

void

setOutlineColor(int outlineColor)

float

getOutlineWidth()
The width of the outline in units.

void

setOutlineWidth(float outlineWidth)

float

getLength()
The overall length of the arrow (including the tip) in units.

void

setLength(float length)

boolean

isVisible()
Arrow visibility.

void

setVisible(boolean visible)

float

getTriangleHeight()
Describes height of the arrowhead in units.

void

setTriangleHeight(float triangleHeight)

boolean

isValid()
Tells if this Arrow is valid or not.

Methods

getPosition

@NonNull
PolylinePosition getPosition()

Arrow center.


getFillColor

int getFillColor()

Arrow fill color.


setFillColor

void setFillColor(int fillColor)


getOutlineColor

int getOutlineColor()

Color of the arrow's outline.

Default: white.


setOutlineColor

void setOutlineColor(int outlineColor)


getOutlineWidth

float getOutlineWidth()

The width of the outline in units.

Default: 2.


setOutlineWidth

void setOutlineWidth(float outlineWidth)


getLength

float getLength()

The overall length of the arrow (including the tip) in units.

The size of a unit is equal to the size of a pixel at the current zoom level when the camera tilt is equal to 0 and the scale factor is equal to 1.


setLength

void setLength(float length)


isVisible

boolean isVisible()

Arrow visibility.

Default: true.


setVisible

void setVisible(boolean visible)


getTriangleHeight

float getTriangleHeight()

Describes height of the arrowhead in units.

Default: 0.2 * length.


setTriangleHeight

void setTriangleHeight(float triangleHeight)


isValid

boolean isValid()

Tells if this Arrow is valid or not.

Any other method (except for this one) called on an invalid Arrow will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.