限定符和类型 | 字段和说明 |
---|---|
static RootResizeDirection |
BOTTOM_RESIZE |
static RootResizeDirection |
RIGHT_BOTTOM_RESIZE |
static RootResizeDirection |
RIGHT_RESIZE |
ALL, BOTTOM, INNER, LEFT, LEFT_BOTTOM, LEFT_TOP, OUTER, RIGHT, RIGHT_BOTTOM, RIGHT_TOP, TOP, TOP_BOTTOM_LEFT_RIGHT
限定符和类型 | 方法和说明 |
---|---|
void |
backupBounds(FormDesigner designer)
拖拽前先备份原始位置,拖拽过程中用于比较位移跟原始位置从而确定新位置大小
|
void |
drag(int dx,
int dy,
FormDesigner designer)
拖拽组件
|
int |
getActual()
Direction的位置标示,top = 1,bottom = 2等
|
protected abstract java.awt.Cursor |
getCursor() |
protected abstract void |
resizeRootBounds(java.awt.Rectangle rec,
int dx,
int dy) |
void |
updateCursor(FormDesigner formEditor)
更新鼠标样式
|
public static RootResizeDirection BOTTOM_RESIZE
public static RootResizeDirection RIGHT_RESIZE
public static RootResizeDirection RIGHT_BOTTOM_RESIZE
public void drag(int dx, int dy, FormDesigner designer)
Direction
protected abstract void resizeRootBounds(java.awt.Rectangle rec, int dx, int dy)
protected abstract java.awt.Cursor getCursor()
public int getActual()
Direction
public void updateCursor(FormDesigner formEditor)
Direction
updateCursor
在接口中 Direction
formEditor
- : 设计器public void backupBounds(FormDesigner designer)
Direction
backupBounds
在接口中 Direction
designer
- 设计器