Polygon
class encapsulates a description of a closed, two-dimensional region within a coordinate space. This region is bounded by an arbitrary number of line segments, each of which is one side of the polygon. Internally, a polygon comprises of a list of {@code (x,y)}coordinate pairs, where each pair defines a vertex of the polygon, and two successive pairs are the endpoints of a line that is a side of the polygon. The first and final pairs of {@code (x,y)} points are joined by a line segmentthat closes the polygon. This Polygon
is defined with an even-odd winding rule. See {@link ae.java.awt.geom.PathIterator#WIND_EVEN_ODD WIND_EVEN_ODD}for a definition of the even-odd winding rule. This class's hit-testing methods, which include the contains
, intersects
and inside
methods, use the insideness definition described in the {@link Shape} class comments.
@author Sami Shaio
@see Shape
@author Herb Jellinek
@since 1.0
A Polygon element contains a nested gml:exterior element, which itself contains a nested gml:LinearRing element. The points which mark the boundaries of the polygon should be provided in counter-clockwise order. Because DDMS does not decorate these elements with any special attributes, they are not implemented as Java objects.
{@table.header History}The GML profile was removed in favour of TSPI in DDMS 5.0. {@table.footer}{@table.header Nested Elements}{@child.info gml:pos|4..*|11110}{@table.footer}{@table.header Attributes}{@child.info gml:id|1|11110}{@child.info <srsAttributes>|0..*|11110}{@table.footer}{@table.header Validation Rules}{@ddms.rule The qualified name of this element must be correct.|Error|11111}{@ddms.rule The srsName must exist.|Error|11111}{@ddms.rule The gml:id must exist, and must be a valid NCName.|Error|11111}{@ddms.rule If a gml:pos has an srsName, it must match the srsName of this Polygon.|Error|11111}{@ddms.rule The first and last position coordinates must be identical (a closed polygon).|Error|11111}{@ddms.rule Warnings from any SRS attributes are claimed by this component.|Warning|11111}{@table.footer} @author Brian Uri! @since 0.9.bPolygon
class encapsulates a description of a closed, two-dimensional region within a coordinate space. This region is bounded by an arbitrary number of line segments, each of which is one side of the polygon. Internally, a polygon comprises of a list of {@code (x,y)}coordinate pairs, where each pair defines a vertex of the polygon, and two successive pairs are the endpoints of a line that is a side of the polygon. The first and final pairs of {@code (x,y)} points are joined by a line segment that closes the polygon. This Polygon
is defined with an even-odd winding rule. See {@link java.awt.geom.PathIterator#WIND_EVEN_ODD WIND_EVEN_ODD}for a definition of the even-odd winding rule. This class's hit-testing methods, which include the contains
, intersects
and inside
methods, use the insideness definition described in the {@link Shape} class comments.
@version 1.26, 07/24/98
@author Sami Shaio
@see Shape
@author Herb Jellinek
@since 1.0
Shape
contract.
@author Mark
|
|
|
|
|
|
|
|
|
|
|
|