Package armyc2.c5isr.graphics2d
Class Rectangle2D
java.lang.Object
armyc2.c5isr.graphics2d.Rectangle2D
- Direct Known Subclasses:
Rectangle2D.Double
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double newx, double newy) booleancontains(double x1, double y1) booleancontains(int x, int y, int width, int height) booleanbooleancontains(Rectangle2D rect) doubledoublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()doublegetWidth()doublegetX()doublegetY()booleanintersects(int x1, int y1, int width1, int height1) booleanintersects(Rectangle2D rect) booleanintersectsLine(Line2D line) booleanisEmpty()voidsetRect(double x1, double y1, double width1, double height1) void
-
Field Details
-
x
-
y
-
width
-
height
-
-
Constructor Details
-
Rectangle2D
protected Rectangle2D()
-
-
Method Details
-
add
-
createIntersection
-
createUnion
-
getX
-
getY
-
getMinX
-
getMinY
-
getMaxX
-
getMaxY
-
getHeight
-
getWidth
-
contains
-
intersects
-
intersects
-
contains
-
contains
-
intersectsLine
-
contains
-
isEmpty
-
setRect
-
setRect
-