Package com.yandex.mapkit.map

Class IconStyle

java.lang.Object
    ↳ com.yandex.mapkit.map.IconStyle

final class IconStyle implements Serializable

The style of created icons.

Summary

Constructors

Signature and Description

IconStyle(@Nullable android.graphics.PointF anchor,
          @Nullable RotationType rotationType,
          @Nullable java.lang.Float zIndex,
          @Nullable java.lang.Boolean flat,
          @Nullable java.lang.Boolean visible,
          @Nullable java.lang.Float scale,
          @Nullable Rect tappableArea)

IconStyle()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

android.graphics.PointF

getAnchor()
An anchor is used to alter image placement.

IconStyle

setAnchor(@Nullable android.graphics.PointF anchor)
See #getAnchor().

RotationType

getRotationType()
Icon rotation type.

IconStyle

setRotationType(@Nullable RotationType rotationType)
See #getRotationType().

java.lang.Float

getZIndex()
Z-index of the icon, relative to the placemark's z-index.

IconStyle

setZIndex(@Nullable java.lang.Float zIndex)
See #getZIndex().

java.lang.Boolean

getFlat()
If true, the icon is displayed on the map surface.

IconStyle

setFlat(@Nullable java.lang.Boolean flat)
See #getFlat().

java.lang.Boolean

getVisible()
Sets icon visibility.

IconStyle

setVisible(@Nullable java.lang.Boolean visible)
See #getVisible().

java.lang.Float

getScale()
Scale of the icon.

IconStyle

setScale(@Nullable java.lang.Float scale)
See #getScale().

Rect

getTappableArea()
Tappable area on the icon.

IconStyle

setTappableArea(@Nullable Rect tappableArea)
See #getTappableArea().

void

serialize(com.yandex.runtime.bindings.Archive archive)

Constuctors

IconStyle

IconStyle(@Nullable android.graphics.PointF anchor,
          @Nullable RotationType rotationType,
          @Nullable java.lang.Float zIndex,
          @Nullable java.lang.Boolean flat,
          @Nullable java.lang.Boolean visible,
          @Nullable java.lang.Float scale,
          @Nullable Rect tappableArea)


IconStyle

IconStyle()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getAnchor

@Nullable
android.graphics.PointF getAnchor()

An anchor is used to alter image placement.

Normalized: (0.0f, 0.0f) denotes the top left image corner; (1.0f, 1.0f) denotes bottom right. Default is (0.5f, 0.5f).

Optional field, can be null.


setAnchor

IconStyle setAnchor(@Nullable android.graphics.PointF anchor)

See #getAnchor().


getRotationType

@Nullable
RotationType getRotationType()

Icon rotation type.

Default: NoRotation.

Optional field, can be null.


setRotationType

IconStyle setRotationType(@Nullable RotationType rotationType)

See #getRotationType().


getZIndex

@Nullable
java.lang.Float getZIndex()

Z-index of the icon, relative to the placemark's z-index.

Optional field, can be null.


setZIndex

IconStyle setZIndex(@Nullable java.lang.Float zIndex)

See #getZIndex().


getFlat

@Nullable
java.lang.Boolean getFlat()

If true, the icon is displayed on the map surface.

If false, the icon is displayed on the screen surface. Default: false.

Optional field, can be null.


setFlat

IconStyle setFlat(@Nullable java.lang.Boolean flat)

See #getFlat().


getVisible

@Nullable
java.lang.Boolean getVisible()

Sets icon visibility.

Default: true.

Optional field, can be null.


setVisible

IconStyle setVisible(@Nullable java.lang.Boolean visible)

See #getVisible().


getScale

@Nullable
java.lang.Float getScale()

Scale of the icon.

Default: 1.0f.

Optional field, can be null.


setScale

IconStyle setScale(@Nullable java.lang.Float scale)

See #getScale().


getTappableArea

@Nullable
Rect getTappableArea()

Tappable area on the icon.

Coordinates are measured the same way as anchor coordinates. If rect is empty or invalid, the icon will not process taps. By default, icons process all taps.

Optional field, can be null.


setTappableArea

IconStyle setTappableArea(@Nullable Rect tappableArea)

See #getTappableArea().


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


Предыдущая
Следующая