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
    • Method Detail

      • dataToScreenLocation MODIFIED

        param 1 renamed: index → dataRow; param 2 renamed: offset → dataColumn
        -docking.widgets.fieldpanel.support.RowColLocation dataToScreenLocation(int index, int offset)
        +docking.widgets.fieldpanel.support.RowColLocation dataToScreenLocation(int dataRow, int dataColumn)
        public RowColLocation dataToScreenLocation​(int dataRow,
                                                   int dataColumn)
        Description copied from interface: TextField
        Translates a data row and column into a screen row and column.
        Specified by:
        dataToScreenLocation in interface TextField
        Overrides:
        dataToScreenLocation in class VerticalLayoutTextField
        Parameters:
        dataRow - row as defined by the factory
        dataColumn - the character offset into the dataRow
        Returns:
        row and column in the screen coordinate system; a DefaultRowColLocation if this field does not contain the given column