Point.setLocation
Class Overview | Class Members |
This Package |
All Packages
public void setLocation( Point p )
Parameters
- p
- a point, the new location for this point.
Description
Sets the location of the point to the specificed location.
This method is included for completeness, to parallel the
setLocation method of Component.
See Also
setLocation, getLocation
public void setLocation( int x,
int y )
Parameters
- x
- the x coordinate of the new location.
- y
- the y coordinate of the new location.
Description
Changes the point to have the specificed location.
This method is included for completeness, to parallel the
setLocation method of Component.
Its behavior is identical with move(int, int).
See Also
setLocation, getLocation, move