Package globus.glmap
Class GLMapTrack
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.GLMapTrackLayer
globus.glmap.GLMapTrack
GLMapTrack
is a bridge class, to work with GLMap internal representation of track on
map.-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glmap.GLMapTrackLayer
GLMapTrackLayer.DataCallback
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setData
(GLMapTrackData data, GLMapVectorStyle style, Runnable onReadyToDraw) Sets new track datavoid
setProgressColor
(int color) Sets color of track from start to progress indexvoid
setProgressEndIndex
(double progressIndex) Track from index to end index will change color to progress color.void
setProgressIndex
(double progressIndex) Track from start to progress index will change color to progress color.void
setStyle
(GLMapVectorStyle style) Sets width of track and other parametersMethods inherited from class globus.glmap.GLMapTrackLayer
setStyleAndCallback
Methods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHidden
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLMapTrack
public GLMapTrack(int drawOrder) Default constructor- Parameters:
drawOrder
- draw order of object
-
-
Method Details
-
setData
public void setData(@Nullable GLMapTrackData data, @NonNull GLMapVectorStyle style, @Nullable Runnable onReadyToDraw) Sets new track data- Parameters:
data
- new trackDatastyle
- visual style of trackonReadyToDraw
- optional runnable that called when object is ready to draw
-
setProgressColor
public void setProgressColor(int color) Sets color of track from start to progress index- Parameters:
color
- color of track from start to progress index
-
setProgressIndex
public void setProgressIndex(double progressIndex) Track from start to progress index will change color to progress color. Animatable.- Parameters:
progressIndex
- progress of track
-
setProgressEndIndex
public void setProgressEndIndex(double progressIndex) Track from index to end index will change color to progress color. Animatable.- Parameters:
progressIndex
- progress of track
-
setStyle
Sets width of track and other parameters- Parameters:
style
- style that contains parameters
-