Packagecom.esri.aws.awx.geom
Classpublic class PolylineShape
Implementscom.esri.aws.awx.geom.IShape

A polyline shape described by an array of Points.

Custom shapes can be created by extending this class and changing the constructor arguments.

Default MXML PropertygeoPoints

View the examples.



Public Properties
 PropertyDefined by
  extent : Extent
[read-only] Retrieves the bounding box (maxX, maxY, minX, minY) of this polyline.
PolylineShape
  geoPoints : Array
The array of Points.
PolylineShape
Public Methods
 MethodDefined by
  
PolylineShape(geoPoints:Array = null)
Creates a new PolylineShape.
PolylineShape
  
deepClone():IShape
Creates a deep copy of the shape.
PolylineShape
Property detail
extentproperty
extent:Extent  [read-only]

Retrieves the bounding box (maxX, maxY, minX, minY) of this polyline.

Implementation
    public function get extent():Extent
geoPointsproperty 
public var geoPoints:Array

The array of Points.

Constructor detail
PolylineShape()constructor
public function PolylineShape(geoPoints:Array = null)

Creates a new PolylineShape.

Parameters
geoPoints:Array (default = null) — an array of Points.
Method detail
deepClone()method
public function deepClone():IShape

Creates a deep copy of the shape.

Returns
IShape — A copy of the shape.
Examples

This is a basic sample showing how you can manipulate the constuctor of 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]);
        }

    }
}