Class BoundingBox
- java.lang.Object
- 
- org.opennms.features.topology.api.BoundingBox
 
- 
 public class BoundingBox extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description BoundingBox()BoundingBox(int x, int y, int width, int height)BoundingBox(BoundingBox box)BoundingBox(Point center, int width, int height)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBoundingbox(BoundingBox box)voidaddPoint(Point location)BoundingBoxcomputeWithAspectRatio(double R)booleanequals(java.lang.Object obj)java.lang.Stringfragment()PointgetCenter()intgetHeight()intgetWidth()intgetX()intgetY()inthashCode()voidsetCenter(Point center)java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
BoundingBoxpublic BoundingBox() 
 - 
BoundingBoxpublic BoundingBox(BoundingBox box) 
 - 
BoundingBoxpublic BoundingBox(int x, int y, int width, int height)
 - 
BoundingBoxpublic BoundingBox(Point center, int width, int height) 
 
- 
 - 
Method Detail- 
getXpublic int getX() 
 - 
getYpublic int getY() 
 - 
getWidthpublic int getWidth() 
 - 
getHeightpublic int getHeight() 
 - 
addPointpublic void addPoint(Point location) 
 - 
getCenterpublic Point getCenter() 
 - 
setCenterpublic void setCenter(Point center) 
 - 
computeWithAspectRatiopublic BoundingBox computeWithAspectRatio(double R) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
fragmentpublic java.lang.String fragment() 
 - 
addBoundingboxpublic void addBoundingbox(BoundingBox box) 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-