public class Polygon
extends java.lang.Object
Constructor and Description |
---|
Polygon() |
Modifier and Type | Method and 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) |
public void add(double x, double y)
public void add(Point p)
public Point getPoint(int index)
public java.util.List<Point> getPoints()
public Rectangle getBounds()
public boolean intersects(Polygon poly)
public boolean contains(Point p)
Copyright © 2005-2008 Actuate Corp. All rights reserved.