public class IltPolygon extends IlIntPolygon
IltPolyline,
Serialized FormEvenOddRule, WindingRule| Constructor and Description |
|---|
IltPolygon(int[] xpoints,
int[] ypoints,
int npoints)
Creates a polygon.
|
IltPolygon(int[] xpoints,
int[] ypoints,
int npoints,
int fillRule)
Deprecated.
Please use the three-argument constructor. The only supported
fillRule is EvenOddRule anyway. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(int x,
int y) |
boolean |
contains(int x,
int y)
Determines whether a point is contained in the inside area of this
polygon.
|
boolean |
containsInClosure(int x,
int y)
Determines whether a point is contained in this polygon (inside or
on the border).
|
boolean |
containsInInterior(int x,
int y)
Determines whether a point is contained in the inside area of this
polygon.
|
Polygon |
getFillingPolygon()
Returns a polygon which, when filled according to EvenOddRule, represents
(approximately) this polygon.
|
Enumeration |
horizontalLineIntersection(int y)
Intersects this polygon with a given horizontal line, and returns
an enumeration of the intervals belonging to the polygon.
|
getFillRule, setFillRule, toStringcontains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate@Deprecated public IltPolygon(int[] xpoints, int[] ypoints, int npoints, int fillRule)
fillRule is EvenOddRule anyway.Note: The implementation may remove redundant points.
xpoints - the array of x coordinatesypoints - the array of y coordinatesnpoints - the total number of points in the polygonfillRule - the filling mode of this polygonpublic IltPolygon(int[] xpoints,
int[] ypoints,
int npoints)
EvenOddRule.
Note: The implementation may remove redundant points.
xpoints - the array of x coordinatesypoints - the array of y coordinatesnpoints - the total number of points in the polygonpublic boolean containsInInterior(int x,
int y)
x - the x coordinate of the point to be testedy - the y coordinate of the point to be testedpublic boolean containsInClosure(int x,
int y)
x - the x coordinate of the point to be testedy - the y coordinate of the point to be testedpublic boolean contains(int x,
int y)
public Enumeration horizontalLineIntersection(int y)
horizontalLineIntersection in class IlIntPolygony - the y coordinate of the horizontal lineIltPolygon.IlHorizontalIntervalpublic Polygon getFillingPolygon()
getFillingPolygon in class IlIntPolygon© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.