com.supermap.mapping.imChart
Class TimeLine
- java.lang.Object
-
- com.supermap.mapping.imChart.TimeLine
-
public class TimeLine extends java.lang.Object
The real time data time line class.
-
-
Constructor Summary
Constructors Constructor and Description TimeLine(android.widget.FrameLayout hostView, android.content.Context context)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addChart(ChartView chart)
Add time chart.void
clearChart()
Clear all related charts.void
dispose()
Disposes resources.void
load()
Add time slidervoid
removeChart(ChartView chart)
Remove related chart.void
setBackwardImage(android.graphics.Bitmap bitmap)
Set backward imagevoid
setForwardsImage(android.graphics.Bitmap bitmap)
Set forward imagevoid
setIsHorizontal(boolean bHorizonal)
Set whether to place time slider horizontal.void
setPausePlayImage(android.graphics.Bitmap bitmap)
Set pause imagevoid
setPlayImage(android.graphics.Bitmap bitmap)
Set play imagevoid
setSliderImage(android.graphics.Bitmap bitmap)
Set slider imagevoid
setSliderSelectedImage(android.graphics.Bitmap bitmap)
Set selected slider stylevoid
setSliderSize(float size)
Set slider size.void
setSliderTextColor(int color)
Set slider text colorvoid
setSliderTextSize(float size)
Set slider text size.void
setTimeLineColor(int color)
Set time slider color'
-
-
-
Constructor Detail
-
TimeLine
public TimeLine(android.widget.FrameLayout hostView, android.content.Context context)
The constructor.- Parameters:
hostView
- Parent viewcontext
- The context.
-
-
Method Detail
-
setSliderSize
public void setSliderSize(float size)
Set slider size. The default is 25 in dp.- Parameters:
size
- Slider size
-
setSliderTextSize
public void setSliderTextSize(float size)
Set slider text size. The default is 8 in sp.- Parameters:
size
- Text size
-
setTimeLineColor
public void setTimeLineColor(int color)
Set time slider color'- Parameters:
color
- time slider color
-
setSliderTextColor
public void setSliderTextColor(int color)
Set slider text color- Parameters:
color
- Slider text color
-
setSliderImage
public void setSliderImage(android.graphics.Bitmap bitmap)
Set slider image- Parameters:
bitmap
- slider image
-
setSliderSelectedImage
public void setSliderSelectedImage(android.graphics.Bitmap bitmap)
Set selected slider style- Parameters:
bitmap
- selected slider image
-
setBackwardImage
public void setBackwardImage(android.graphics.Bitmap bitmap)
Set backward image- Parameters:
bitmap
- backward image
-
setForwardsImage
public void setForwardsImage(android.graphics.Bitmap bitmap)
Set forward image- Parameters:
bitmap
- forward image
-
setPlayImage
public void setPlayImage(android.graphics.Bitmap bitmap)
Set play image- Parameters:
bitmap
- Play image
-
setPausePlayImage
public void setPausePlayImage(android.graphics.Bitmap bitmap)
Set pause image- Parameters:
bitmap
- Pause image
-
setIsHorizontal
public void setIsHorizontal(boolean bHorizonal)
Set whether to place time slider horizontal.- Parameters:
bHorizonal
- Place time slider horizontal. Place it horizontally if true; otherwise, false.
-
addChart
public void addChart(ChartView chart)
Add time chart.- Parameters:
chart
- Time chart.
-
removeChart
public void removeChart(ChartView chart)
Remove related chart.- Parameters:
chart
- remove related chart.
-
clearChart
public void clearChart()
Clear all related charts.
-
load
public void load()
Add time slider
-
dispose
public void dispose()
Disposes resources.
-
-