📄 flowedgehandle.java
字号:
/**
*
*/
package flow.graph.gui.graph;
import java.awt.event.MouseEvent;
import org.jgraph.graph.EdgeView;
import org.jgraph.graph.GraphContext;
/**
* @author Administrator
*
*/
public class FlowEdgeHandle extends EdgeView.EdgeHandle{
/**
* @param edge
* @param ctx
*/
public FlowEdgeHandle(EdgeView edge, GraphContext ctx) {
super(edge, ctx);
}
// Override Superclass Method
public boolean isAddPointEvent(MouseEvent event) {
// Points are Added using Shift-Click
return event.isShiftDown();
}
// Override Superclass Method
public boolean isRemovePointEvent(MouseEvent event) {
// Points are Removed using Shift-Click
return event.isShiftDown();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -