Add setter for AlignmentX and AlignmentY (and use it).