You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
861 B
32 lines
861 B
package com.fr.design.designer.beans.location; |
|
|
|
import java.awt.Cursor; |
|
import java.awt.Rectangle; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
public class LeftBottom extends AccessDirection { |
|
|
|
public LeftBottom() { |
|
} |
|
|
|
@Override |
|
public Rectangle getDraggedBounds(int dx, int dy, Rectangle current_bounds, FormDesigner designer, |
|
Rectangle oldbounds) { |
|
int[] xy = sorption(oldbounds.x + dx, oldbounds.y + dy + oldbounds.height, current_bounds, designer); |
|
current_bounds.x = xy[0]; |
|
current_bounds.width = oldbounds.width - current_bounds.x + oldbounds.x; |
|
current_bounds.height = xy[1] - oldbounds.y; |
|
return current_bounds; |
|
} |
|
|
|
@Override |
|
public int getCursor() { |
|
return Cursor.SW_RESIZE_CURSOR; |
|
} |
|
|
|
@Override |
|
public int getActual() { |
|
return Direction.LEFT_BOTTOM; |
|
} |
|
} |