| | |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("cells", rbdJsonArray); |
| | | modelRbd.setContent(jsonObject.toString()); |
| | | modelRbdDao.updateById(modelRbd); |
| | | // modelRbdDao.updateById(modelRbd); |
| | | |
| | | return result; |
| | | } |
| | |
| | | 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); |