Matrix.translate

void translate(double tx, double ty)

Changes the transformation represented by matrix to be the transformation given by first translating by (tx, ty) then applying the original transformation.

Parameters

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