Option.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.zd.model.echarts;
  2. import java.util.List;
  3. /**
  4. * echarts 返回对象
  5. *
  6. * @Author: zhoupan
  7. * @Date: 2021/09/13/11:04
  8. * @Description:
  9. */
  10. public class Option<X, Y, F extends Serie<Y>> {
  11. /**
  12. * 标题
  13. */
  14. private Title title;
  15. /**
  16. * X坐标
  17. */
  18. private Axis xAxis;
  19. /**
  20. * Y坐标
  21. */
  22. private Axis yAxis;
  23. /**
  24. * 图例
  25. */
  26. private Legend legend;
  27. /**
  28. * 数据系列
  29. */
  30. private List<F> series;
  31. public Title getTitle() {
  32. return title;
  33. }
  34. public void setTitle(Title title) {
  35. this.title = title;
  36. }
  37. public Axis getxAxis() {
  38. return xAxis;
  39. }
  40. public void setxAxis(Axis xAxis) {
  41. this.xAxis = xAxis;
  42. }
  43. public Axis getyAxis() {
  44. return yAxis;
  45. }
  46. public void setyAxis(Axis yAxis) {
  47. this.yAxis = yAxis;
  48. }
  49. public Legend getLegend() {
  50. return legend;
  51. }
  52. public void setLegend(Legend legend) {
  53. this.legend = legend;
  54. }
  55. public List<F> getSeries() {
  56. return series;
  57. }
  58. public void setSeries(List<F> series) {
  59. this.series = series;
  60. }
  61. }