📄 right.java
字号:
/*
* Right.java
*
* Created on August 1, 2007, 11:34 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package dyno.swing.designer.beans.location;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Rectangle;
/**
*
* @author William Chen
*/
public class Right implements Direction {
/** Creates a new instance of Right */
public Right() {
}
public void drag(int dx, int dy, Component comp) {
Rectangle current_bounds = comp.getBounds();
current_bounds.width += dx;
comp.setBounds(current_bounds);
}
public int getCursor() {
return Cursor.E_RESIZE_CURSOR;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -