| Package | com.esri.ags.symbols |
| Class | public class SimpleLineSymbol |
| Inheritance | SimpleLineSymbol LineSymbol Symbol flash.events.EventDispatcher |
| Subclasses | CartographicLineSymbol |
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number
Line symbol alpha (transparency). | LineSymbol | |
![]() | color : uint
Line symbol color. | LineSymbol | |
| style : String
The line style. | SimpleLineSymbol | ||
![]() | width : Number
Line symbol width in pixels. | LineSymbol | |
| Method | Defined By | ||
|---|---|---|---|
SimpleLineSymbol(style:String = solid, color:Number = 0x000000, alpha:Number = 1, width:Number = 1)
Creates a new SimpleLineSymbol. | SimpleLineSymbol | ||
![]() | clear(sprite:Sprite):void
Clears the graphics that were drawn to the sprite object. | Symbol | |
![]() | createSwatch(width:Number = 50, height:Number = 50):UIComponent
Creates a swatch for a symbol which can be used in a legend. | Symbol | |
![]() | destroy(sprite:Sprite):void
Removes all the graphics that were drawn to the sprite object and resets its properties. | Symbol | |
![]() |
Draw the graphics on the sprite object. | Symbol | |
![]() |
Initialize the sprite. | Symbol | |
| Constant | Defined By | ||
|---|---|---|---|
| STYLE_DASH : String = dash [static]
The line is made of dashes. | SimpleLineSymbol | ||
| STYLE_DASHDOT : String = dashdot [static]
The line is made of a dash-dot pattern. | SimpleLineSymbol | ||
| STYLE_DASHDOTDOT : String = dashdotdot [static]
The line is made of a dash-dot-dot pattern. | SimpleLineSymbol | ||
| STYLE_DOT : String = dot [static]
The line is made of dots. | SimpleLineSymbol | ||
| STYLE_NULL : String = none [static]
The line has no symbol. | SimpleLineSymbol | ||
| STYLE_SOLID : String = solid [static]
The line is solid. | SimpleLineSymbol | ||
| style | property |
style:StringThe line style.
The default value is STYLE_SOLID.
public function get style():String public function set style(value:String):void| SimpleLineSymbol | () | Constructor |
public function SimpleLineSymbol(style:String = solid, color:Number = 0x000000, alpha:Number = 1, width:Number = 1)Creates a new SimpleLineSymbol.
Parametersstyle:String (default = solid) — The line style.
| |
color:Number (default = 0x000000) — The line color.
| |
alpha:Number (default = 1) — The line transparency.
| |
width:Number (default = 1) — The line thickness in pixels.
|
| STYLE_DASH | Constant |
public static const STYLE_DASH:String = dashThe line is made of dashes.
| STYLE_DASHDOT | Constant |
public static const STYLE_DASHDOT:String = dashdotThe line is made of a dash-dot pattern.
| STYLE_DASHDOTDOT | Constant |
public static const STYLE_DASHDOTDOT:String = dashdotdotThe line is made of a dash-dot-dot pattern.
| STYLE_DOT | Constant |
public static const STYLE_DOT:String = dotThe line is made of dots.
| STYLE_NULL | Constant |
public static const STYLE_NULL:String = noneThe line has no symbol.
| STYLE_SOLID | Constant |
public static const STYLE_SOLID:String = solidThe line is solid.
<esri:SimpleLineSymbol id="sls" color="0xFF3333" width="2" alpha="0.5"/>
var sls:SimpleLineSymbol = new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, 0xFF0000, 0.8, 2);
var myOtherLineSymbol:SimpleLineSymbol = new SimpleLineSymbol(); myOtherLineSymbol.color = 0xFFFF99; myOtherLineSymbol.width = 2; myOtherLineSymbol.alpha = 1.0;