public class Tile extends StackArranger
A higher-level aggregate structure that arranges other StackArrangers in a tabular pattern.

The table is defined by a number of rows and columns.

Author:
Owen Feehan
  • Constructor Details

    • Tile

      public Tile(int numberColumns, int numberRows)
      Creates for a particular number of columns and rows.
      Parameters:
      numberColumns - the number of columns to use in the table produced when tiling.
      numberRows - the number of rows to use in the table produced when tiling.
    • Tile

      public Tile()
  • Method Details

    • arrangeStacks

      public StackArrangement arrangeStacks(Iterator<Extent> extents, OperationContext context) throws ArrangeStackException
      Description copied from class: StackArranger
      Arranges stacks to that they fit together in a single raster.
      Specified by:
      arrangeStacks in class StackArranger
      Parameters:
      extents - the size of each respective stack for the arrangement.
      context - objects for the operation.
      Returns:
      bounding-boxes for each respective RGBStack in the unified plane.
      Throws:
      ArrangeStackException - if a bounding-box cannot be determined for any stack.
    • getNumberColumns

      public int getNumberColumns()
      The number of columns to use in the table produced when tiling.
    • setNumberColumns

      public void setNumberColumns(int numberColumns)
      The number of columns to use in the table produced when tiling.
    • getNumberRows

      public int getNumberRows()
      The number of rows to use in the table produced when tiling.
    • setNumberRows

      public void setNumberRows(int numberRows)
      The number of rows to use in the table produced when tiling.
    • getCells

      public List<Cell> getCells()
      Defines the corresponding StackArranger for an individual cell in table.

      Each cell should be specified zero or one times, via a reference to the corresponding row and column.

      If a particular cell is unspecified, cellDefault is used.

    • setCells

      public void setCells(List<Cell> cells)
      Defines the corresponding StackArranger for an individual cell in table.

      Each cell should be specified zero or one times, via a reference to the corresponding row and column.

      If a particular cell is unspecified, cellDefault is used.

    • getCellDefault

      public StackArranger getCellDefault()
      Used to define an individual cell, when no specific entry is found in cells for a particular cell.
    • setCellDefault

      public void setCellDefault(StackArranger cellDefault)
      Used to define an individual cell, when no specific entry is found in cells for a particular cell.
    • getAligner

      public BoxAligner getAligner()
      How to align a smaller image inside a larger cell.
    • setAligner

      public void setAligner(BoxAligner aligner)
      How to align a smaller image inside a larger cell.