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 TypeMethodDescriptionvoidvoidvoidcomputeBounds(Rectangle2D rect) booleancontains(int x, int y) booleancontains(int x, int y, int width, int height) booleanbooleanvoidcubicTo(double x1, double y1, double x2, double y2, double x3, double y3) voidcurveTo(double x1, double y1, double x2, double y2, double x3, double y3) getPath()booleanintersects(double x, double y, double w, double h) Only tests against the bounds, used only when the GeneralPath is a rectanglebooleanintersects(Rectangle2D rect) called only when the GeneralPath is a rectanglevoidlineTo(double x, double y) voidmoveTo(double x, double y) voidquadTo(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:
getBounds2Din interfaceShape
-
getBounds
-
intersects
Only tests against the bounds, used only when the GeneralPath is a rectangle- Specified by:
intersectsin interfaceShape- Parameters:
x-y-w-h-- Returns:
-
intersects
called only when the GeneralPath is a rectangle- Specified by:
intersectsin interfaceShape- Parameters:
rect-- Returns:
-
append
-
getPath
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-