com.supermap.mapping.imChart
Class ChartView
- java.lang.Object
-
- android.view.View
-
- android.view.ViewGroup
-
- android.widget.RelativeLayout
-
- com.supermap.mapping.imChart.ChartView
-
- All Implemented Interfaces:
- android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.SurfaceHolder.Callback, android.view.ViewManager, android.view.ViewParent
- Direct Known Subclasses:
- GridHotChart, HeatMap, PointDensityChart, PolymerChart, RelationPointChart, ScatterChart
public class ChartView extends android.widget.RelativeLayout implements android.view.SurfaceHolder.CallbackThe ChartVIew Base Class,It is a ViewGroup subclass that provides a common interface for charts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interfaceChartView.OnDataPreparedListenerprepareData Callback on completion, note that the callback is not a UI thread-
Nested classes/interfaces inherited from class android.widget.RelativeLayout
android.widget.RelativeLayout.LayoutParams
-
Nested classes/interfaces inherited from class android.view.ViewGroup
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
-
Nested classes/interfaces inherited from class 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
-
-
Field Summary
-
Fields inherited from class 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
-
Fields inherited from class 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
-
Fields inherited from class 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
-
-
Constructor Summary
Constructors Constructor and Description ChartView(android.content.Context context)The constructor.ChartView(android.content.Context context, android.util.AttributeSet attrs)The constructor.ChartView(android.content.Context context, MapView mapView)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddChartDatas(java.util.ArrayList<ChartPoint> chartDatas)Add statistics datavoidaddChartDataset(java.util.ArrayList<ChartPoint> chartDatas, java.lang.String timeTag)Add a statistics tablevoiddispose()Disposes resources.ColorSchemegetColorScheme()Gets the color table for the legend.ChartLegendgetLegend()Gets the legend associated with the chart.intgetOpaqueRate()The chart layer, which supports setting transparencies for layers.voidinsertChartDataset(java.util.ArrayList<ChartPoint> chartDatas, java.lang.String timeTag, int index)Insert the statistics table.voidremoveAllData()Empty all the data.voidremoveChartData(java.lang.String timeTag)Delete the statistics table for the specified label.voidsetColorScheme(ColorScheme colorScheme)Sets the color table for the legend.voidsetIsLoopPlay(boolean bLoop)Whether to loop, the default off.voidsetMapView(MapView mapView)Sets the MapView associated with the chart for displaying maps and charts.voidsetOnDataPreparedListener(ChartView.OnDataPreparedListener mOnDataPreparedListener)set OnDataPreparedListener监听voidsetOpaqueRate(int nOpaqueRate)The chart layer, which supports setting transparencies for layers.voidsetPlayIndex(int index)Sets the serial number of the start rendering data collection.voidsetPlayInterval(float interval)Render spatiotemporal data, time interval unit sec, default 2s.voidsetPlayTimePercent(float percent)Renders spatio-temporal data, percentage of time to jump.voidsetTitle(java.lang.String title)Gets the title of the chartvoidsetTitleSize(float size)Sets the font size of the title.voidsetUpdataInterval(float interval)Real-time data update interval, the default is not open.voidstartPlay()Turn on rendering spatio-temporal data.voidstopPlay()Stop rendering spatio-temporal data.voidsurfaceChanged(android.view.SurfaceHolder holder, int format, int width, int height)Implement the interfaceSurfaceHolder.Callbackof for system call.voidsurfaceCreated(android.view.SurfaceHolder holder)Implement the interfaceSurfaceHolder.Callbackof for system call.voidsurfaceDestroyed(android.view.SurfaceHolder holder)Implement the interfaceSurfaceHolder.Callbackof for system call.voidupdate()Refresh the chart.-
Methods inherited from class android.widget.RelativeLayout
dispatchPopulateAccessibilityEvent, generateLayoutParams, getBaseline, getGravity, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, requestLayout, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity, shouldDelayChildPressedState
-
Methods inherited from class 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
-
Methods inherited from class 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
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface android.view.ViewParent
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows
-
-
-
-
Constructor Detail
-
ChartView
public ChartView(android.content.Context context)
The constructor.- Parameters:
context- Application context.
-
ChartView
public ChartView(android.content.Context context, android.util.AttributeSet attrs)The constructor.- Parameters:
context- Application context.attrs- The attribute parameter of the view.
-
ChartView
public ChartView(android.content.Context context, MapView mapView)The constructor.- Parameters:
context- Application context.mapView- Map using MapView
-
-
Method Detail
-
setTitle
public void setTitle(java.lang.String title)
Gets the title of the chart- Parameters:
title- Title
-
setTitleSize
public void setTitleSize(float size)
Sets the font size of the title.- Parameters:
size- The size font.
-
getLegend
public ChartLegend getLegend()
Gets the legend associated with the chart.- Returns:
- Legend
-
setMapView
public void setMapView(MapView mapView)
Sets the MapView associated with the chart for displaying maps and charts.- Parameters:
mapView- MapView for displaying maps and charts.
-
update
public void update()
Refresh the chart.
-
setColorScheme
public void setColorScheme(ColorScheme colorScheme) throws java.lang.Exception
Sets the color table for the legend.- Parameters:
colorScheme- The color table for the legend.- Throws:
java.lang.Exception- When the number of color table parameters in the legend does not match, an exception is thrown.
-
getColorScheme
public ColorScheme getColorScheme()
Gets the color table for the legend.- Returns:
- The color table for the legend.
-
addChartDataset
public void addChartDataset(java.util.ArrayList<ChartPoint> chartDatas, java.lang.String timeTag)
Add a statistics table- Parameters:
chartDatas- The statistics tabletimeTag- The statistics table label.
-
addChartDatas
public void addChartDatas(java.util.ArrayList<ChartPoint> chartDatas)
Add statistics data- Parameters:
chartDatas- chartPoints collection.
-
insertChartDataset
public void insertChartDataset(java.util.ArrayList<ChartPoint> chartDatas, java.lang.String timeTag, int index)
Insert the statistics table.- Parameters:
chartDatas- The statistics tabletimeTag- The statistics table label.index- Inserted position
-
removeChartData
public void removeChartData(java.lang.String timeTag)
Delete the statistics table for the specified label.- Parameters:
timeTag- The statistics table label.
-
removeAllData
public void removeAllData()
Empty all the data.
-
setUpdataInterval
public void setUpdataInterval(float interval)
Real-time data update interval, the default is not open. When the set value is greater than or equal to 0.5 seconds to open, set 0 off.- Parameters:
interval- Interval
-
setPlayInterval
public void setPlayInterval(float interval)
Render spatiotemporal data, time interval unit sec, default 2s.- Parameters:
interval- Interval
-
setPlayTimePercent
public void setPlayTimePercent(float percent)
Renders spatio-temporal data, percentage of time to jump.- Parameters:
percent- The percentage of time to jump.
-
setPlayIndex
public void setPlayIndex(int index)
Sets the serial number of the start rendering data collection.- Parameters:
index- The serial number of the start rendering data collection.
-
setIsLoopPlay
public void setIsLoopPlay(boolean bLoop)
Whether to loop, the default off.- Parameters:
bLoop- Whether to loop.
-
startPlay
public void startPlay()
Turn on rendering spatio-temporal data.
-
stopPlay
public void stopPlay()
Stop rendering spatio-temporal data.
-
dispose
public void dispose()
Disposes resources.
-
surfaceChanged
public void surfaceChanged(android.view.SurfaceHolder holder, int format, int width, int height)Implement the interfaceSurfaceHolder.Callbackof for system call.- Specified by:
surfaceChangedin interfaceandroid.view.SurfaceHolder.Callback
-
surfaceCreated
public void surfaceCreated(android.view.SurfaceHolder holder)
Implement the interfaceSurfaceHolder.Callbackof for system call.- Specified by:
surfaceCreatedin interfaceandroid.view.SurfaceHolder.Callback
-
surfaceDestroyed
public void surfaceDestroyed(android.view.SurfaceHolder holder)
Implement the interfaceSurfaceHolder.Callbackof for system call.- Specified by:
surfaceDestroyedin interfaceandroid.view.SurfaceHolder.Callback
-
getOpaqueRate
public int getOpaqueRate()
The chart layer, which supports setting transparencies for layers. The transparency value ranges from 0 to 100, and 0 means entirely transparent based on the built-in transparency, while 100 denotes opacity based on the built-in transparency. It is mainly used for heat maps- Returns:
- The transparency of a layer
-
setOpaqueRate
public void setOpaqueRate(int nOpaqueRate)
The chart layer, which supports setting transparencies for layers. The transparency value ranges from 0 to 100, and 0 means entirely transparent based on the built-in transparency, while 100 denotes opacity based on the built-in transparency. It is mainly used for heat maps- Parameters:
nOpaqueRate- The transparency of a layer
-
setOnDataPreparedListener
public void setOnDataPreparedListener(ChartView.OnDataPreparedListener mOnDataPreparedListener)
set OnDataPreparedListener监听- Parameters:
mOnDataPreparedListener- OnDataPreparedListener implementation
-
-