Class AbstractTextComponent

java.lang.Object
com.spinyowl.legui.component.Component
com.spinyowl.legui.component.AbstractTextComponent
All Implemented Interfaces:
TextComponent, Serializable
Direct Known Subclasses:
Button, CheckBox, Label, RadioButton, TextAreaField, TextInput, Tooltip

public abstract class AbstractTextComponent extends Component implements TextComponent
See Also:
  • Field Details

  • Constructor Details

    • AbstractTextComponent

      public AbstractTextComponent()
      Default constructor. Used to create component instance without any parameters.

      Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.

    • AbstractTextComponent

      public AbstractTextComponent(float x, float y, float width, float height)
      Constructor with position and size parameters.
      Parameters:
      x - x position position in parent component.
      y - y position position in parent component.
      width - width of component.
      height - height of component.
    • AbstractTextComponent

      public AbstractTextComponent(org.joml.Vector2f position, org.joml.Vector2f size)
      Constructor with position and size parameters.
      Parameters:
      position - position position in parent component.
      size - size of component.
  • Method Details