Interface ConstantHeight

All Superinterfaces:
HeightProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface ConstantHeight extends HeightProvider
A height provider which always resolves to a single fixed anchor.
Since:
3.0.0
See Also:
  • Field Details

    • ZERO

      @AsOf("3.0.0") static final ConstantHeight ZERO
      A constant height provider which always resolves to 0.
  • Method Details

    • value

      @AsOf("3.0.0") VerticalAnchor value()
      The vertical anchor used as the constant height.
      Returns:
      the constant anchor
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ConstantHeight of(VerticalAnchor value)
      Creates a new constant height provider.
      Parameters:
      value - the vertical anchor to use as the constant height
      Returns:
      the constant height provider
      Since:
      3.0.0