Class Grid.CssGridCell

  • Enclosing class:
    Grid

    private static class Grid.CssGridCell
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int offsetX  
      (package private) int offsetY  
      (package private) int spanX  
      (package private) int spanY  
      (package private) int startX  
      (package private) int startY  
      (package private) IRenderer value  
    • Constructor Summary

      Constructors 
      Constructor Description
      CssGridCell​(IRenderer value, int templateSizeX, int templateSizeY)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static int[] initAxisPlacement​(java.lang.Integer startProperty, java.lang.Integer endProperty, java.lang.Integer spanProperty, int templateSize)
      Init axis placement values if start > end values are swapped
      • Methods inherited from class java.lang.Object

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

      • startX

        int startX
      • spanX

        int spanX
      • offsetX

        int offsetX
      • startY

        int startY
      • spanY

        int spanY
      • offsetY

        int offsetY
    • Constructor Detail

      • CssGridCell

        CssGridCell​(IRenderer value,
                    int templateSizeX,
                    int templateSizeY)
    • Method Detail

      • initAxisPlacement

        private static int[] initAxisPlacement​(java.lang.Integer startProperty,
                                               java.lang.Integer endProperty,
                                               java.lang.Integer spanProperty,
                                               int templateSize)
        Init axis placement values if start > end values are swapped
        Parameters:
        startProperty - x/y pos of cell on a grid
        endProperty - x/y + width/height pos of cell on a grid
        spanProperty - vertical or horizontal span of the cell on a grid
        Returns:
        array, where first value is column/row start, second is column/row span and third is an offset to the opposite direction of current axis where cell should be placed.