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
.int
Padding placed on each side of the outputted image (if it's within the image) in XY directionsint
Padding placed on each side of the outputted image (if it's within the image) in Z directionboolean
Whether no padding exists.void
setPaddingXY
(int paddingXY) Padding placed on each side of the outputted image (if it's within the image) in XY directionsvoid
setPaddingZ
(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
Exposes the padding as aPoint3i
.- 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
-