Package armyc2.c5isr.graphics2d
Class Rectangle
java.lang.Object
armyc2.c5isr.graphics2d.Rectangle
- All Implemented Interfaces:
Shape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
contains
(int x1, int y1) boolean
contains
(int x1, int y1, int width1, int height1) boolean
int
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
int
getWidth()
int
getX()
int
getY()
void
grow
(int h, int v) boolean
intersects
(double x1, double y1, double width1, double height1) boolean
intersects
(Rectangle rect) boolean
intersects
(Rectangle2D rect) void
setLocation
(int x, int y) void
setRect
(int x, int y, int width, int height) void
-
Field Details
-
x
-
y
-
width
-
height
-
-
Constructor Details
-
Rectangle
public Rectangle() -
Rectangle
-
Rectangle
-
Rectangle
-
-
Method Details
-
getBounds
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
intersects
- Specified by:
intersects
in interfaceShape
-
intersects
-
intersects
- Specified by:
intersects
in interfaceShape
-
contains
-
contains
-
contains
-
getBounds2D
- Specified by:
getBounds2D
in interfaceShape
-
getX
-
getY
-
getMinX
-
getMinY
-
getMaxX
-
getMaxY
-
getHeight
-
getWidth
-
grow
-
setRect
-
setRect
-
setLocation
-
add
-
union
-