Interface Arrow

com.yandex.mapkit.map

public interface Arrow

The arrow element.

Methods

int getFillColor()

Arrow fill color.

float getLength()

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

int getOutlineColor()

Color of the arrow's outline.

float getOutlineWidth()

The width of the outline in units.

PolylinePosition getPosition()

Arrow center.

float getTriangleHeight()

Describes height of the arrowhead in units.

boolean isValid()

Tells if this Arrow is valid or no.

boolean isVisible()

Arrow visibility.

void setFillColor(int fillColor)
void setLength(float length)
void setOutlineColor(int outlineColor)
void setOutlineWidth(float outlineWidth)
void setPosition(@NonNull PolylinePosition position)
void setTriangleHeight(float triangleHeight)
void setVisible(boolean visible)

Method Detail

getFillColor

public int getFillColor ()

Arrow fill color.

getLength

public 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.

getOutlineColor

public int getOutlineColor ()

Color of the arrow's outline.

Default: white.

getOutlineWidth

public float getOutlineWidth ()

The width of the outline in units.

Default: 2.

getPosition

public PolylinePosition getPosition ()

Arrow center.

getTriangleHeight

public float getTriangleHeight ()

Describes height of the arrowhead in units.

Default: 0.2 * length.

isValid

public boolean isValid ()

Tells if this Arrow is valid or no.

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.

isVisible

public boolean isVisible ()

Arrow visibility.

Default: true.

setFillColor

public void setFillColor (int fillColor)

setLength

public void setLength (float length)

setOutlineColor

public void setOutlineColor (int outlineColor)

setOutlineWidth

public void setOutlineWidth (float outlineWidth)

setPosition

public void setPosition (@NonNull PolylinePosition position)

setTriangleHeight

public void setTriangleHeight (float triangleHeight)

setVisible

public void setVisible (boolean visible)