Class BoundaryPadding


  • public class BoundaryPadding
    extends java.lang.Object
    Extra spacing for boundaries, values can be negative or positive
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int bottom
      Extra space added to the bottom side of the boundary
      (package private) int left
      Extra space added to the left side of the boundary
      int right
      Extra space added to the right side of the boundary
      (package private) int top
      Extra space added to the top side of the boundary
    • Constructor Summary

      Constructors 
      Constructor Description
      BoundaryPadding​(int padding)
      Creates new padding with each side having the same value ("square")
      BoundaryPadding​(int top, int left, int bottom, int right)
      Creates new padding with the specified values, in pixels, for each of the four sides
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • top

        int top
        Extra space added to the top side of the boundary
      • left

        int left
        Extra space added to the left side of the boundary
      • bottom

        int bottom
        Extra space added to the bottom side of the boundary
      • right

        public int right
        Extra space added to the right side of the boundary
    • Constructor Detail

      • BoundaryPadding

        public BoundaryPadding​(int padding)
        Creates new padding with each side having the same value ("square")
        Parameters:
        padding - Value to set each side of padding to
      • BoundaryPadding

        public BoundaryPadding​(int top,
                               int left,
                               int bottom,
                               int right)
        Creates new padding with the specified values, in pixels, for each of the four sides
        Parameters:
        top - Value for top
        left - Value for left
        bottom - Value for bottom
        right - Value for right