using System.Collections.Generic; using System.Text; using UnityEngine; using UnityEngine.UI; using XUGL; namespace XCharts.Runtime { /// /// For grid coord /// [UnityEngine.Scripting.Preserve] internal sealed partial class LineHandler : SerieHandler { public override void Update() { base.Update(); if (serie.IsUseCoord()) UpdateSerieGridContext(); else if (serie.IsUseCoord()) UpdateSeriePolarContext(); } public override void UpdateTooltipSerieParams(int dataIndex, bool showCategory, string category, string marker, string itemFormatter, string numericFormatter, ref List paramList, ref string title) { UpdateCoordSerieParams(ref paramList, ref title, dataIndex, showCategory, category, marker, itemFormatter, numericFormatter); } public override void DrawSerie(VertexHelper vh) { if (serie.IsUseCoord()) { DrawPolarLine(vh, serie); DrawPolarLineSymbol(vh); } else if (serie.IsUseCoord()) { DrawLineSerie(vh, serie); if (!SeriesHelper.IsStack(chart.series)) { DrawLinePoint(vh, serie); DrawLineArrow(vh, serie); } } } public override void DrawTop(VertexHelper vh) { if (serie.IsUseCoord()) { if (SeriesHelper.IsStack(chart.series)) { DrawLinePoint(vh, serie); DrawLineArrow(vh, serie); } } } } }