Package armyc2.c5isr.graphics2d
Class GeneralPath
java.lang.Object
armyc2.c5isr.graphics2d.GeneralPath
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
Area
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
computeBounds
(Rectangle2D rect) boolean
contains
(int x, int y) boolean
contains
(int x, int y, int width, int height) boolean
boolean
void
cubicTo
(double x1, double y1, double x2, double y2, double x3, double y3) void
curveTo
(double x1, double y1, double x2, double y2, double x3, double y3) getPath()
boolean
intersects
(double x, double y, double w, double h) Only tests against the bounds, used only when the GeneralPath is a rectangleboolean
intersects
(Rectangle2D rect) called only when the GeneralPath is a rectanglevoid
lineTo
(double x, double y) void
moveTo
(double x, double y) void
quadTo
(double x1, double y1, double x2, double y2)
-
Constructor Details
-
GeneralPath
public GeneralPath()
-
-
Method Details
-
lineTo
-
moveTo
-
quadTo
-
cubicTo
-
curveTo
-
computeBounds
-
closePath
-
contains
-
contains
-
contains
-
contains
-
getBounds2D
- Specified by:
getBounds2D
in interfaceShape
-
getBounds
-
intersects
Only tests against the bounds, used only when the GeneralPath is a rectangle- Specified by:
intersects
in interfaceShape
- Parameters:
x
-y
-w
-h
-- Returns:
-
intersects
called only when the GeneralPath is a rectangle- Specified by:
intersects
in interfaceShape
- Parameters:
rect
-- Returns:
-
append
-
getPath
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-