Interface IPLHasVerticalAlignment<IMPLTYPE extends IPLHasVerticalAlignment<IMPLTYPE>>

    • Field Detail

      • DEFAULT_VERT_ALIGNMENT

        static final EVertAlignment DEFAULT_VERT_ALIGNMENT
    • Method Detail

      • getVertAlign

        @Nonnull
        EVertAlignment getVertAlign()
        Returns:
        The vertical alignment of this element. By default it is EVertAlignment.DEFAULT. Never null. The vertical alignment may only be applied to contained children!
      • setVertAlign

        @Nonnull
        IMPLTYPE setVertAlign​(@Nonnull
                              EVertAlignment eVertAlign)
        Set the vertical alignment of this element. The vertical alignment may only be applied to contained children!
        Parameters:
        eVertAlign - The new vertical alignment. May not be null.
        Returns:
        this
      • getIndentY

        @Nonnegative
        default float getIndentY​(float fAvailableHeight)
        Get the indentation for a certain vertical alignment. This method uses the prepared height as the basis for alignment.
        Parameters:
        fAvailableHeight - The available height of the surrounding element.
        Returns:
        The indentation offset. Always ≥ 0.
      • getIndentY

        @Nonnegative
        default float getIndentY​(float fAvailableHeight,
                                 float fElementHeight)
        Get the indentation for a certain vertical alignment. This method uses the provided element height as the basis for alignment.
        Parameters:
        fAvailableHeight - The available height of the surrounding element. This is usually larger than fElementHeight.
        fElementHeight - The height of the element to align.
        Returns:
        The indentation offset. Always ≥ 0.