Matrix.translate

void translate(double tx, double ty)

Applies a translation by tx, ty to the transformation in matrix. The effect of the new transformation is to first translate the coordinates by tx and ty, then apply the original transformation to the coordinates.

Parameters

txamount to translate in the X direction
tyamount to translate in the Y direction