IDrawSerie.cs 956 B

12345678910111213141516171819202122232425262728
  1. /************************************************/
  2. /* */
  3. /* Copyright (c) 2018 - 2021 monitor1394 */
  4. /* https://github.com/monitor1394 */
  5. /* */
  6. /************************************************/
  7. using UnityEngine;
  8. using UnityEngine.EventSystems;
  9. using UnityEngine.UI;
  10. namespace XCharts
  11. {
  12. public interface IDrawSerie
  13. {
  14. void InitComponent();
  15. void CheckComponent();
  16. void Update();
  17. void DrawBase(VertexHelper vh);
  18. void DrawSerie(VertexHelper vh, Serie serie);
  19. void RefreshLabel();
  20. bool CheckTootipArea(Vector2 local);
  21. bool OnLegendButtonClick(int index, string legendName, bool show);
  22. bool OnLegendButtonEnter(int index, string legendName);
  23. bool OnLegendButtonExit(int index, string legendName);
  24. void OnPointerDown(PointerEventData eventData);
  25. }
  26. }