Class 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasPoint()Exposes the padding as aPoint3i.intPadding placed on each side of the outputted image (if it's within the image) in XY directionsintPadding placed on each side of the outputted image (if it's within the image) in Z directionbooleanWhether no padding exists.voidsetPaddingXY(int paddingXY) Padding placed on each side of the outputted image (if it's within the image) in XY directionsvoidsetPaddingZ(int paddingZ) Padding placed on each side of the outputted image (if it's within the image) in Z directionMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Padding
public Padding()
-
-
Method Details
-
asPoint
-
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
-