public void offset ( int dx , int dy ) { left += dx ; top += dy ; right += dx ; bottom += dy ; }
Offset the rectangle by adding dx to its left and right coordinates and adding dy to its top and bottom coordinates .