Interface Flexible

All Known Implementing Classes:
Columns, Glue, Leader

public interface Flexible
Interface for elements that can stretch or shrink.
  • Method Summary

    Modifier and Type
    Method
    Description
    fixed(long newSize)
    Fix the element to the specified size.
    How much this element can shrink.
    long
    Get the size of this element in the dimension of its flexibility.
    How much this element can stretch.
  • Method Details

    • getSize

      long getSize()
      Get the size of this element in the dimension of its flexibility.
    • getStretch

      Flexibility getStretch()
      How much this element can stretch.
    • getShrink

      Flexibility getShrink()
      How much this element can shrink.
    • fixed

      Element fixed(long newSize)
      Fix the element to the specified size.