org.eclipse.birt.chart.computation
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Polygon
public Polygon()
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 getPoints()
getBounds
public Rectangle getBounds()
intersects
public boolean intersects(Polygon poly)
contains
public boolean contains(Point p)
Copyright © 2005-2007 Actuate Corp. All rights reserved.