Packagecom.esri.ags.symbols
Classpublic class LineSymbol
InheritanceLineSymbol Inheritance Symbol Inheritance flash.events.EventDispatcher
Subclasses SimpleLineSymbol

Base class for line symbols. Use its subclasses (CartographicLineSymbol or SimpleLineSymbol) directly to draw lines on the graphics layer.

See also

SimpleLineSymbol
CartographicLineSymbol


Public Properties
 PropertyDefined By
  alpha : Number
Line symbol alpha (transparency).
LineSymbol
  color : uint
Line symbol color.
LineSymbol
  width : Number
Line symbol width in pixels.
LineSymbol
Public Methods
 MethodDefined By
 Inherited
clear(sprite:Sprite):void
Clears the graphics that were drawn to the sprite object.
Symbol
 Inherited
createSwatch(width:Number = 50, height:Number = 50):UIComponent
Creates a swatch for a symbol which can be used in a legend.
Symbol
 Inherited
destroy(sprite:Sprite):void
Removes all the graphics that were drawn to the sprite object and resets its properties.
Symbol
 Inherited
draw(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void
Draw the graphics on the sprite object.
Symbol
 Inherited
initialize(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void
Initialize the sprite.
Symbol
Protected Methods
 MethodDefined By
 Inherited
Helper function to dispatch a change event.
Symbol
 Inherited
removeAllChildren(sprite:Sprite):void
Removes all children from the sprite object.
Symbol
 Inherited
toScreenX(map:Map, mapX:Number):Number
Converts the x-coordinate of map point to a screen point.
Symbol
 Inherited
toScreenY(map:Map, mapY:Number):Number
Converts the y-coordinate of map point to a screen point.
Symbol
Property Detail
alphaproperty
alpha:Number

Line symbol alpha (transparency). Possible values range from 0.0 (invisible, fully transparent) to 1.0 (opaque, fully visible).

The default value is 1.0 (opaque, fully visible).


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
colorproperty 
color:uint

Line symbol color.

The default value is 0x000000 (black).


Implementation
    public function get color():uint
    public function set color(value:uint):void
widthproperty 
width:Number

Line symbol width in pixels.

The default value is 1 pixel.


Implementation
    public function get width():Number
    public function set width(value:Number):void