Microsoft SDK for Java

setOffset

The setOffset method of the DragProxy Class contains the following signatures:

setOffset(Point offset)
setOffset(int xOffset, int yOffset)

setOffset(Point offset)

Sets the x offset and y offset of the DragProxy object based on a specified Point object.

Syntax

public void setOffset(Point offset);

Parameters

offset The Point object that represents an x offset and y offset.

setOffset(int xOffset, int yOffset)

Sets the x offset and y offset of the DragProxy object.

Syntax

public void setOffset(int xOffset, int yOffset);

Parameters

xOffset The new value for the x offset.
yOffset The new value for the y offset.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.