Class DblBoundingBox
- java.lang.Object
-
- org.opennms.features.topology.api.DblBoundingBox
-
public class DblBoundingBox extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DblBoundingBox()
DblBoundingBox(double x, double y, double width, double height)
DblBoundingBox(java.awt.geom.Point2D center, double width, double height)
DblBoundingBox(DblBoundingBox box)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBoundingbox(DblBoundingBox box)
void
addPoint(java.awt.geom.Point2D location)
DblBoundingBox
computeWithAspectRatio(double R)
boolean
equals(java.lang.Object obj)
java.lang.String
fragment()
java.awt.geom.Point2D
getCenter()
double
getHeight()
double
getWidth()
double
getX()
double
getY()
int
hashCode()
void
setCenter(Point center)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DblBoundingBox
public DblBoundingBox()
-
DblBoundingBox
public DblBoundingBox(DblBoundingBox box)
-
DblBoundingBox
public DblBoundingBox(double x, double y, double width, double height)
-
DblBoundingBox
public DblBoundingBox(java.awt.geom.Point2D center, double width, double height)
-
-
Method Detail
-
getX
public double getX()
-
getY
public double getY()
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
addPoint
public void addPoint(java.awt.geom.Point2D location)
-
getCenter
public java.awt.geom.Point2D getCenter()
-
setCenter
public void setCenter(Point center)
-
computeWithAspectRatio
public DblBoundingBox 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(DblBoundingBox 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
-
-