Interface Arrow
Package world.mappable.mapkit.map
interface Arrow
The arrow element.
Summary
Methods
|
Type and modifiers |
Method and Description |
|
getPosition() |
|
|
int |
getFillColor() |
|
void |
setFillColor(int fillColor) |
|
int |
getOutlineColor() |
|
void |
setOutlineColor(int outlineColor) |
|
float |
getOutlineWidth() |
|
void |
setOutlineWidth(float outlineWidth) |
|
float |
getLength() |
|
void |
setLength(float length) |
|
boolean |
isVisible() |
|
void |
setVisible(boolean visible) |
|
float |
getTriangleHeight() |
|
void |
setTriangleHeight(float triangleHeight) |
|
boolean |
isValid() |
Methods
getPosition
|
@NonNull |
Arrow center.
getFillColor
|
int getFillColor() |
Arrow fill color.
setFillColor
|
void setFillColor(int fillColor) |
getOutlineColor
|
int getOutlineColor() |
Color of the arrow's outline.
Default: white.
setOutlineColor
|
void setOutlineColor(int outlineColor) |
getOutlineWidth
|
float getOutlineWidth() |
The width of the outline in units.
Default: 2.
setOutlineWidth
|
void setOutlineWidth(float outlineWidth) |
getLength
|
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.
setLength
|
void setLength(float length) |
isVisible
|
boolean isVisible() |
Arrow visibility.
Default: true.
setVisible
|
void setVisible(boolean visible) |
getTriangleHeight
|
float getTriangleHeight() |
Describes height of the arrowhead in units.
Default: 0.2 * length.
setTriangleHeight
|
void setTriangleHeight(float triangleHeight) |
isValid
|
boolean isValid() |
Tells if this Arrow is valid or not.
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.