Class Padding


public class Padding extends AnchorBean<Padding>
Padding (whitespace of certain extent) placed around an object in XY direction and in Z direction.

It is valid-state for padding to be 0 in all dimensions (in which case no padding is applied).

Author:
Owen Feehan
  • Constructor Details

    • Padding

      public Padding()
  • Method Details

    • asPoint

      public Point3i asPoint()
      Exposes the padding as a Point3i.
      Returns:
      a newly created Point3i with the padding in each dimension.
    • hasNoPadding

      public boolean hasNoPadding()
      Whether no padding exists.
      Returns:
      true iff the padding in all dimensions is zero.
    • getPaddingXY

      public int getPaddingXY()
      Padding placed on each side of the outputted image (if it's within the image) in XY directions
    • setPaddingXY

      public void setPaddingXY(int paddingXY)
      Padding placed on each side of the outputted image (if it's within the image) in XY directions
    • getPaddingZ

      public int getPaddingZ()
      Padding placed on each side of the outputted image (if it's within the image) in Z direction
    • setPaddingZ

      public void setPaddingZ(int paddingZ)
      Padding placed on each side of the outputted image (if it's within the image) in Z direction