mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 01:10:08 +00:00
增加回调API文档
This commit is contained in:
@@ -155,6 +155,24 @@ Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| onAxisPointerValueChanged |public Action<Axis, double> onAxisPointerValueChanged<br/>坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue |
|
||||
| onDraw |public Action<VertexHelper> onDraw<br/>自定义绘制回调。在绘制Serie前调用。 |
|
||||
| onDrawAfterSerie |public Action<VertexHelper, Serie> onDrawAfterSerie<br/>自定义Serie绘制回调。在每个Serie绘制完后调用。 |
|
||||
| onDrawBeforeSerie |public Action<VertexHelper, Serie> onDrawBeforeSerie<br/>自定义Serie绘制回调。在每个Serie绘制完前调用。 |
|
||||
| onDrawTop |public Action<VertexHelper> onDrawTop<br/>自定义Top层绘制回调。在绘制Tooltip前调用。 |
|
||||
| onDrawUpper |public Action<VertexHelper> onDrawUpper<br/>自定义Upper层绘制回调。在绘制Tooltip前调用。 |
|
||||
| onInit |public Action onInit<br/>The callback function of chart init. |
|
||||
| onLegendClick |public Action<Legend, int, string, bool> onLegendClick<br/>the callback function of click legend. |
|
||||
| onLegendEnter |public Action<Legend, int, string> onLegendEnter<br/>the callback function of enter legend. |
|
||||
| onLegendExit |public Action<Legend, int, string> onLegendExit<br/>the callback function of exit legend. |
|
||||
| onPointerClickBar |public Action<PointerEventData, int> onPointerClickBar<br/>the callback function of click bar. |
|
||||
| onPointerClickPie |public Action<PointerEventData, int, int> onPointerClickPie<br/>the callback function of pointer click pie area. |
|
||||
| onPointerEnterPie |public Action<int, int> onPointerEnterPie<br/>the callback function of pointer enter pie area. |
|
||||
| onSerieClick |public Action<SerieEventData> onSerieClick<br/>the callback function of pointer click serie. |
|
||||
| onSerieDown |public Action<SerieEventData> onSerieDown<br/>the callback function of pointer down serie. |
|
||||
| onSerieEnter |public Action<SerieEventData> onSerieEnter<br/>the callback function of pointer enter serie. |
|
||||
| onSerieExit |public Action<SerieEventData> onSerieExit<br/>the callback function of pointer exit serie. |
|
||||
| onUpdate |public Action onUpdate<br/>The callback function of chart update. |
|
||||
| AddChartComponent() |public MainComponent AddChartComponent(Type type)|
|
||||
| AddChartComponent<T>() |public T AddChartComponent<T>() where T : MainComponent|
|
||||
| AddChartComponentWhenNoExist<T>() |public T AddChartComponentWhenNoExist<T>() where T : MainComponent|
|
||||
@@ -325,6 +343,15 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic),[IPointerDownHandle
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| onBeginDrag |public Action<PointerEventData, BaseGraph> onBeginDrag<br/>鼠标开始拖拽回调。 |
|
||||
| onDrag |public Action<PointerEventData, BaseGraph> onDrag<br/>鼠标拖拽回调。 |
|
||||
| onEndDrag |public Action<PointerEventData, BaseGraph> onEndDrag<br/>鼠标结束拖拽回调。 |
|
||||
| onPointerClick |public Action<PointerEventData, BaseGraph> onPointerClick<br/>鼠标点击回调。 |
|
||||
| onPointerDown |public Action<PointerEventData, BaseGraph> onPointerDown<br/>鼠标按下回调。 |
|
||||
| onPointerEnter |public Action<PointerEventData, BaseGraph> onPointerEnter<br/>鼠标进入回调。 |
|
||||
| onPointerExit |public Action<PointerEventData, BaseGraph> onPointerExit<br/>鼠标退出回调。 |
|
||||
| onPointerUp |public Action<PointerEventData, BaseGraph> onPointerUp<br/>鼠标弹起回调。 |
|
||||
| onScroll |public Action<PointerEventData, BaseGraph> onScroll<br/>鼠标滚动回调。 |
|
||||
| CheckWarning() |public string CheckWarning()<br/>检测警告信息。 |
|
||||
| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData)|
|
||||
| OnDrag() |public virtual void OnDrag(PointerEventData eventData)|
|
||||
@@ -719,6 +746,7 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic)
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| onPopulateMesh |public Action<VertexHelper, Painter> onPopulateMesh|
|
||||
| CheckRefresh() |public void CheckRefresh()|
|
||||
| Init() |public void Init()|
|
||||
| Refresh() |public void Refresh()|
|
||||
|
||||
@@ -155,6 +155,24 @@ Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| onAxisPointerValueChanged |public Action<Axis, double> onAxisPointerValueChanged<br/>坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue |
|
||||
| onDraw |public Action<VertexHelper> onDraw<br/>自定义绘制回调。在绘制Serie前调用。 |
|
||||
| onDrawAfterSerie |public Action<VertexHelper, Serie> onDrawAfterSerie<br/>自定义Serie绘制回调。在每个Serie绘制完后调用。 |
|
||||
| onDrawBeforeSerie |public Action<VertexHelper, Serie> onDrawBeforeSerie<br/>自定义Serie绘制回调。在每个Serie绘制完前调用。 |
|
||||
| onDrawTop |public Action<VertexHelper> onDrawTop<br/>自定义Top层绘制回调。在绘制Tooltip前调用。 |
|
||||
| onDrawUpper |public Action<VertexHelper> onDrawUpper<br/>自定义Upper层绘制回调。在绘制Tooltip前调用。 |
|
||||
| onInit |public Action onInit<br/>图表的初始化完成回调。 |
|
||||
| onLegendClick |public Action<Legend, int, string, bool> onLegendClick<br/>点击图例按钮回调。参数:legendIndex, legendName, show |
|
||||
| onLegendEnter |public Action<Legend, int, string> onLegendEnter<br/>鼠标进入图例回调。参数:legendIndex, legendName |
|
||||
| onLegendExit |public Action<Legend, int, string> onLegendExit<br/>鼠标退出图例回调。参数:legendIndex, legendName |
|
||||
| onPointerClickBar |public Action<PointerEventData, int> onPointerClickBar<br/>点击柱形图柱条回调。参数:eventData, dataIndex |
|
||||
| onPointerClickPie |public Action<PointerEventData, int, int> onPointerClickPie<br/>点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex |
|
||||
| onPointerEnterPie |public Action<int, int> onPointerEnterPie<br/>鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex |
|
||||
| onSerieClick |public Action<SerieEventData> onSerieClick<br/>鼠标点击Serie回调。 |
|
||||
| onSerieDown |public Action<SerieEventData> onSerieDown<br/>鼠标按下Serie回调。 |
|
||||
| onSerieEnter |public Action<SerieEventData> onSerieEnter<br/>鼠标进入Serie回调。 |
|
||||
| onSerieExit |public Action<SerieEventData> onSerieExit<br/>鼠标离开Serie回调。 |
|
||||
| onUpdate |public Action onUpdate<br/>图表的Update回调。 |
|
||||
| AddChartComponent() |public MainComponent AddChartComponent(Type type)|
|
||||
| AddChartComponent<T>() |public T AddChartComponent<T>() where T : MainComponent|
|
||||
| AddChartComponentWhenNoExist<T>() |public T AddChartComponentWhenNoExist<T>() where T : MainComponent|
|
||||
@@ -325,6 +343,15 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic),[IPointerDownHandle
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| onBeginDrag |public Action<PointerEventData, BaseGraph> onBeginDrag<br/>鼠标开始拖拽回调。 |
|
||||
| onDrag |public Action<PointerEventData, BaseGraph> onDrag<br/>鼠标拖拽回调。 |
|
||||
| onEndDrag |public Action<PointerEventData, BaseGraph> onEndDrag<br/>鼠标结束拖拽回调。 |
|
||||
| onPointerClick |public Action<PointerEventData, BaseGraph> onPointerClick<br/>鼠标点击回调。 |
|
||||
| onPointerDown |public Action<PointerEventData, BaseGraph> onPointerDown<br/>鼠标按下回调。 |
|
||||
| onPointerEnter |public Action<PointerEventData, BaseGraph> onPointerEnter<br/>鼠标进入回调。 |
|
||||
| onPointerExit |public Action<PointerEventData, BaseGraph> onPointerExit<br/>鼠标退出回调。 |
|
||||
| onPointerUp |public Action<PointerEventData, BaseGraph> onPointerUp<br/>鼠标弹起回调。 |
|
||||
| onScroll |public Action<PointerEventData, BaseGraph> onScroll<br/>鼠标滚动回调。 |
|
||||
| CheckWarning() |public string CheckWarning()<br/>检测警告信息。 |
|
||||
| OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData)|
|
||||
| OnDrag() |public virtual void OnDrag(PointerEventData eventData)|
|
||||
@@ -719,6 +746,7 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic)
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| onPopulateMesh |public Action<VertexHelper, Painter> onPopulateMesh|
|
||||
| CheckRefresh() |public void CheckRefresh()|
|
||||
| Init() |public void Init()|
|
||||
| Refresh() |public void Refresh()|
|
||||
|
||||
Reference in New Issue
Block a user