code: protected TextLayout getTextLayout()
      {
          if (refreshTextLayout)
          {
              refreshTextLayout = false;
              layout = new TextLayout(getText(), getFont(), new FontRenderContext(transform, true, false));
          }
  
          return layout;
      }
docs: Gets the text layout.
  
  @return the text layout