| java.lang.Object org.apache.harmony.x.swing.ComponentDragImplHelper
ComponentDragImplHelper | public class ComponentDragImplHelper implements SwingConstants(Code) | | This class helps to implement dragging/resising of components
with a mouse.
For example, it is used in BasicInternalFrameUI.BorderListener .
|
Field Summary | |
final public static int | FRAME_CORNER_SIZE This field is used in resizing. | final public static int | RESIZE_NONE This value shows that there is no resizement, only dragging. |
FRAME_CORNER_SIZE | final public static int FRAME_CORNER_SIZE(Code) | | This field is used in resizing. It shows which area is considered
as a corner and resizement is made in diagonal direction.
|
RESIZE_NONE | final public static int RESIZE_NONE(Code) | | This value shows that there is no resizement, only dragging.
|
getResizeDirection | final public static int getResizeDirection(MouseEvent e, JComponent comp)(Code) | | Parameters: e - the mouse event Parameters: comp - the resizing component the direction of the resizement. |
getUpdatedCursor | final public static Cursor getUpdatedCursor(MouseEvent e, JComponent comp)(Code) | | This function is used to determine the cursor that shows the resize
direction on the border of the component.
Parameters: e - the mouse event Parameters: comp - the component |
isDragging | final public boolean isDragging()(Code) | | Shows if the component is currently being dragged/resized.
true if the component is being dragged/resized;otherwise false is returned; |
mouseDragged | final public Rectangle mouseDragged(MouseEvent e)(Code) | | This function is called when the mouse is dragged during
resizing/moving operation. It receives the MOUSE_DRAGGED
event and returns the new bounds of the component being dragged/resized.
Parameters: e - the MOUSE_DRAGGED event the new bounds of the component being dragged/resized |
|
|