Class BoundingBoxEnclosed
Object
org.anchoranalysis.image.bean.nonbean.spatial.arrange.BoundingBoxEnclosed
public class BoundingBoxEnclosed extends Object
Describes a
BoundingBox that is optionally enclosed by a larger containing BoundingBox to given padding.
No checks currently occur that enclosing fully contains box.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BoundingBoxEnclosed(org.anchoranalysis.spatial.box.BoundingBox box)Create with a box that has no padding.BoundingBoxEnclosed(org.anchoranalysis.spatial.box.BoundingBox box, org.anchoranalysis.spatial.box.BoundingBox enclosing) -
Method Summary
Modifier and Type Method Description org.anchoranalysis.spatial.box.BoundingBoxgetBox()TheBoundingBoxin which the image should be placed.org.anchoranalysis.spatial.box.BoundingBoxgetEnclosing()An enclosing box (equal to or larger thanboxcovering all screen-space used for this entity, including padding.
-
Constructor Details
-
BoundingBoxEnclosed
public BoundingBoxEnclosed(org.anchoranalysis.spatial.box.BoundingBox box)Create with a box that has no padding.i.e. this box is enclosed by itself.
- Parameters:
box- the box.
-
BoundingBoxEnclosed
public BoundingBoxEnclosed(org.anchoranalysis.spatial.box.BoundingBox box, org.anchoranalysis.spatial.box.BoundingBox enclosing)
-
-
Method Details
-
getBox
public org.anchoranalysis.spatial.box.BoundingBox getBox()TheBoundingBoxin which the image should be placed. This excludes padding. -
getEnclosing
public org.anchoranalysis.spatial.box.BoundingBox getEnclosing()An enclosing box (equal to or larger thanboxcovering all screen-space used for this entity, including padding.This should be identical to
boxif there is no padding.
-