Package playn.core

Class TextWrap

java.lang.Object
playn.core.TextWrap

public class TextWrap extends Object
Contains the configuration needed when wrapping text.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final float
    An indent applied to the first line of text.
    static final TextWrap
    An instance that indicates that we should only wrap on manual line breaks and not at any specific width.
    final float
    The width at which the text is wrapped.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TextWrap(float width)
    Creates a text wrap config with the specified width and no indent.
    TextWrap(float width, float indent)
    Creates a text wrap config with the specified width and indent.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MANUAL

      public static final TextWrap MANUAL
      An instance that indicates that we should only wrap on manual line breaks and not at any specific width.
    • width

      public final float width
      The width at which the text is wrapped.
    • indent

      public final float indent
      An indent applied to the first line of text.
  • Constructor Details

    • TextWrap

      public TextWrap(float width)
      Creates a text wrap config with the specified width and no indent.
    • TextWrap

      public TextWrap(float width, float indent)
      Creates a text wrap config with the specified width and indent.
  • Method Details