Package lu.kbra.pclib.awt
Class Polyline
java.lang.Object
lu.kbra.pclib.awt.Polyline
- All Implemented Interfaces:
Shape
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y) booleancontains(double x, double y, double w, double h) booleanbooleangetPathIterator(AffineTransform at, double flatness) booleanintersects(double x, double y, double w, double h) boolean
-
Constructor Details
-
Polyline
public Polyline(double[] xPoints, double[] yPoints, int nPoints) -
Polyline
public Polyline(int[] xPoints, int[] yPoints, int nPoints)
-
-
Method Details
-
contains
public boolean contains(double x, double y) -
contains
public boolean contains(double x, double y, double w, double h) -
contains
-
contains
-
getBounds
-
getBounds2D
- Specified by:
getBounds2Din interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersectsin interfaceShape
-
intersects
- Specified by:
intersectsin interfaceShape
-