Scratch for Java

TextAlign

The TextAlign class provides constants for text alignment options. These constants can be used to set the alignment of text in a graphical application.

Available alignment options:

  • [DEFAULT](DEFAULT) - Default alignment, represented by -1.
  • [CENTER](CENTER) - Center alignment, uses PApplet.CENTER.
  • [RIGHT](RIGHT) - Right alignment, uses PApplet.RIGHT.
  • [LEFT](LEFT) - Left alignment, uses PApplet.LEFT.

Static Fields

Name Type Description
DEFAULT int
CENTER int
RIGHT int
LEFT int
TextAlign