Class Rectangle2D
- java.lang.Object
-
- net.sourceforge.plantuml.awt.geom.Rectangle2D
-
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
Rectangle2D.Double
public class Rectangle2D extends java.lang.Object implements Shape
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rectangle2D.Double
-
Constructor Summary
Constructors Constructor Description Rectangle2D(double x, double y, double width, double height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Point2D point)
double
getCenterX()
double
getCenterY()
double
getHeight()
double
getMaxX()
double
getMaxY()
double
getMinX()
double
getMinY()
double
getWidth()
double
getX()
double
getY()
boolean
intersects(Rectangle2D rectangle)
-
-
-
Method Detail
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
getX
public double getX()
-
getY
public double getY()
-
getCenterX
public double getCenterX()
-
getCenterY
public double getCenterY()
-
getMinX
public double getMinX()
-
getMaxX
public double getMaxX()
-
getMinY
public double getMinY()
-
getMaxY
public double getMaxY()
-
intersects
public boolean intersects(Rectangle2D rectangle)
-
contains
public boolean contains(Point2D point)
-
-