Class WrappingVerticalLayoutTextField

java.lang.Object
docking.widgets.fieldpanel.field.VerticalLayoutTextField
docking.widgets.fieldpanel.field.WrappingVerticalLayoutTextField
All Implemented Interfaces:
Field, TextField
Direct Known Subclasses:
ClangTextField

public class WrappingVerticalLayoutTextField extends VerticalLayoutTextField
A text field meant to take a string of text and wrap as needed.
  • Constructor Details

    • WrappingVerticalLayoutTextField

      public WrappingVerticalLayoutTextField(FieldElement textElement, int startX, int width, int maxLines, FieldHighlightFactory hlFactory)
      This constructor will create a text field from an single AttributedString. The string will be word wrapped.
      Parameters:
      textElement - the element to display
      startX - the x position to draw the string
      width - the max width allocated to this field
      maxLines - the max number of lines to display
      hlFactory - the highlight factory
    • WrappingVerticalLayoutTextField

      public WrappingVerticalLayoutTextField(FieldElement textElement, int startX, int width, int maxLines, FieldHighlightFactory hlFactory, boolean breakOnWhiteSpace)
      This constructor will create a text field from an single AttributedString. The string will be word wrapped.
      Parameters:
      textElement - is the element to display
      startX - is the position to draw the string
      width - is the max width allocated to this field
      maxLines - is the max number of lines to display
      hlFactory - is the highlight factory
      breakOnWhiteSpace - is true if wrapping should break on word boundaries
  • Method Details