Class BoxLayoutAlgorithm

All Implemented Interfaces:
LayoutAlgorithm

public class BoxLayoutAlgorithm extends GridLayoutAlgorithm
Layout algorithm that places all elements in one column or one row, depending on set orientation.
Since:
2.0
  • Constructor Details

    • BoxLayoutAlgorithm

      public BoxLayoutAlgorithm()
    • BoxLayoutAlgorithm

      public BoxLayoutAlgorithm(int orientation)
  • Method Details

    • getOrientation

      public int getOrientation()
    • setOrientation

      public void setOrientation(int orientation)
    • calculateNumberOfRowsAndCols

      protected int[] calculateNumberOfRowsAndCols(int numChildren, double boundX, double boundY, double boundWidth, double boundHeight)
      Description copied from class: GridLayoutAlgorithm
      Calculates and returns an array containing the number of columns, followed by the number of rows
      Overrides:
      calculateNumberOfRowsAndCols in class GridLayoutAlgorithm