Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JGraphX でのみエッジ選択を無効にしようとしています。私が電話したら
mxgraph.setCellsSelectable(false);
これにより、エッジだけでなく、すべてのセルの選択が無効になります。()のようなものはありsetEdgesSelectableますか?
setEdgesSelectable
オーバーライド:
public boolean isCellsSelectable()
mxGraph サブクラスで、そのサブクラスを使用します。デフォルトでは、 を返しますmxgraph.cellsSelectable。次のようなものが必要です(まったくテストされていません):
mxgraph.cellsSelectable
public boolean isCellsSelectable() { if (model.isEdge()) { return false; } return cellsSelectable; }