Class LineStyle
- Summary
- Constuctors
- Methods
- getStrokeWidth
- setStrokeWidth
- getGradientLength
- setGradientLength
- getOutlineColor
- setOutlineColor
- getOutlineWidth
- setOutlineWidth
- getInnerOutlineEnabled
- setInnerOutlineEnabled
- getTurnRadius
- setTurnRadius
- getArcApproximationStep
- setArcApproximationStep
- getDashLength
- setDashLength
- getGapLength
- setGapLength
- getDashOffset
- setDashOffset
- serialize
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, |
LineStyle() |
Methods
Type and modifiers |
Method and Description |
float |
getStrokeWidth() |
setStrokeWidth(float strokeWidth) |
|
float |
getGradientLength() |
setGradientLength(float gradientLength) |
|
int |
getOutlineColor() |
setOutlineColor(int outlineColor) |
|
float |
getOutlineWidth() |
setOutlineWidth(float outlineWidth) |
|
boolean |
getInnerOutlineEnabled() |
setInnerOutlineEnabled(boolean innerOutlineEnabled) |
|
float |
getTurnRadius() |
setTurnRadius(float turnRadius) |
|
float |
getArcApproximationStep() |
setArcApproximationStep(float arcApproximationStep) |
|
float |
getDashLength() |
setDashLength(float dashLength) |
|
float |
getGapLength() |
setGapLength(float gapLength) |
|
float |
getDashOffset() |
setDashOffset(float dashOffset) |
|
void |
serialize(world.mappable.runtime.bindings.Archive archive) |
Constuctors
LineStyle
LineStyle(float strokeWidth, |
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 |