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.BoundingBox getBox()
    The BoundingBox in which the image should be placed.
    org.anchoranalysis.spatial.box.BoundingBox getEnclosing()
    An enclosing box (equal to or larger than box covering all screen-space used for this entity, including padding.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()
      The BoundingBox in which the image should be placed. This excludes padding.
    • getEnclosing

      public org.anchoranalysis.spatial.box.BoundingBox getEnclosing()
      An enclosing box (equal to or larger than box covering all screen-space used for this entity, including padding.

      This should be identical to box if there is no padding.