connectionmodel.java
来自「eclipse开发笔记」· Java 代码 · 共 35 行
JAVA
35 行
package hellogef.model;
public class ConnectionModel extends AbstractModel {
private NodeModel source;
private NodeModel target;
public ConnectionModel(NodeModel source, NodeModel target) {
super();
this.source = source;
this.target = target;
source.addOutput(this);
target.addInput(this);
this.name = "连线";
}
public void setSource(NodeModel source) {
this.source = source;
}
public void setTarget(NodeModel target) {
this.target = target;
}
public NodeModel getTarget() {
return this.target;
}
public NodeModel getSource() {
return this.source;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?