Class BoundingBox
- java.lang.Object
-
- org.opennms.features.topology.api.BoundingBox
-
public class BoundingBox extends Object
-
-
Constructor Summary
Constructors Constructor Description BoundingBox()BoundingBox(int x, int y, int width, int height)BoundingBox(BoundingBox box)BoundingBox(Point center, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBoundingbox(BoundingBox box)voidaddPoint(Point location)BoundingBoxcomputeWithAspectRatio(double R)booleanequals(Object obj)Stringfragment()PointgetCenter()intgetHeight()intgetWidth()intgetX()intgetY()inthashCode()voidsetCenter(Point center)StringtoString()
-
-
-
Constructor Detail
-
BoundingBox
public BoundingBox()
-
BoundingBox
public BoundingBox(BoundingBox box)
-
BoundingBox
public BoundingBox(int x, int y, int width, int height)
-
BoundingBox
public BoundingBox(Point center, int width, int height)
-
-
Method Detail
-
getX
public int getX()
-
getY
public int getY()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
addPoint
public void addPoint(Point location)
-
getCenter
public Point getCenter()
-
setCenter
public void setCenter(Point center)
-
computeWithAspectRatio
public BoundingBox computeWithAspectRatio(double R)
-
fragment
public String fragment()
-
addBoundingbox
public void addBoundingbox(BoundingBox box)
-
-