Class LightMargins


  • public class LightMargins
    extends Object
    Geometric margins.
    • Field Detail

      • left

        public final int left
        The left margin.
      • top

        public final int top
        The top margin.
      • right

        public final int right
        The right margin.
      • bottom

        public final int bottom
        The bottom margin.
    • Constructor Detail

      • LightMargins

        public LightMargins​(int horizontal,
                            int vertical)
        Instantiates a new light margins.
        Parameters:
        horizontal - the horizontal margin for the left and right side.
        vertical - the vertical margin for the top and bottom side.
      • LightMargins

        public LightMargins​(int left,
                            int top,
                            int right,
                            int bottom)
        Instantiates a new light margins.
        Parameters:
        left - the left margin.
        top - the top margin.
        right - the right margin.
        bottom - the bottom margin.
    • Method Detail

      • getWidth

        public int getWidth()
        Gets the total horizontal margin width.
        Returns:
        the width.
      • getHeight

        public int getHeight()
        Gets the total vertical margin height.
        Returns:
        the height.