## Uses of Class
javafx.scene.text.TextAlignment

- Packages that use TextAlignment
  Package | Description
  --- | ---
  javafx.scene.canvas | Provides the set of classes for canvas, an immediate mode style of rendering API.
  javafx.scene.control | The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts.
  javafx.scene.text | Provides the set of classes for fonts and renderable Text Node.

- - ### Uses of TextAlignment in javafx.scene.canvas

    Methods in javafx.scene.canvas that return TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `TextAlignment` | GraphicsContext.`getTextAlign()` Gets the current `TextAlignment`.

    Methods in javafx.scene.canvas with parameters of type TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `void` | GraphicsContext.`setTextAlign(TextAlignment align)` Defines horizontal text alignment, relative to the text `x` origin.

  - ### Uses of TextAlignment in javafx.scene.control

    Methods in javafx.scene.control that return TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `TextAlignment` | Labeled.`getTextAlignment()` Gets the value of the property textAlignment.
    `TextAlignment` | Tooltip.`getTextAlignment()` Gets the value of the property textAlignment.

    Methods in javafx.scene.control that return types with arguments of type TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `ObjectProperty<TextAlignment>` | Labeled.`textAlignmentProperty()` Specifies the behavior for lines of text when text is multiline Unlike `Labeled.contentDisplayProperty()` which affects the graphic and text, this setting only affects multiple lines of text relative to the text bounds.
    `ObjectProperty<TextAlignment>` | Tooltip.`textAlignmentProperty()` Specifies the behavior for lines of text when text is multiline.

    Methods in javafx.scene.control with parameters of type TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `void` | Labeled.`setTextAlignment(TextAlignment value)` Sets the value of the property textAlignment.
    `void` | Tooltip.`setTextAlignment(TextAlignment value)` Sets the value of the property textAlignment.

  - ### Uses of TextAlignment in javafx.scene.text

    Methods in javafx.scene.text that return TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `TextAlignment` | Text.`getTextAlignment()` Gets the value of the property textAlignment.
    `TextAlignment` | TextFlow.`getTextAlignment()` Gets the value of the property textAlignment.
    `static TextAlignment` | TextAlignment.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static TextAlignment[]` | TextAlignment.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Methods in javafx.scene.text that return types with arguments of type TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `ObjectProperty<TextAlignment>` | Text.`textAlignmentProperty()` Defines horizontal text alignment in the bounding box.
    `ObjectProperty<TextAlignment>` | TextFlow.`textAlignmentProperty()` Defines horizontal text alignment.

    Methods in javafx.scene.text with parameters of type TextAlignment
    Modifier and Type | Method and Description
    --- | ---
    `void` | Text.`setTextAlignment(TextAlignment value)` Sets the value of the property textAlignment.
    `void` | TextFlow.`setTextAlignment(TextAlignment value)` Sets the value of the property textAlignment.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.