| Package | com.esri.ags.symbol |
| Class | public class SimpleLineSymbol |
| Inheritance | SimpleLineSymbol LineSymbol Symbol flash.events.EventDispatcher |
| Subclasses | CartographicLineSymbol |
<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;
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, 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 | |
![]() |
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 | |
| 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:String [read-write]The line style.
The default value is STYLE_SOLID.
This property can be used as the source for data binding.
Implementation public function get style():String
public function set style(value:String):void
| SimpleLineSymbol | () | constructor |
public function SimpleLineSymbol(style:String, color:Number = 0x000000, alpha:Number = 1, width:Number = 1)Creates a new SimpleLineSymbol.
Parametersstyle:String — 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 = "dash"The line is made of dashes.
| STYLE_DASHDOT | constant |
public static const STYLE_DASHDOT:String = "dashdot"The line is made of a dash-dot pattern.
| STYLE_DASHDOTDOT | constant |
public static const STYLE_DASHDOTDOT:String = "dashdotdot"The line is made of a dash-dot-dot pattern.
| STYLE_DOT | constant |
public static const STYLE_DOT:String = "dot"The line is made of dots.
| STYLE_NULL | constant |
public static const STYLE_NULL:String = "none"The line has no symbol.
| STYLE_SOLID | constant |
public static const STYLE_SOLID:String = "solid"The line is solid.