| | |
| | | private void calcLayoutSize(RbdTreeNode root) { |
| | | double childrenWidth = 0.0; |
| | | double childrenHeight = 0.0; |
| | | double lineWidth = 80; |
| | | double lineWidth = 120; |
| | | double lineHeight = 80; |
| | | if (!"vnode".equals(root.getNodeType())) { |
| | | root.setBlockWidth(root.getObjectWidth() + lineWidth); |
| | |
| | | if ("product_sb".equals(productType)) { |
| | | jsonValue = JsonUtils2.getJsonValueByPath(jsonObject, "data/deviceNo".split("/")); |
| | | if (jsonValue != null && StringUtils.isNotBlank(jsonValue.toString())) { |
| | | modelNode.setVoteNum(Integer.valueOf(jsonValue.toString())); |
| | | modelNode.setDeviceNo(Integer.valueOf(jsonValue.toString())); |
| | | } else { |
| | | modelNode.setDeviceNo(0); |
| | | } |