SystemInformation.getDragSize

Overview | Methods | This Package | All Packages

SystemInformation.getDragSize

Retrieves the width and height, in pixels, of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins.

Syntax

public static final Point getDragSize()

Return Value

Returns a Point object that represents the rectangle that a drag must extend outside of to be considered a drag.

Remarks

Use the getDragSize method to determine the rectangle that Windows uses as a boundary before starting a drag operation. This boundary lets the user click and release the mouse button easily without unintentionally starting a drag operation.