You use the setTransform method to attach the affine transform to a Graphics2D graphics context, g:
setTransform
Graphics2D
g
g.setTransform(transform);