org.eclipse.birt.chart.computation
Class Polygon

java.lang.Object
  extended by org.eclipse.birt.chart.computation.Polygon
Direct Known Subclasses:
RotatedRectangle

public class Polygon
extends java.lang.Object

A 2D Polygon class


Constructor Summary
Polygon()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polygon

public Polygon()
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)


Copyright © 2005-2008 Actuate Corp. All rights reserved.