| Package | com.esri.aws.awx.map.layers.overlays.style |
| Class | public class PolygonStyle |
| Inheritance | PolygonStyle BaseStyle |
| Implements | IStyle |
Note: Although styles have public properties (such as color, fill, alpha) they should not be edited after construction.
See also
| Property | Defined 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 | ||
| Method | Defined 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 | ||
![]() |
cleanUp(overlayObject:OverlayObject):void
Cleans up the OverlayObject to restore it to its original state.
| BaseStyle | |
|
Draws this polygon.
| PolygonStyle | ||
| alpha | property |
public var alpha:NumberThe polygon transparency.
The default value is 0.5.
| color | property |
public var color:uintThe polygon fill color.
The default value is 0x000BE6.
| outlineAlpha | property |
public var outlineAlpha:NumberThe outline transparency.
The default value is 1.
| outlineColor | property |
public var outlineColor:uintThe outline color.
The default value is 0x000000.
| outlineThickness | property |
public var outlineThickness:NumberThe outline thickness.
The default value is -1 (no outline).
| 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.
Parameterscolor: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)
|
| draw | () | method |
public override function draw(overlayObject:OverlayObject, projectionModel:IProjectionModel):voidDraws this polygon.
ParametersoverlayObject:OverlayObject — the object on which to draw
|
|
projectionModel:IProjectionModel — the projection model used to position the polygon points.
|