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 Detail

      • TimeLine

        public TimeLine(android.widget.FrameLayout hostView,
                        android.content.Context context)
        The constructor.
        Parameters:
        hostView - Parent view
        context - 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.