Class Style

Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.transport.masstransit

java.lang.Object
    ↳ world.mappable.mapkit.transport.masstransit.TransportContour.Style

static class Style implements Serializable

Describes the style of transport contour objects

Summary

Constructors

Signature and Description

Style(@Nullable java.lang.Integer mainColor,
      @Nullable java.lang.Integer mainColorNight)

Style()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

java.lang.Integer

getMainColor()
Describes the main color of transport contour.

java.lang.Integer

getMainColorNight()
Optional field, can be null.

void

serialize(world.mappable.runtime.bindings.Archive archive)

Constuctors

Style

Style(@Nullable java.lang.Integer mainColor,
      @Nullable java.lang.Integer mainColorNight)


Style

Style()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getMainColor

@Nullable
java.lang.Integer getMainColor()

Describes the main color of transport contour.

Main color is used to identify the object among others. For example, the color of MCD line icon meant to be the main color of the contour. Presented in versions for light and dark themes.

Optional field, can be null.


getMainColorNight

@Nullable
java.lang.Integer getMainColorNight()

Optional field, can be null.


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)