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 Summary
Constructors Constructor Description Padding() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.spatial.point.Point3iasPoint()Exposes the padding as aPoint3i.intgetPaddingXY()Padding placed on each side of the outputted image (if it's within the image) in XY directionsintgetPaddingZ()Padding placed on each side of the outputted image (if it's within the image) in Z directionbooleanhasNoPadding()Whether 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
public org.anchoranalysis.spatial.point.Point3i asPoint()Exposes the padding as aPoint3i.- Returns:
- a newly created
Point3iwith 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
-