Class Polygon
- java.lang.Object
-
- org.eclipse.birt.chart.computation.Polygon
-
- Direct Known Subclasses:
RotatedRectangle
public class Polygon extends java.lang.Object
A 2D Polygon class
-
-
Constructor Summary
Constructors Constructor Description Polygon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double x, double y)
void
add(Point p)
boolean
contains(Point p)
Rectangle
getBounds()
Point
getPoint(int index)
java.util.List<Point>
getPoints()
boolean
intersects(Polygon poly)
-
-
-
Method Detail
-
add
public void add(double x, double y)
-
add
public void add(Point p)
-
getPoint
public Point getPoint(int index)
-
getPoints
public java.util.List<Point> getPoints()
-
getBounds
public Rectangle getBounds()
-
intersects
public boolean intersects(Polygon poly)
-
contains
public boolean contains(Point p)
-
-