Class SizeXY
public class SizeXY extends AnchorBean<SizeXY>
The size of an entity in the X and Y dimensions.
i.e. the width and height of an entity.
- Author:
- Owen Feehan
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description org.anchoranalysis.spatial.box.ExtentasExtent()Creates an extent with identical width and height and depth (z-extent) of 1.org.anchoranalysis.spatial.box.ExtentasExtent(int depth)Creates an extent with identical width and height and a specific depth (z-extent).protected booleancanEqual(Object other)booleanequals(Object o)intgetHeight()Size in Y dimension.intgetWidth()Size in X dimension.inthashCode()voidsetHeight(int height)Size in Y dimension.voidsetWidth(int width)Size in X dimension.StringtoString()Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Method Details
-
asExtent
public org.anchoranalysis.spatial.box.Extent asExtent()Creates an extent with identical width and height and depth (z-extent) of 1.- Returns:
- the newly created extent.
-
asExtent
public org.anchoranalysis.spatial.box.Extent asExtent(int depth)Creates an extent with identical width and height and a specific depth (z-extent).- Parameters:
depth- the depth for the extent.- Returns:
- the newly created extent.
-
toString
- Overrides:
toStringin classAnchorBean<SizeXY>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getWidth
public int getWidth()Size in X dimension. The width. -
setWidth
public void setWidth(int width)Size in X dimension. The width. -
getHeight
public int getHeight()Size in Y dimension. The height. -
setHeight
public void setHeight(int height)Size in Y dimension. The height.
-