| | |
| | | |
| | | private Map<String, Object> config; |
| | | |
| | | public Process() { |
| | | uuid = StringHelper.getGuid(); |
| | | name = "color_table"; |
| | | |
| | | config = new HashMap<>(); |
| | | config.put("default", new Default()); |
| | | } |
| | | |
| | | /** |
| | | * 处理过程 |
| | | * |
| | | * @param type 0-默认色板,1-渐变色板 |
| | | * @param levels 层级 |
| | | */ |
| | | public Process(Integer type, List<GradientColorTableEntity> levels) { |
| | | uuid = StringHelper.getGuid(); |
| | | name = "color_table"; |
| | | public Process(Integer type, List<?> levels) { |
| | | this(); |
| | | config.put("type", type); |
| | | config.put("levels", levels); |
| | | } |
| | | |
| | | config = new HashMap<>(); |
| | | config.put("default", new Default()); |
| | | /** |
| | | * 设置颜色表 |
| | | */ |
| | | public void SetColorTable(Integer type, List<?> levels) { |
| | | config.put("type", type); |
| | | config.put("levels", levels); |
| | | } |