Class WrappingVerticalLayoutTextField

    • Constructor Detail

      • WrappingVerticalLayoutTextField

        public WrappingVerticalLayoutTextField​(FieldElement textElement,
                                               int startX,
                                               int width,
                                               int maxLines,
                                               HighlightFactory 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,
                                               HighlightFactory 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