Class BoundingBox
- java.lang.Object
-
- org.opennms.features.topology.api.BoundingBox
-
public class BoundingBox extends java.lang.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 void
addBoundingbox(BoundingBox box)
void
addPoint(Point location)
BoundingBox
computeWithAspectRatio(double R)
boolean
equals(java.lang.Object obj)
java.lang.String
fragment()
Point
getCenter()
int
getHeight()
int
getWidth()
int
getX()
int
getY()
int
hashCode()
void
setCenter(Point center)
java.lang.String
toString()
-
-
-
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)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fragment
public java.lang.String fragment()
-
addBoundingbox
public void addBoundingbox(BoundingBox box)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-