?? dragwindowevent.java
字號:
package WindowType;
import java.util.EventObject;
/**
* Class extends EventObject to deal with the dragEvent
* Members delX ,delY to save the location delta with their getters and setters
* @author DuXiaojing
*
*/
public class DragWindowEvent extends EventObject{
private int delX;
private int delY;
public int getDelX() {
return delX;
}
public void setDelX(int delX) {
this.delX = delX;
}
public int getDelY() {
return delY;
}
public void setDelY(int delY) {
this.delY = delY;
}
/**
* Constructer to call the super method
* @param source Object object
*/
public DragWindowEvent(Object source) {
super(source);
// TODO Auto-generated constructor stub
}
/**
* Constructer to call the super method
* @param source Object object
* @param delX location of X sent from the outer
* @param delY location of Y sent from the outer
*/
public DragWindowEvent(Object source,int delX, int delY) {
super(source);
this.delX = delX;
this.delY = delY;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -