void setHorizontalAlignment(int alignment) //Sets the alignment of the label's contents along the X axis. void setVerticalAlignment(int alignment) //Sets the alignment of the label's contents along the Y axis.