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 SummaryNested classes/interfaces inherited from class globus.glmap.GLMapTrackLayerGLMapTrackLayer.DataCallback
- 
Constructor SummaryConstructorsConstructorDescriptionCreates new empty track that will be injected to mapGLMapTrack(int drawOrder) Creates new empty track that will draw above map with given draw order
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetData(GLMapTrackData data, GLMapVectorStyle style, Runnable onReadyToDraw) Sets new track datavoidsetProgressColor(int color) Sets color of track from start to progress indexvoidsetProgressEndIndex(double progressIndex) Track from index to end index will change color to progress color.voidsetProgressIndex(double progressIndex) Track from start to progress index will change color to progress color.voidsetStyle(GLMapVectorStyle style) Sets width of track and other parametersMethods inherited from class globus.glmap.GLMapTrackLayersetStyleAndCallbackMethods inherited from class globus.glmap.GLMapDrawObjectgetDrawOrder, isHidden, setHiddenMethods inherited from class globus.glmap.GLNativeObjectdispose
- 
Constructor Details- 
GLMapTrackpublic GLMapTrack()Creates new empty track that will be injected to map
- 
GLMapTrackpublic GLMapTrack(int drawOrder) Creates new empty track that will draw above map with given draw order- Parameters:
- drawOrder- draw order of object
 
 
- 
- 
Method Details- 
setDatapublic void setData(@Nullable GLMapTrackData data, @NonNull GLMapVectorStyle style, @Nullable Runnable onReadyToDraw) Sets new track data- Parameters:
- data- new trackData
- style- visual style of track
- onReadyToDraw- optional runnable that called when object is ready to draw
 
- 
setProgressColorpublic void setProgressColor(int color) Sets color of track from start to progress index- Parameters:
- color- color of track from start to progress index
 
- 
setProgressIndexpublic void setProgressIndex(double progressIndex) Track from start to progress index will change color to progress color. Animatable.- Parameters:
- progressIndex- progress of track
 
- 
setProgressEndIndexpublic void setProgressEndIndex(double progressIndex) Track from index to end index will change color to progress color. Animatable.- Parameters:
- progressIndex- progress of track
 
- 
setStyleSets width of track and other parameters- Parameters:
- style- style that contains parameters
 
 
-