com.supermap.mapping.imChart

类 ChartView

  • java.lang.Object
    • android.view.View
      • android.view.ViewGroup
        • android.widget.RelativeLayout
          • com.supermap.mapping.imChart.ChartView
  • 所有已实现的接口:
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.SurfaceHolder.Callback, android.view.ViewManager, android.view.ViewParent
    直接已知子类:
    GridHotChart, HeatMap, PointDensityChart, PolymerChart, RelationPointChart, ScatterChart


    public class ChartView
    extends android.widget.RelativeLayout
    implements android.view.SurfaceHolder.Callback
    图表基类,它是一个ViewGroup子类,提供图表共有的特性接口。
    • 嵌套类概要

      嵌套类 
      限定符和类型 类和说明
      static interface  ChartView.OnDataPreparedListener
      prepareData完成时回调,注意回调时不是UI线程
      • 从类继承的嵌套类/接口 android.widget.RelativeLayout

        android.widget.RelativeLayout.LayoutParams
      • 从类继承的嵌套类/接口 android.view.ViewGroup

        android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • 从类继承的嵌套类/接口 android.view.View

        android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
    • 字段概要

      • 从类继承的字段 android.widget.RelativeLayout

        ABOVE, ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_END, ALIGN_LEFT, ALIGN_PARENT_BOTTOM, ALIGN_PARENT_END, ALIGN_PARENT_LEFT, ALIGN_PARENT_RIGHT, ALIGN_PARENT_START, ALIGN_PARENT_TOP, ALIGN_RIGHT, ALIGN_START, ALIGN_TOP, BELOW, CENTER_HORIZONTAL, CENTER_IN_PARENT, CENTER_VERTICAL, END_OF, LEFT_OF, RIGHT_OF, START_OF, TRUE
      • 从类继承的字段 android.view.ViewGroup

        FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • 从类继承的字段 android.view.View

        ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, VISIBLE, X, Y
    • 构造器概要

      构造器 
      构造器和说明
      ChartView(android.content.Context context)
      构造函数
      ChartView(android.content.Context context, android.util.AttributeSet attrs)
      构造函数
      ChartView(android.content.Context context, MapView mapView)
      构造函数
    • 方法概要

      所有方法 实例方法 具体方法 
      限定符和类型 方法和说明
      void addChartDatas(java.util.ArrayList<ChartPoint> chartDatas)
      添加统计数据
      void addChartDataset(java.util.ArrayList<ChartPoint> chartDatas, java.lang.String timeTag)
      添加统计数据表
      void dispose()
      释放资源
      ColorScheme getColorScheme()
      获取图例的颜色表
      ChartLegend getLegend()
      获取图表关联的图例
      int getOpaqueRate()
      图表层,支持图层级透明度设置。
      void insertChartDataset(java.util.ArrayList<ChartPoint> chartDatas, java.lang.String timeTag, int index)
      插入统计数据表
      void removeAllData()
      清空所有数据
      void removeChartData(java.lang.String timeTag)
      删除指定标签的统计数据表
      void setColorScheme(ColorScheme colorScheme)
      设置图例的颜色表
      void setIsLoopPlay(boolean bLoop)
      是否循环播放,默认off
      void setMapView(MapView mapView)
      设置图表关联的MapView,用于显示地图和图表
      void setOnDataPreparedListener(ChartView.OnDataPreparedListener mOnDataPreparedListener)
      设置OnDataPreparedListener监听
      void setOpaqueRate(int nOpaqueRate)
      图表层,支持图层级透明度设置。
      void setPlayIndex(int index)
      设置开始渲染数据集合的序号
      void setPlayInterval(float interval)
      渲染时空数据,时间间隔 单位秒,默认2s
      void setPlayTimePercent(float percent)
      渲染时空数据 跳时时间的百分比
      void setTitle(java.lang.String title)
      设置图表的标题
      void setTitleSize(float size)
      设置标题的字体大小
      void setUpdataInterval(float interval)
      实时数据更新间隔时间,默认未开启。
      void startPlay()
      开启渲染时空数据
      void stopPlay()
      停止渲染时空数据
      void surfaceChanged(android.view.SurfaceHolder holder, int format, int width, int height)
      实现 SurfaceHolder.Callback的接口,用于系统调用
      void surfaceCreated(android.view.SurfaceHolder holder)
      实现 SurfaceHolder.Callback的接口,用于系统调用
      void surfaceDestroyed(android.view.SurfaceHolder holder)
      实现 SurfaceHolder.Callback的接口,用于系统调用
      void update()
      刷新图表
      • 从类继承的方法 android.widget.RelativeLayout

        dispatchPopulateAccessibilityEvent, generateLayoutParams, getBaseline, getGravity, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, requestLayout, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity, shouldDelayChildPressedState
      • 从类继承的方法 android.view.ViewGroup

        addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getOverlay, getPersistentDrawingCache, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isMotionEventSplittingEnabled, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onInterceptHoverEvent, onInterceptTouchEvent, onRequestSendAccessibilityEvent, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • 从类继承的方法 android.view.View

        addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeScroll, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, draw, findViewById, findViewWithTag, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBottom, getCameraDistance, getClipBounds, getContentDescription, getContext, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setClipBounds, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, toString, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
      • 从类继承的方法 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • 从接口继承的方法 android.view.ViewParent

        canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows
    • 构造器详细资料

      • ChartView

        public ChartView(android.content.Context context)
        构造函数
        参数:
        context - 应用上下文
      • ChartView

        public ChartView(android.content.Context context,
                         android.util.AttributeSet attrs)
        构造函数
        参数:
        context - 应用上下文
        attrs - view的属性参数
      • ChartView

        public ChartView(android.content.Context context,
                         MapView mapView)
        构造函数
        参数:
        context - 应用上下文
        mapView - 地图使用的MapView
    • 方法详细资料

      • setTitle

        public void setTitle(java.lang.String title)
        设置图表的标题
        参数:
        title - 标题
      • setTitleSize

        public void setTitleSize(float size)
        设置标题的字体大小
        参数:
        size - 字体大小
      • getLegend

        public ChartLegend getLegend()
        获取图表关联的图例
        返回:
        图例
      • setMapView

        public void setMapView(MapView mapView)
        设置图表关联的MapView,用于显示地图和图表
        参数:
        mapView - 用于显示地图和图表的MapView
      • update

        public void update()
        刷新图表
      • setColorScheme

        public void setColorScheme(ColorScheme colorScheme)
                            throws java.lang.Exception
        设置图例的颜色表
        参数:
        colorScheme - 图例的颜色表
        抛出:
        java.lang.Exception - 图例的颜色表参数数量不一致时,抛出异常
      • getColorScheme

        public ColorScheme getColorScheme()
        获取图例的颜色表
        返回:
        图例的颜色表
      • addChartDataset

        public void addChartDataset(java.util.ArrayList<ChartPoint> chartDatas,
                                    java.lang.String timeTag)
        添加统计数据表
        参数:
        chartDatas - 统计数据表
        timeTag - 统计数据表标签
      • addChartDatas

        public void addChartDatas(java.util.ArrayList<ChartPoint> chartDatas)
        添加统计数据
        参数:
        chartDatas - chartPoints集合
      • insertChartDataset

        public void insertChartDataset(java.util.ArrayList<ChartPoint> chartDatas,
                                       java.lang.String timeTag,
                                       int index)
        插入统计数据表
        参数:
        chartDatas - 统计数据表
        timeTag - 统计数据表标签
        index - 插入的位置
      • removeChartData

        public void removeChartData(java.lang.String timeTag)
        删除指定标签的统计数据表
        参数:
        timeTag - 统计数据表标签
      • removeAllData

        public void removeAllData()
        清空所有数据
      • setUpdataInterval

        public void setUpdataInterval(float interval)
        实时数据更新间隔时间,默认未开启。当设置值大于等于0.5秒时 开启,设置0关闭
        参数:
        interval - 间隔时间
      • setPlayInterval

        public void setPlayInterval(float interval)
        渲染时空数据,时间间隔 单位秒,默认2s
        参数:
        interval - 时间间隔
      • setPlayTimePercent

        public void setPlayTimePercent(float percent)
        渲染时空数据 跳时时间的百分比
        参数:
        percent - 跳时时间的百分比
      • setPlayIndex

        public void setPlayIndex(int index)
        设置开始渲染数据集合的序号
        参数:
        index - 开始渲染数据集合的序号
      • setIsLoopPlay

        public void setIsLoopPlay(boolean bLoop)
        是否循环播放,默认off
        参数:
        bLoop - 是否循环播放
      • startPlay

        public void startPlay()
        开启渲染时空数据
      • stopPlay

        public void stopPlay()
        停止渲染时空数据
      • dispose

        public void dispose()
        释放资源
      • surfaceChanged

        public void surfaceChanged(android.view.SurfaceHolder holder,
                                   int format,
                                   int width,
                                   int height)
        实现 SurfaceHolder.Callback的接口,用于系统调用
        指定者:
        surfaceChanged 在接口中 android.view.SurfaceHolder.Callback
      • surfaceCreated

        public void surfaceCreated(android.view.SurfaceHolder holder)
        实现 SurfaceHolder.Callback的接口,用于系统调用
        指定者:
        surfaceCreated 在接口中 android.view.SurfaceHolder.Callback
      • surfaceDestroyed

        public void surfaceDestroyed(android.view.SurfaceHolder holder)
        实现 SurfaceHolder.Callback的接口,用于系统调用
        指定者:
        surfaceDestroyed 在接口中 android.view.SurfaceHolder.Callback
      • getOpaqueRate

        public int getOpaqueRate()
        图表层,支持图层级透明度设置。数值0~100,0表示在内置透明度基础上全透明,100表示在内置透明度基础上不透明,主要是给热力图用
        返回:
        图层级透明度
      • setOpaqueRate

        public void setOpaqueRate(int nOpaqueRate)
        图表层,支持图层级透明度设置。数值0~100,0表示在内置透明度基础上全透明,100表示在内置透明度基础上不透明,主要是给热力图用
        参数:
        nOpaqueRate - 图层级透明度
      • setOnDataPreparedListener

        public void setOnDataPreparedListener(ChartView.OnDataPreparedListener mOnDataPreparedListener)
        设置OnDataPreparedListener监听
        参数:
        mOnDataPreparedListener - OnDataPreparedListener实现