| | |
| | | |
| | | public Object createInsertVertex(mxGraph graph, JSONObject jsonObject, Integer defX, Integer defY, StatusEnum status) { |
| | | Object parent = graph.getDefaultParent(); |
| | | |
| | | String shapeValue = jsonObject.get("shape").toString(); |
| | | Object graphObject = null; |
| | | switch (shapeValue) { |
| | | case "custom-circle": |
| | | case "custom-circle1": |
| | | String text = (String) JsonUtils2.getJsonValueByPath(jsonObject, "attrs/text/text".split("/")); |
| | | String title = (String) JsonUtils2.getJsonValueByPath(jsonObject, "attrs/title/text".split("/")); |
| | | //String title = (String) JsonUtils2.getJsonValueByPath(jsonObject, "attrs/title/text".split("/")); |
| | | String idValue = jsonObject.get("id").toString(); |
| | | |
| | | Integer x = (Integer) JsonUtils2.getJsonValueByPath(jsonObject, "position/x".split("/")) + defX; |