0
所以我有一個GraphEditorInputMode
,我用它來設置我的GraphCanvasComponent
輸入模式。我正在努力阻止用戶調整個別節點的大小。yfiles停止用戶能夠調整節點的大小
inputMode = graphView.graphInputMode;
var graphCanvas:GraphCanvasComponent = graphView.graphCanvas;
inputMode.selectableItems = GraphItemTypes.NODE | GraphItemTypes.EDGE;
inputMode.marqueeSelectableItems = GraphItemTypes.NODE | GraphItemTypes.EDGE;
inputMode.nodeCreator = graphView.createNode;
inputMode.createEdgeInputMode = new CustomCreateEdgeInputMode(graphView.graphDocument.graph);
inputMode.createEdgeInputMode.connectToCandidatesOnly = true;
inputMode.createEdgeInputMode.showPortCandidates = true;
inputMode.createEdgeInputMode.selfloopCreationAllowed = false;
inputMode.nodeCreationAllowed = false;
inputMode.moveLabelModeEnabled = false;
inputMode.labelEditingAllowed = true;
inputMode.textEditorModeEnabled = true;
inputMode.createEdgeModeEnabled = true;
graphCanvas.inputModes.addItem(inputMode);
我能找到最接近的是Java文檔(我在AS3寫作,文檔很差)HotSpotMode,但無法弄清楚如何實現自己的HotSpotMode輸入處理。
我會看看這個謝謝你。 –