Packagecom.esri.aws.awx.map.layers.overlays.style
Classpublic class PolygonStyle
InheritancePolygonStyle Inheritance BaseStyle
ImplementsIStyle

PolygonStyle is a simple renderer for polygons.

Note: Although styles have public properties (such as color, fill, alpha) they should not be edited after construction.

See also

http://livedocs.adobe.com/flex/201/langref/flash/display/Graphics.html#beginFill()


Public Properties
 PropertyDefined by
  alpha : Number
The polygon transparency.
PolygonStyle
  color : uint
The polygon fill color.
PolygonStyle
  outlineAlpha : Number
The outline transparency.
PolygonStyle
  outlineColor : uint
The outline color.
PolygonStyle
  outlineThickness : Number
The outline thickness.
PolygonStyle
Public Methods
 MethodDefined by
  
PolygonStyle(color:uint = 0x000BE6, alpha:Number = 0.5, outlineThickness:Number = -1, outlineColor:uint = 0x000000, outlineAlpha:Number = 1.0)
Creates a new polygon style.
PolygonStyle
 Inherited
cleanUp(overlayObject:OverlayObject):void
Cleans up the OverlayObject to restore it to its original state.
BaseStyle
  
draw(overlayObject:OverlayObject, projectionModel:IProjectionModel):void
Draws this polygon.
PolygonStyle
Property detail
alphaproperty
public var alpha:Number

The polygon transparency.

The default value is 0.5.

colorproperty 
public var color:uint

The polygon fill color.

The default value is 0x000BE6.

outlineAlphaproperty 
public var outlineAlpha:Number

The outline transparency.

The default value is 1.

outlineColorproperty 
public var outlineColor:uint

The outline color.

The default value is 0x000000.

outlineThicknessproperty 
public var outlineThickness:Number

The outline thickness.

The default value is -1 (no outline).

Constructor detail
PolygonStyle()constructor
public function PolygonStyle(color:uint = 0x000BE6, alpha:Number = 0.5, outlineThickness:Number = -1, outlineColor:uint = 0x000000, outlineAlpha:Number = 1.0)

Creates a new polygon style.

Parameters
color:uint (default = 0x000BE6) — the polygon fill color (default is 0x000BE6)
 
alpha:Number (default = 0.5) — polygon transparency (default is 0.5)
 
outlineThickness:Number (default = -1) — the outline thickness ( default is -1, no outline)
 
outlineColor:uint (default = 0x000000) — the outline color (default is 0x000000)
 
outlineAlpha:Number (default = 1.0) — the outline transparency (default is 1)
Method detail
draw()method
public override function draw(overlayObject:OverlayObject, projectionModel:IProjectionModel):void

Draws this polygon.

Parameters
overlayObject:OverlayObject — the object on which to draw
 
projectionModel:IProjectionModel — the projection model used to position the polygon points.