Class Grid.CellPlacementHelper

  • Enclosing class:
    Grid

    private static class Grid.CellPlacementHelper
    extends java.lang.Object
    This class is used to place cells on grid.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Grid grid  
      private GridView view  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void fit​(GridCell cell)
      Place cell on grid and resize grid if needed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • grid

        private final Grid grid
    • Constructor Detail

      • CellPlacementHelper

        CellPlacementHelper​(Grid grid,
                            GridFlow flow)
    • Method Detail

      • fit

        void fit​(GridCell cell)
        Place cell on grid and resize grid if needed.
        Parameters:
        cell - cell to place on a grid.