| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g,
int imageWidth,
int imageHeight)
Draws the bounding box using the
Graphics2D. |
Rectangle |
getBounds()
Returns the bounding
Rectangle of this BoundingBox. |
PathIterator |
getPath()
Returns an iterator object that iterates along the
BoundingBox boundary and provides
access to the geometry of the BoundingBox outline. |
Point |
getPoint()
Returns the top left point of the bounding box.
|
Rectangle getBounds()
Rectangle of this BoundingBox.Rectangle for this BoundingBoxPathIterator getPath()
BoundingBox boundary and provides
access to the geometry of the BoundingBox outline.PathIterator object, which independently traverses the geometry of the
BoundingBoxPoint getPoint()
Point of the top left cornervoid draw(java.awt.Graphics2D g,
int imageWidth,
int imageHeight)
Graphics2D.g - the Graphics2D object of the imageimageWidth - the width of the imageimageHeight - the height of the image