[英]How to allow/forbid the user to pull new edges in mxGraph/JGraphX?
I cant't find an option on the object of mxGraph
to set this.我无法在
mxGraph
的对象上找到一个选项来设置它。
So how could I go about this?那么我该怎么做呢?
Ok I found a solution.好的,我找到了解决方案。 You have to configurate the mxGraphComponent like this:
您必须像这样配置 mxGraphComponent:
graphComponent.setConnectable(false);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.