Class Gap


  • public class Gap
    extends Object
    GraphUI CSS property Gap, scaled spacing between (grid) cells not belonging to the cell element.

    The CSS gap property defines the size of the gap between the rows and columns in a grid layout.

    • Field Detail

      • None

        public static final Gap None
        Zero gap constant.
      • row

        public final float row
        Scaled row gap value, vertical spacing.
      • column

        public final float column
        Scaled column gap value, horizontal spacing.
    • Constructor Detail

      • Gap

        public Gap​(float row,
                   float column)
        Ctor
        Parameters:
        row - scaled vertical row value
        column - scaled horizontal column value
      • Gap

        public Gap​(float rc)
        Ctor
        Parameters:
        rc - scaled vertical row and horizontal column value
    • Method Detail

      • width

        public float width()
        Return scaled width of horizontal value, i.e. 1 * column.
      • height

        public float height()
        Return scaled height of vertical value, i.e. 1 * row.
      • zeroSumWidth

        public boolean zeroSumWidth()
      • zeroSumHeight

        public boolean zeroSumHeight()
      • zeroSumSize

        public boolean zeroSumSize()