Class Label

All Implemented Interfaces:
TextComponent, Serializable

public class Label extends AbstractTextComponent
Class represent single line non-editable text component.
See Also:
  • Field Details

  • Constructor Details

    • Label

      public Label()
      Default constructor. Creates label with 'Label' text.
    • Label

      public Label(float x, float y, float width, float height)
      Creates label with specified size and on specified position.
      Parameters:
      x - x position.
      y - y position.
      width - label width.
      height - label height.
    • Label

      public Label(org.joml.Vector2f position, org.joml.Vector2f size)
      Creates label with specified size and on specified position.
      Parameters:
      position - label position.
      size - label size.
    • Label

      public Label(String text)
      Creates label with specified text.
      Parameters:
      text - text to set.
    • Label

      public Label(String text, float x, float y, float width, float height)
      Creates label with specified text, size and on specified position.
      Parameters:
      text - text to set.
      x - x position.
      y - y position.
      width - label width.
      height - label height.
    • Label

      public Label(String text, org.joml.Vector2f position, org.joml.Vector2f size)
      Creates label with specified text, size and on specified position.
      Parameters:
      text - text to set.
      position - label position.
      size - label size.
  • Method Details