| Package | com.esri.ags.symbol |
| Class | public class CartographicLineSymbol |
| Inheritance | CartographicLineSymbol SimpleLineSymbol LineSymbol Symbol flash.events.EventDispatcher |
<esri:CartographicLineSymbol id="cls" cap="round" join="round"/>
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | alpha : Number
Line symbol alpha (transparency).
| LineSymbol | |
| cap : String
The type of caps at the end of lines.
| CartographicLineSymbol | ||
![]() | color : uint
Line symbol color.
| LineSymbol | |
| join : String
The type of joint appearance used at angles.
| CartographicLineSymbol | ||
| miterLimit : Number
The limit at which a miter is cut off.
| CartographicLineSymbol | ||
![]() | style : String
The line style.
| SimpleLineSymbol | |
![]() | width : Number
Line symbol width in pixels.
| LineSymbol | |
| Method | Defined by | ||
|---|---|---|---|
|
CartographicLineSymbol(style:String, color:Number = 0x000000, alpha:Number = 1, width:Number = 1, cap:String, join:String, miterLimit:Number = 10)
Creates a new CartographicLineSymbol.
| CartographicLineSymbol | ||
![]() |
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 | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
dispatchEventChange():void
Helper function to dispatch a change event.
| Symbol | |
![]() |
removeAllChildren(sprite:Sprite):void
Removes all children from the sprite object.
| Symbol | |
|
setLineStyle(graphics:Graphics):void
Overrides the setLineStyle method.
| CartographicLineSymbol | ||
![]() |
Converts the x-coordinate of map point to a screen point.
| Symbol | |
![]() |
Converts the y-coordinate of map point to a screen point.
| Symbol | |
| Constant | Defined by | ||
|---|---|---|---|
| CAP_BUTT : String = "butt" [static]
Line ends square at the end point.
| CartographicLineSymbol | ||
| CAP_ROUND : String = "round" [static]
Line is rounded just beyond the end point.
| CartographicLineSymbol | ||
| CAP_SQUARE : String = "square" [static]
Line is squared just beyond the end point.
| CartographicLineSymbol | ||
| JOIN_BEVEL : String = "bevel" [static]
The joined lines are beveled
| CartographicLineSymbol | ||
| JOIN_MITER : String = "miter" [static]
The joined lines are not rounded or beveled.
| CartographicLineSymbol | ||
| JOIN_ROUND : String = "round" [static]
The joined lines are rounded.
| CartographicLineSymbol | ||
![]() | 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 | |
| cap | property |
cap:String [read-write]The type of caps at the end of lines.
Note: as of version 1.1, CartographicLineSymbol.CAP_BUTT now correctly ends a line with square end points.
The default value is CAP_BUTT.
This property can be used as the source for data binding.
Implementation public function get cap():String
public function set cap(value:String):void
| join | property |
join:String [read-write]The type of joint appearance used at angles.
The default value is JOIN_MITER.
This property can be used as the source for data binding.
Implementation public function get join():String
public function set join(value:String):void
| miterLimit | property |
miterLimit:Number [read-write]The limit at which a miter is cut off.
The default value is 10.
This property can be used as the source for data binding.
Implementation public function get miterLimit():Number
public function set miterLimit(value:Number):void
| CartographicLineSymbol | () | constructor |
public function CartographicLineSymbol(style:String, color:Number = 0x000000, alpha:Number = 1, width:Number = 1, cap:String, join:String, miterLimit:Number = 10)Creates a new CartographicLineSymbol.
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.
|
|
cap:String — The cap type.
|
|
join:String — The join type.
|
|
miterLimit:Number (default = 10) — The miter limit.
|
| setLineStyle | () | method |
protected override function setLineStyle(graphics:Graphics):voidOverrides the setLineStyle method.
Parametersgraphics:Graphics |
| CAP_BUTT | constant |
public static const CAP_BUTT:String = "butt"Line ends square at the end point.
| CAP_ROUND | constant |
public static const CAP_ROUND:String = "round"Line is rounded just beyond the end point.
| CAP_SQUARE | constant |
public static const CAP_SQUARE:String = "square"Line is squared just beyond the end point.
| JOIN_BEVEL | constant |
public static const JOIN_BEVEL:String = "bevel"The joined lines are beveled
| JOIN_MITER | constant |
public static const JOIN_MITER:String = "miter"The joined lines are not rounded or beveled.
| JOIN_ROUND | constant |
public static const JOIN_ROUND:String = "round"The joined lines are rounded.