Commit 864940885c17bfb0bc63be7800667ab894f1b161

Authored by baohanddd
1 parent b0aa5b132c

add statistics(map) common index

Showing 13 changed files with 839 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java View file @ 8649408
... ... @@ -6,6 +6,8 @@
6 6 import com.lyms.platform.common.utils.JsonUtil;
7 7 import com.lyms.platform.common.utils.ResultUtils;
8 8 import com.lymsh.platform.reportdata.model.AreaData;
  9 +import com.lymsh.platform.reportdata.model.AreaDataQuery;
  10 +import com.lymsh.platform.reportdata.model.echarts.*;
9 11 import com.lymsh.platform.reportdata.service.StatisticsService;
10 12 import org.apache.commons.lang.StringUtils;
11 13 import org.springframework.beans.factory.annotation.Autowired;
... ... @@ -16,9 +18,7 @@
16 18 import org.springframework.web.bind.annotation.RequestParam;
17 19  
18 20 import javax.servlet.http.HttpServletResponse;
19   -import java.util.HashMap;
20   -import java.util.List;
21   -import java.util.Map;
  21 +import java.util.*;
22 22  
23 23 /**
24 24 * Created by Administrator on 2016/6/28 0028.
... ... @@ -42,6 +42,177 @@
42 42 result.put("simpleList", simpleList);
43 43 result.put("riskList", riskList);
44 44 ResultUtils.buildSuccessResultAndWrite(response, result);
  45 + }
  46 +
  47 + /**
  48 + * totalIndex
  49 + * @param response
  50 + * @param type 1:全国,pid不传;2:全省,pid传省ID;3:全地区,pid传地区ID
  51 + * @param pid 省ID、地区ID
  52 + */
  53 + @RequestMapping(value = "/total/index", method = RequestMethod.GET)
  54 + public void getTotalIndex(HttpServletResponse response, @RequestParam(value = "type")Integer type, @RequestParam(value = "pid", required = false)String pid) {
  55 + Map<String,Object> result= new HashMap<String, Object>();
  56 + if (type == 1) {
  57 + // 地图数据
  58 + List<AreaData> provinceRiskList = statisticsService.queryProvinceRisks();
  59 + List<AreaData> provincePatientList = statisticsService.queryProvincePatients();
  60 + Map<String, String> kvData = new HashMap<>();
  61 + Map<String, Integer> mapsData = new HashMap<>();
  62 + for (AreaData areaData:provincePatientList) {
  63 + String rigino = areaData.getProvinceName().replace("市", "").replace("省", "");
  64 + if (mapsData.get(rigino) == null) {
  65 + mapsData.put(rigino, areaData.getVal());
  66 + kvData.put(rigino, areaData.getProvinceId());
  67 + } else {
  68 + mapsData.put(rigino, mapsData.get(rigino) + areaData.getVal());
  69 + }
  70 + }
  71 + for (AreaData areaData:provinceRiskList) {
  72 + String rigino = areaData.getProvinceName().replace("市", "").replace("省", "");
  73 + if (mapsData.get(rigino) == null) {
  74 + mapsData.put(rigino, areaData.getVal());
  75 + kvData.put(rigino, areaData.getProvinceId());
  76 + } else {
  77 + mapsData.put(rigino, mapsData.get(rigino) + areaData.getVal());
  78 + }
  79 + }
  80 +
  81 + List<Object> dataList = new ArrayList<>();
  82 + Set<String> set = mapsData.keySet();
  83 + for (String key:set) {
  84 + Data data = new Data();
  85 + data.setName(key);
  86 + data.setValue(mapsData.get(key));
  87 + dataList.add(data);
  88 + }
  89 +
  90 + Normal normal = new Normal(true, null);
  91 + Label label = new Label();
  92 + label.setNormal(normal);
  93 + label.setEmphasis(normal);
  94 + Option option = buildMapOption("孕妇建档数", null);
  95 + List<Object> seriesList = new ArrayList<>();
  96 + Series series = new Series();
  97 + series.setName("建档&高危数");
  98 + series.setType("map");
  99 + series.setMapType("china");
  100 + series.setRoam(false);
  101 + series.setLabel(label);
  102 + series.setData(dataList);
  103 + seriesList.add(series);
  104 + option.setSeries(seriesList);
  105 +
  106 + // 高危数据
  107 + List<AreaData> currentRiskList = statisticsService.queryRisks(new AreaDataQuery());
  108 + Option groupRiskOption = buildBarOption("当前高危人数", null);
  109 + List<Object> groupRiskSeriesList = new ArrayList<>();
  110 + Series groupRiskSeries = new Series();
  111 + groupRiskSeries.setName("高危人数");
  112 + groupRiskSeries.setType("bar");
  113 + mapsData.clear();
  114 + for (AreaData areaData:currentRiskList) {
  115 + String groupName = areaData.getGroupName().replace("预警", "");
  116 + if (mapsData.get(groupName) == null) {
  117 + mapsData.put(groupName,areaData.getVal());
  118 + } else {
  119 + mapsData.put(groupName,mapsData.get(groupName)+areaData.getVal());
  120 + }
  121 + }
  122 + List<Object> groupRiskDataList = new ArrayList<>();
  123 + for (Object key:groupRiskOption.getyAxis().getData()) {
  124 + if (mapsData.containsKey(key)) {
  125 + groupRiskDataList.add(mapsData.get(key));
  126 + }
  127 + }
  128 + for (String key:mapsData.keySet()) {
  129 + if (!groupRiskOption.getyAxis().getData().contains(key)) {
  130 + groupRiskOption.getyAxis().getData().add(key);
  131 + groupRiskDataList.add(mapsData.get(key));
  132 + }
  133 + }
  134 + groupRiskSeries.setData(groupRiskDataList);
  135 + groupRiskSeriesList.add(groupRiskSeries);
  136 + groupRiskOption.setSeries(groupRiskSeriesList);
  137 +
  138 +
  139 +
  140 + result.put("type", 1);
  141 + result.put("kvData", kvData);
  142 + result.put("mapsOption", option);
  143 + result.put("groupRiskOption", groupRiskOption);
  144 + ResultUtils.buildSuccessResultAndWrite(response, result);
  145 + }
  146 +
  147 + }
  148 +
  149 +
  150 +
  151 +
  152 + private Option buildMapOption(String titleText, String subTitle) {
  153 + Option option = new Option();
  154 + Title title = new Title();
  155 + title.setText(titleText);
  156 + title.setSubtext(subTitle);
  157 + option.setTitle(title);
  158 + Tooltip tooltip = new Tooltip();
  159 + tooltip.setTrigger("item");
  160 + tooltip.setShow(false);
  161 + option.setTooltip(tooltip);
  162 + Legend legend = new Legend();
  163 + legend.setOrient("vertical");
  164 + legend.setTop("20px");
  165 + legend.setLeft("left");
  166 + List<Object> tempList = new ArrayList<Object>();
  167 + tempList.add("建档&高危数");
  168 + legend.setData(tempList);
  169 + option.setLegend(legend);
  170 + option.setVisualMap(new VisualMap());
  171 + Tooltip toolbox = new Tooltip();
  172 + toolbox.setOrient("horizontal");
  173 + toolbox.setShow(false);
  174 + toolbox.setTop("20px");
  175 + toolbox.setLeft("right");
  176 + return option;
  177 + }
  178 +
  179 + private Option buildBarOption(String titleText, String subTitle) {
  180 + Option option = new Option();
  181 + Title title = new Title();
  182 + title.setText(titleText);
  183 + title.setSubtext(subTitle);
  184 + option.setTitle(title);
  185 + Tooltip tooltip = new Tooltip();
  186 + tooltip.setTrigger("axis");
  187 + AxisPointer axisPointer = new AxisPointer();
  188 + axisPointer.setType("shadow");
  189 + tooltip.setAxisPointer(axisPointer);
  190 + option.setTooltip(tooltip);
  191 + Legend legend = new Legend();
  192 + List<Object> tempList = new ArrayList<Object>();
  193 + tempList.add("高危数");
  194 + legend.setData(tempList);
  195 + option.setLegend(legend);
  196 + Grid grid = new Grid();
  197 + grid.setContainLabel(true);
  198 + option.setGrid(grid);
  199 + AxisPointer xAxis = new AxisPointer();
  200 + xAxis.setType("value");
  201 + List<Object> gapList = new ArrayList<Object>();
  202 + gapList.add(0);
  203 + gapList.add(0.1);
  204 + xAxis.setBoundaryGap(gapList);
  205 + option.setxAxis(xAxis);
  206 + AxisPointer yAxis = new AxisPointer();
  207 + yAxis.setType("category");
  208 + List<Object> dataList = new ArrayList<Object>();
  209 + dataList.add("紫色");
  210 + dataList.add("红色");
  211 + dataList.add("橙色");
  212 + dataList.add("黄色");
  213 + yAxis.setBoundaryGap(dataList);
  214 + option.setyAxis(yAxis);
  215 + return option;
45 216 }
46 217  
47 218 }
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/AxisPointer.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +import java.util.List;
  4 +
  5 +/**
  6 + * Created by Administrator on 2016/7/1 0001.
  7 + */
  8 +public class AxisPointer {
  9 +
  10 + private String type;
  11 + private List<Object> boundaryGap;
  12 + private List<Object> data;
  13 +
  14 + public List<Object> getData() {
  15 + return data;
  16 + }
  17 +
  18 + public void setData(List<Object> data) {
  19 + this.data = data;
  20 + }
  21 +
  22 + public List<Object> getBoundaryGap() {
  23 + return boundaryGap;
  24 + }
  25 +
  26 + public void setBoundaryGap(List<Object> boundaryGap) {
  27 + this.boundaryGap = boundaryGap;
  28 + }
  29 +
  30 + public String getType() {
  31 + return type;
  32 + }
  33 +
  34 + public void setType(String type) {
  35 + this.type = type;
  36 + }
  37 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Data.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class Data {
  7 +
  8 + private String name;
  9 + private Object value;
  10 + private ItemStyle itemStyle;
  11 +
  12 + public String getName() {
  13 + return name;
  14 + }
  15 +
  16 + public void setName(String name) {
  17 + this.name = name;
  18 + }
  19 +
  20 + public Object getValue() {
  21 + return value;
  22 + }
  23 +
  24 + public void setValue(Object value) {
  25 + this.value = value;
  26 + }
  27 +
  28 + public ItemStyle getItemStyle() {
  29 + return itemStyle;
  30 + }
  31 +
  32 + public void setItemStyle(ItemStyle itemStyle) {
  33 + this.itemStyle = itemStyle;
  34 + }
  35 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Grid.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class Grid {
  7 +
  8 + private String top;
  9 + private String bottom;
  10 + private String left;
  11 + private String right;
  12 + private Boolean containLabel;
  13 +
  14 + public String getTop() {
  15 + return top;
  16 + }
  17 +
  18 + public void setTop(String top) {
  19 + this.top = top;
  20 + }
  21 +
  22 + public String getBottom() {
  23 + return bottom;
  24 + }
  25 +
  26 + public void setBottom(String bottom) {
  27 + this.bottom = bottom;
  28 + }
  29 +
  30 + public String getLeft() {
  31 + return left;
  32 + }
  33 +
  34 + public void setLeft(String left) {
  35 + this.left = left;
  36 + }
  37 +
  38 + public String getRight() {
  39 + return right;
  40 + }
  41 +
  42 + public void setRight(String right) {
  43 + this.right = right;
  44 + }
  45 +
  46 + public Boolean getContainLabel() {
  47 + return containLabel;
  48 + }
  49 +
  50 + public void setContainLabel(Boolean containLabel) {
  51 + this.containLabel = containLabel;
  52 + }
  53 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/ItemStyle.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class ItemStyle {
  7 +
  8 + private Normal normal;
  9 + private Normal emphasis;
  10 +
  11 + public ItemStyle(Normal normal, Normal emphasis) {
  12 + this.normal = normal;
  13 + this.emphasis = emphasis;
  14 + }
  15 +
  16 + public Normal getNormal() {
  17 + return normal;
  18 + }
  19 +
  20 + public void setNormal(Normal normal) {
  21 + this.normal = normal;
  22 + }
  23 +
  24 + public Normal getEmphasis() {
  25 + return emphasis;
  26 + }
  27 +
  28 + public void setEmphasis(Normal emphasis) {
  29 + this.emphasis = emphasis;
  30 + }
  31 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Label.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class Label {
  7 +
  8 + private Normal normal;
  9 + private Normal emphasis;
  10 +
  11 + public Normal getNormal() {
  12 + return normal;
  13 + }
  14 +
  15 + public void setNormal(Normal normal) {
  16 + this.normal = normal;
  17 + }
  18 +
  19 + public Normal getEmphasis() {
  20 + return emphasis;
  21 + }
  22 +
  23 + public void setEmphasis(Normal emphasis) {
  24 + this.emphasis = emphasis;
  25 + }
  26 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Legend.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +import java.util.List;
  4 +
  5 +/**
  6 + * Created by Administrator on 2016/7/1 0001.
  7 + */
  8 +public class Legend {
  9 +
  10 + private List<Object> data;
  11 + private String orient;
  12 + private String top = "20px";
  13 + private String bottom;
  14 + private String left = "left";
  15 + private String right;
  16 +
  17 + public String getOrient() {
  18 + return orient;
  19 + }
  20 +
  21 + public void setOrient(String orient) {
  22 + this.orient = orient;
  23 + }
  24 +
  25 + public String getTop() {
  26 + return top;
  27 + }
  28 +
  29 + public void setTop(String top) {
  30 + this.top = top;
  31 + }
  32 +
  33 + public String getBottom() {
  34 + return bottom;
  35 + }
  36 +
  37 + public void setBottom(String bottom) {
  38 + this.bottom = bottom;
  39 + }
  40 +
  41 + public String getLeft() {
  42 + return left;
  43 + }
  44 +
  45 + public void setLeft(String left) {
  46 + this.left = left;
  47 + }
  48 +
  49 + public String getRight() {
  50 + return right;
  51 + }
  52 +
  53 + public void setRight(String right) {
  54 + this.right = right;
  55 + }
  56 +
  57 + public List<Object> getData() {
  58 + return data;
  59 + }
  60 +
  61 + public void setData(List<Object> data) {
  62 + this.data = data;
  63 + }
  64 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Normal.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class Normal {
  7 +
  8 + private Boolean show;
  9 + private String color;
  10 +
  11 + public Normal(Boolean show, String color) {
  12 + this.show = show;
  13 + this.color = color;
  14 + }
  15 +
  16 + public Boolean getShow() {
  17 + return show;
  18 + }
  19 +
  20 + public void setShow(Boolean show) {
  21 + this.show = show;
  22 + }
  23 +
  24 + public String getColor() {
  25 + return color;
  26 + }
  27 +
  28 + public void setColor(String color) {
  29 + this.color = color;
  30 + }
  31 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Option.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +import java.util.List;
  4 +
  5 +/**
  6 + * Created by Administrator on 2016/7/1 0001.
  7 + */
  8 +public class Option {
  9 +
  10 + private Title title;
  11 + private Tooltip tooltip;
  12 + private Legend legend;
  13 + private VisualMap visualMap;
  14 + private Tooltip toolbox;
  15 + private List<Object> series;
  16 +
  17 + private Grid grid;
  18 + private AxisPointer xAxis;
  19 +
  20 + public AxisPointer getyAxis() {
  21 + return yAxis;
  22 + }
  23 +
  24 + public void setyAxis(AxisPointer yAxis) {
  25 + this.yAxis = yAxis;
  26 + }
  27 +
  28 + public AxisPointer getxAxis() {
  29 + return xAxis;
  30 + }
  31 +
  32 + public void setxAxis(AxisPointer xAxis) {
  33 + this.xAxis = xAxis;
  34 + }
  35 +
  36 + private AxisPointer yAxis;
  37 +
  38 + public Grid getGrid() {
  39 + return grid;
  40 + }
  41 +
  42 + public void setGrid(Grid grid) {
  43 + this.grid = grid;
  44 + }
  45 +
  46 + public Title getTitle() {
  47 + return title;
  48 + }
  49 +
  50 + public void setTitle(Title title) {
  51 + this.title = title;
  52 + }
  53 +
  54 + public Tooltip getTooltip() {
  55 + return tooltip;
  56 + }
  57 +
  58 + public void setTooltip(Tooltip tooltip) {
  59 + this.tooltip = tooltip;
  60 + }
  61 +
  62 + public Legend getLegend() {
  63 + return legend;
  64 + }
  65 +
  66 + public void setLegend(Legend legend) {
  67 + this.legend = legend;
  68 + }
  69 +
  70 + public VisualMap getVisualMap() {
  71 + return visualMap;
  72 + }
  73 +
  74 + public void setVisualMap(VisualMap visualMap) {
  75 + this.visualMap = visualMap;
  76 + }
  77 +
  78 + public Tooltip getToolbox() {
  79 + return toolbox;
  80 + }
  81 +
  82 + public void setToolbox(Tooltip toolbox) {
  83 + this.toolbox = toolbox;
  84 + }
  85 +
  86 + public List<Object> getSeries() {
  87 + return series;
  88 + }
  89 +
  90 + public void setSeries(List<Object> series) {
  91 + this.series = series;
  92 + }
  93 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Series.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +import java.util.List;
  4 +
  5 +/**
  6 + * Created by Administrator on 2016/7/1 0001.
  7 + */
  8 +public class Series {
  9 +
  10 + private String name;
  11 + private String type;
  12 + private String mapType;
  13 + private Boolean roam;
  14 + private Label label;
  15 + private List<Object> data;
  16 +
  17 + public String getName() {
  18 + return name;
  19 + }
  20 +
  21 + public void setName(String name) {
  22 + this.name = name;
  23 + }
  24 +
  25 + public String getType() {
  26 + return type;
  27 + }
  28 +
  29 + public void setType(String type) {
  30 + this.type = type;
  31 + }
  32 +
  33 + public String getMapType() {
  34 + return mapType;
  35 + }
  36 +
  37 + public void setMapType(String mapType) {
  38 + this.mapType = mapType;
  39 + }
  40 +
  41 + public Boolean getRoam() {
  42 + return roam;
  43 + }
  44 +
  45 + public void setRoam(Boolean roam) {
  46 + this.roam = roam;
  47 + }
  48 +
  49 + public Label getLabel() {
  50 + return label;
  51 + }
  52 +
  53 + public void setLabel(Label label) {
  54 + this.label = label;
  55 + }
  56 +
  57 + public List<Object> getData() {
  58 + return data;
  59 + }
  60 +
  61 + public void setData(List<Object> data) {
  62 + this.data = data;
  63 + }
  64 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Title.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class Title {
  7 +
  8 + private String text;
  9 + private String subtext;
  10 + private String top = "20px";
  11 + private String bottom;
  12 + private String left = "center";
  13 + private String right;
  14 +
  15 + public String getTop() {
  16 + return top;
  17 + }
  18 +
  19 + public void setTop(String top) {
  20 + this.top = top;
  21 + }
  22 +
  23 + public String getBottom() {
  24 + return bottom;
  25 + }
  26 +
  27 + public void setBottom(String bottom) {
  28 + this.bottom = bottom;
  29 + }
  30 +
  31 + public String getLeft() {
  32 + return left;
  33 + }
  34 +
  35 + public void setLeft(String left) {
  36 + this.left = left;
  37 + }
  38 +
  39 + public String getRight() {
  40 + return right;
  41 + }
  42 +
  43 + public void setRight(String right) {
  44 + this.right = right;
  45 + }
  46 +
  47 + public String getText() {
  48 + return text;
  49 + }
  50 +
  51 + public void setText(String text) {
  52 + this.text = text;
  53 + }
  54 +
  55 + public String getSubtext() {
  56 + return subtext;
  57 + }
  58 +
  59 + public void setSubtext(String subtext) {
  60 + this.subtext = subtext;
  61 + }
  62 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/Tooltip.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class Tooltip {
  7 +
  8 + private String trigger;
  9 + private AxisPointer axisPointer;
  10 + private String top;
  11 + private String bottom;
  12 + private String left;
  13 + private String right;
  14 + private Boolean show;
  15 + private String orient;
  16 +
  17 + public String getOrient() {
  18 + return orient;
  19 + }
  20 +
  21 + public void setOrient(String orient) {
  22 + this.orient = orient;
  23 + }
  24 +
  25 + public String getTop() {
  26 + return top;
  27 + }
  28 +
  29 + public void setTop(String top) {
  30 + this.top = top;
  31 + }
  32 +
  33 + public String getBottom() {
  34 + return bottom;
  35 + }
  36 +
  37 + public void setBottom(String bottom) {
  38 + this.bottom = bottom;
  39 + }
  40 +
  41 + public String getLeft() {
  42 + return left;
  43 + }
  44 +
  45 + public void setLeft(String left) {
  46 + this.left = left;
  47 + }
  48 +
  49 + public String getRight() {
  50 + return right;
  51 + }
  52 +
  53 + public void setRight(String right) {
  54 + this.right = right;
  55 + }
  56 +
  57 + public Boolean getShow() {
  58 + return show;
  59 + }
  60 +
  61 + public void setShow(Boolean show) {
  62 + this.show = show;
  63 + }
  64 +
  65 + public String getTrigger() {
  66 + return trigger;
  67 + }
  68 +
  69 + public void setTrigger(String trigger) {
  70 + this.trigger = trigger;
  71 + }
  72 +
  73 + public AxisPointer getAxisPointer() {
  74 + return axisPointer;
  75 + }
  76 +
  77 + public void setAxisPointer(AxisPointer axisPointer) {
  78 + this.axisPointer = axisPointer;
  79 + }
  80 +}
platform-reportData/src/main/java/com/lymsh/platform/reportdata/model/echarts/VisualMap.java View file @ 8649408
  1 +package com.lymsh.platform.reportdata.model.echarts;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/7/1 0001.
  5 + */
  6 +public class VisualMap {
  7 +
  8 + private Integer min = 0;
  9 + private Integer max = 2500;
  10 + private String top = "bottom";
  11 + private String bottom;
  12 + private String left = "left";
  13 + private String right;
  14 + private String[] text = {"高","低"};
  15 + private Boolean calculable = false;
  16 + private Boolean show = false;
  17 +
  18 + public Integer getMin() {
  19 + return min;
  20 + }
  21 +
  22 + public void setMin(Integer min) {
  23 + this.min = min;
  24 + }
  25 +
  26 + public Integer getMax() {
  27 + return max;
  28 + }
  29 +
  30 + public void setMax(Integer max) {
  31 + this.max = max;
  32 + }
  33 +
  34 + public String getTop() {
  35 + return top;
  36 + }
  37 +
  38 + public void setTop(String top) {
  39 + this.top = top;
  40 + }
  41 +
  42 + public String getBottom() {
  43 + return bottom;
  44 + }
  45 +
  46 + public void setBottom(String bottom) {
  47 + this.bottom = bottom;
  48 + }
  49 +
  50 + public String getLeft() {
  51 + return left;
  52 + }
  53 +
  54 + public void setLeft(String left) {
  55 + this.left = left;
  56 + }
  57 +
  58 + public String getRight() {
  59 + return right;
  60 + }
  61 +
  62 + public void setRight(String right) {
  63 + this.right = right;
  64 + }
  65 +
  66 + public String[] getText() {
  67 + return text;
  68 + }
  69 +
  70 + public void setText(String[] text) {
  71 + this.text = text;
  72 + }
  73 +
  74 + public Boolean getCalculable() {
  75 + return calculable;
  76 + }
  77 +
  78 + public void setCalculable(Boolean calculable) {
  79 + this.calculable = calculable;
  80 + }
  81 +
  82 + public Boolean getShow() {
  83 + return show;
  84 + }
  85 +
  86 + public void setShow(Boolean show) {
  87 + this.show = show;
  88 + }
  89 +}