public class SizeXY extends AnchorBean<SizeXY>
i.e. the width and height of an entity.
Constructor and Description |
---|
SizeXY() |
SizeXY(Extent extent)
Create form an
Extent . |
SizeXY(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
Extent |
asExtent()
Creates an extent with identical width and height and depth (z-extent) of 1.
|
Extent |
asExtent(int depth)
Creates an extent with identical width and height and a specific depth (z-extent).
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
getHeight()
Size in Y dimension.
|
int |
getWidth()
Size in X dimension.
|
int |
hashCode() |
void |
setHeight(int height)
Size in Y dimension.
|
void |
setWidth(int width)
Size in X dimension.
|
String |
toString()
By default, we use
AnchorBean.describeBean() as the string representation of the bean. |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public SizeXY(Extent extent)
Extent
.
Note the z-dimension in extent is ignored.
extent
- the extent.public SizeXY()
public SizeXY(int width, int height)
public Extent asExtent()
public Extent asExtent(int depth)
depth
- the depth for the extent.public String toString()
AnchorBean
AnchorBean.describeBean()
as the string representation of the bean.toString
in class AnchorBean<SizeXY>
protected boolean canEqual(Object other)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.