Private
constructorThis class should not be instantiated by users of LuciadRIA.
The bounds of this shape. This property is to be treated in a read only manner. An error will be thrown when trying to assign to this property. Note that the bounds property is not immutable. Modifying properties of the bounds property may corrupt your data.
The coordinate type this shape. This property is read only. An Error will be thrown when trying to assign to this property.
The focus point of this shape. This property is read only. An error will be thrown when trying to assign to this property. This property contains an object but should be treated with value semantics: changes to the shape will not be reflected in the focusPoint that was retrieved from this Polygon before the modification.
The number of polygons in this ComplexPolygon
The spatial reference of this shape. This property is read only. An Error will be thrown when trying to assign to this property.
Adds a polygon at the end of this complex polygon.
The polygon to add.
InvalidReferenceError if the polygon's spatial reference does not match this complex polygon's spatial reference.
Adds a polygon at the specified index of this complex polygon.
the index at which to insert a polygon, must be between 0 and the number of polygons in this complex polygon. If the index is 0, the polygon is the outer ring which must enclose all other polygons. Is the index a higher number, the polygon is a hole.
The polygon to insert when the first parameter is an index.
InvalidReferenceError if the polygon's spatial reference does not match this complex polygon's spatial reference.
Adds one or more polygons to this complex polygon.
the polygons to add
InvalidReferenceError if any of the polygon's spatial reference does not match this complex polygon's spatial reference.
Determines whether a given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
true
when the given point is contained in this shape
Determines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The x coordinate of the point for which containment must be checked
The y coordinate of the point for which containment must be checked
true
when the given point is contained in this shape
Point with another spatial reference
Determines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked.
true
when the given point is contained in this shape
Point with another spatial reference
Makes a deep clone of this shape.
a copy of this shape
Indicates whether this shape is equal to another.
the other shape this shape is compared with.
true
if both shapes are equal, false
otherwise.
Notifies this complex polygon that the given polygon (or the polygon at the specified index) has changed.
the polygon (or index of the polygon) that changed
Removes the polygon at the specified index from this complex polygon.
the index of the polygon that should be removed that should be removed itself
the removed polygon
Removes a specific polygon from this complex polygon.
the polygon that should be removed that should be removed itself
the removed polygon
Removes one or more polygons to this complex polygon.
the polygons to remove
Replaces the polygon at the given index with the specified polygon.
the index of the polygon to set. The index value must fall in the valid index range: 0 <= index < {number of polygons in the ComplexPolygon}
.
If this index equals 0
, than the polygon must be the outerring, enclosing all the holes.
If it is higher, than the polygon must be a hole.
the polygon to set
InvalidReferenceError if the polygon's spatial reference does not match this complex polygon's spatial reference.
A polygon that can have a number of holes. A complex polygon should be created using createComplexPolygon. A ComplexPolygon is defined as an array of Polygon instances. The first polygon - at index 0- specifies the outer ring. All the other polygons are the holes.