| 枚举常量和说明 |
|---|
add |
bottom |
inner |
left |
left_bottom |
left_top |
outer |
right |
right_bottom |
right_top |
top |
ALL, BOTTOM, INNER, LEFT, LEFT_BOTTOM, LEFT_TOP, OUTER, RIGHT, RIGHT_BOTTOM, RIGHT_TOP, TOP, TOP_BOTTOM_LEFT_RIGHT| 限定符和类型 | 方法和说明 |
|---|---|
void |
backupBounds(FormDesigner formEditor)
拖拽前先备份原始位置,拖拽过程中用于比较位移跟原始位置从而确定新位置大小
|
void |
drag(int dx,
int dy,
FormDesigner desinger)
拖拽组件
|
int |
getActual()
Direction的位置标示,top = 1,bottom = 2等
|
void |
updateCursor(FormDesigner formEditor)
更新鼠标样式
|
static Location |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Location[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Location outer
public static final Location add
public static final Location inner
public static final Location left_top
public static final Location top
public static final Location right_top
public static final Location right
public static final Location right_bottom
public static final Location bottom
public static final Location left_bottom
public static final Location left
public static Location[] values()
for (Location c : Location.values()) System.out.println(c);
public static Location valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public void drag(int dx,
int dy,
FormDesigner desinger)
Directionpublic int getActual()
Directionpublic void updateCursor(FormDesigner formEditor)
DirectionupdateCursor 在接口中 DirectionformEditor - : 设计器public void backupBounds(FormDesigner formEditor)
DirectionbackupBounds 在接口中 DirectionformEditor - 设计器