| Package | com.esri.aws.awx.geom |
| Class | public class PolylineShape |
| Implements | com.esri.aws.awx.geom.IShape |
Custom shapes can be created by extending this class and changing the constructor arguments.
Default MXML PropertygeoPoints
| Property | Defined by | ||
|---|---|---|---|
| extent : Extent
[read-only]
Retrieves the bounding box (maxX, maxY, minX, minY) of this polyline.
| PolylineShape | ||
| geoPoints : Array
The array of Points.
| PolylineShape | ||
| Method | Defined by | ||
|---|---|---|---|
|
PolylineShape(geoPoints:Array = null)
Creates a new PolylineShape.
| PolylineShape | ||
|
deepClone():IShape
Creates a deep copy of the shape.
| PolylineShape | ||
| extent | property |
extent:Extent [read-only]Retrieves the bounding box (maxX, maxY, minX, minY) of this polyline.
Implementation public function get extent():Extent
| geoPoints | property |
public var geoPoints:ArrayThe array of Points.
| PolylineShape | () | constructor |
public function PolylineShape(geoPoints:Array = null)Creates a new PolylineShape.
ParametersgeoPoints:Array (default = null) — an array of Points.
|
| deepClone | () | method |
public function deepClone():IShapeCreates a deep copy of the shape.
ReturnsIShape — A copy of the shape.
|
PolygonShape or PolylineShape to create a new shape.
package com.esri.aws.awx.geom
{
import com.esri.aws.awx.geom.PolygonShape;
import com.esri.aws.services.Envelope;
public class CustomPolygonShape extends PolygonShape
{
public function CustomPolygonShape(envelope:Envelope)
{
var geoPoint1:GeoPoint = new GeoPoint(envelope.minX, envelope.maxY);
var geoPoint2:GeoPoint = new GeoPoint(envelope.maxX, envelope.maxY);
var geoPoint3:GeoPoint = new GeoPoint(envelope.maxX, envelope.minY);
var geoPoint4:GeoPoint = new GeoPoint(envelope.minX, envelope.minY);
super([geoPoint1, geoPoint2, geoPoint3, geoPoint4]);
}
}
}