|  |  | 
 |  |  |     private void calcLayoutSize(RbdTreeNode root) { | 
 |  |  |         double childrenWidth = 0.0; | 
 |  |  |         double childrenHeight = 0.0; | 
 |  |  |         double lineWidth = 80; | 
 |  |  |         double lineHeight = 80; | 
 |  |  |         double lineWidth = 120; | 
 |  |  |         double lineHeight = 90; | 
 |  |  |         if (!"vnode".equals(root.getNodeType())) { | 
 |  |  |             root.setBlockWidth(root.getObjectWidth() + lineWidth); | 
 |  |  |             root.setBlockHeight(root.getObjectHeight() + lineHeight); | 
 |  |  | 
 |  |  |                     String productType = JsonUtils2.getJsonValueByPath(jsonObject, "data/productType".split("/")).toString(); | 
 |  |  |                     productImg.setProductType(productType); | 
 |  |  |                     if ("product_sb".equals(productType)) { | 
 |  |  |                         jsonValue = JsonUtils2.getJsonValueByPath(jsonObject, "data/deviceNo".split("/")); | 
 |  |  |                         if (jsonValue != null && StringUtils.isNotBlank(jsonValue.toString())) { | 
 |  |  |                             modelNode.setDeviceNo(Integer.valueOf(jsonValue.toString())); | 
 |  |  |                         } else { | 
 |  |  |                             modelNode.setDeviceNo(0); | 
 |  |  |                         } | 
 |  |  |                         jsonValue = JsonUtils2.getJsonValueByPath(jsonObject, "data/reliabDistribType".split("/")); | 
 |  |  |                         if (jsonValue != null && StringUtils.isNotBlank(jsonValue.toString())) { | 
 |  |  |                             productImg.setReliabDistribType(Integer.valueOf(jsonValue.toString())); | 
 |  |  | 
 |  |  |                 treeNode.setNodeType(node.getNodeType()); | 
 |  |  |                 treeNode.setPicId(node.getPicId()); | 
 |  |  |                 treeNode.setDataId(node.getDataId()); | 
 |  |  |                 treeNode.setDeviceNo(node.getDeviceNo()); | 
 |  |  |                 treeNode.setObjectWidth(node.getWidth()); | 
 |  |  |                 treeNode.setObjectHeight(node.getHeight()); | 
 |  |  |                 parent.getChildren().add(treeNode); | 
 |  |  | 
 |  |  |             node.setId(root.getId()); | 
 |  |  |             node.setPicId(root.getPicId()); | 
 |  |  |             node.setDataId(root.getDataId()); | 
 |  |  |             node.setDeviceNo(root.getDeviceNo()); | 
 |  |  |             node.setNodeType(root.getNodeType()); | 
 |  |  |             node.setName(root.getName()); | 
 |  |  |             node.setVoteNum(root.getVoteNum()); |