no message

This commit is contained in:
2024-10-17 20:09:01 +03:00
parent 66fa638ec4
commit d027036a99
6 changed files with 19 additions and 67 deletions

View File

@@ -43,12 +43,12 @@ public class SaveGraph extends Pass<File> {
if (target.exists() && !target.delete())
throw new PassException("Не удается удалить предыдущий файл " + Utils_.Brackets(target.getAbsolutePath()));
//-
mxGraph graph = graphForm.control.getGraph();
mxGraph graph = graphForm.getControl().getGraph();
BufferedImage image = mxCellRenderer.createBufferedImage(graph,
null, 1, Color.WHITE,
graphForm.control.isAntiAlias(),
graphForm.getControl().isAntiAlias(),
null,
graphForm.control.getCanvas());
graphForm.getControl().getCanvas());
// Creates the URL-encoded XML data
mxCodec codec = new mxCodec();
String xml = URLEncoder.encode(mxXmlUtils.getXml(codec.encode(graph.getModel())), "UTF-8");