Class LineStyle

Package world.mappable.mapkit.map

java.lang.Object
    ↳ world.mappable.mapkit.map.LineStyle

final class LineStyle implements Serializable

The style of the polyline.

Summary

Constructors

Signature and Description

LineStyle(float strokeWidth,
          float gradientLength,
          int outlineColor,
          float outlineWidth,
          boolean innerOutlineEnabled,
          float turnRadius,
          float arcApproximationStep,
          float dashLength,
          float gapLength,
          float dashOffset)

LineStyle()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

float

getStrokeWidth()
The stroke width in units.

LineStyle

setStrokeWidth(float strokeWidth)
See #getStrokeWidth().

float

getGradientLength()
Maximum length (in units) of the gradient from one color to another.

LineStyle

setGradientLength(float gradientLength)
See #getGradientLength().

int

getOutlineColor()
The outline color.

LineStyle

setOutlineColor(int outlineColor)
See #getOutlineColor().

float

getOutlineWidth()
Width of the outline in units.

LineStyle

setOutlineWidth(float outlineWidth)
See #getOutlineWidth().

boolean

getInnerOutlineEnabled()
Enables the inner outline if true (a dark border along the edge of the outline).

LineStyle

setInnerOutlineEnabled(boolean innerOutlineEnabled)
See #getInnerOutlineEnabled().

float

getTurnRadius()
Maximum radius of a turn.

LineStyle

setTurnRadius(float turnRadius)
See #getTurnRadius().

float

getArcApproximationStep()
Defines step of arc approximation.

LineStyle

setArcApproximationStep(float arcApproximationStep)
See #getArcApproximationStep().

float

getDashLength()
Length of a dash in units.

LineStyle

setDashLength(float dashLength)
See #getDashLength().

float

getGapLength()
Length of the gap between two dashes in units.

LineStyle

setGapLength(float gapLength)
See #getGapLength().

float

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

LineStyle

setDashOffset(float dashOffset)
See #getDashOffset().

void

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

Constuctors

LineStyle

LineStyle(float strokeWidth,
          float gradientLength,
          int outlineColor,
          float outlineWidth,
          boolean innerOutlineEnabled,
          float turnRadius,
          float arcApproximationStep,
          float dashLength,
          float gapLength,
          float dashOffset)


LineStyle

LineStyle()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getStrokeWidth

float getStrokeWidth()

The stroke width in units.

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


setStrokeWidth

LineStyle setStrokeWidth(float strokeWidth)

See #getStrokeWidth().


getGradientLength

float getGradientLength()

Maximum length (in units) of the gradient from one color to another.

Default: 0.


setGradientLength

LineStyle setGradientLength(float gradientLength)

See #getGradientLength().


getOutlineColor

int getOutlineColor()

The outline color.

Default: hexademical RGBA code 0x00000000.


setOutlineColor

LineStyle setOutlineColor(int outlineColor)

See #getOutlineColor().


getOutlineWidth

float getOutlineWidth()

Width of the outline in units.

Default: 0.


setOutlineWidth

LineStyle setOutlineWidth(float outlineWidth)

See #getOutlineWidth().


getInnerOutlineEnabled

boolean getInnerOutlineEnabled()

Enables the inner outline if true (a dark border along the edge of the outline).

Default: false.


setInnerOutlineEnabled

LineStyle setInnerOutlineEnabled(boolean innerOutlineEnabled)

See #getInnerOutlineEnabled().


getTurnRadius

float getTurnRadius()

Maximum radius of a turn.

Measured in units. Default: 10.


setTurnRadius

LineStyle setTurnRadius(float turnRadius)

See #getTurnRadius().


getArcApproximationStep

float getArcApproximationStep()

Defines step of arc approximation.

Smaller values make polyline smoother. Measured in degrees. Default: 12.


setArcApproximationStep

LineStyle setArcApproximationStep(float arcApproximationStep)

See #getArcApproximationStep().


getDashLength

float getDashLength()

Length of a dash in units.

Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.


setDashLength

LineStyle setDashLength(float dashLength)

See #getDashLength().


getGapLength

float getGapLength()

Length of the gap between two dashes in units.

Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.


setGapLength

LineStyle setGapLength(float gapLength)

See #getGapLength().


getDashOffset

float getDashOffset()

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

Default: 0.


setDashOffset

LineStyle setDashOffset(float dashOffset)

See #getDashOffset().


serialize

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


Previous
Next