📄 changeconnectionendhandle.java
字号:
/*
* @(#)ChangeConnectionEndHandle.java 5.2
*
*/
package CH.ifa.draw.standard;
import java.awt.Point;
import CH.ifa.draw.framework.*;
/**
* A handle to reconnect the end point of
* a connection to another figure.
*/
public class ChangeConnectionEndHandle extends ChangeConnectionHandle {
/**
* Constructs the connection handle.
*/
public ChangeConnectionEndHandle(Figure owner) {
super(owner);
}
/**
* Gets the end figure of a connection.
*/
protected Connector target() {
return fConnection.end();
}
/**
* Disconnects the end figure.
*/
protected void disconnect() {
fConnection.disconnectEnd();
}
/**
* Sets the end of the connection.
*/
protected void connect(Connector c) {
fConnection.connectEnd(c);
}
/**
* Sets the end point of the connection.
*/
protected void setPoint(int x, int y) {
fConnection.endPoint(x, y);
}
/**
* Returns the end point of the connection.
*/
public Point locate() {
return fConnection.endPoint();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -