Packageio.github.ycabon.markings
Classpublic class AdvancedLineSymbol
InheritanceAdvancedLineSymbol Inheritance com.esri.ags.symbols.LineSymbol
Implements mx.core.IMXMLObject, com.esri.ags.utils.IJSONSupport

The AdvancedLineSymbol is a symbol used to draw Polyline Graphics from a GraphicsLayer. It delegates the drawing to its lineParts. Printing appearence is defined by the fallback symbol property.
  ...
  <mk:AdvancedLineSymbol>
      <s:ArrayList>
          <mk:SolidLinePart>
              <s:SolidColorStroke alpha="0.25"
                                  color="0x000000"
                                  weight="6"/>
          </mk:SolidLinePart>
          <mk:SolidLinePart>
              <s:SolidColorStroke color="0xBB0000" weight="5"/>
          </mk:SolidLinePart>
          <mk:SolidLinePart>
              <s:SolidColorStroke color="0xCC0000" weight="4"/>
          </mk:SolidLinePart>
          <mk:SolidLinePart>
              <s:SolidColorStroke color="0xDD0000" weight="3"/>
          </mk:SolidLinePart>
          <mk:SolidLinePart>
              <s:SolidColorStroke color="0xEE0000" weight="2"/>
          </mk:SolidLinePart>
          <mk:SolidLinePart>
              <s:SolidColorStroke color="0xFF0000" weight="1"/>
          </mk:SolidLinePart>
      </s:ArrayList>
  </mk:AdvancedLineSymbol>
  ...
  

MXML SyntaxexpandedHide MXML Syntax

The <mk:AdvancedLineSymbol> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:

  <mk:AdvancedLineSymbol
    Properties
    lineParts="null"
    fallback="null"
  />
  

Default MXML PropertylineParts

See also

io.github.ycabon.markings.lineClasses.ILinePart
io.github.ycabon.markings.lineClasses.SolidLinePart
io.github.ycabon.markings.lineClasses.DashedLinePart
io.github.ycabon.markings.lineClasses.IconPart
com.esri.ags.symbols.LineSymbol


Public Properties
 PropertyDefined By
  fallback : SimpleLineSymbol
The line symbol sent to the server when using the print task.
AdvancedLineSymbol
  lineParts : IList
A collection of line parts objects in charge of drawing the Polyline on screen.
AdvancedLineSymbol
Public Methods
 MethodDefined By
  
AdvancedLineSymbol(lineParts:IList = null, fallback:SimpleLineSymbol = null)
Constructor.
AdvancedLineSymbol
Property Detail
fallbackproperty
public var fallback:SimpleLineSymbol

The line symbol sent to the server when using the print task.

      ...
      <mk:AdvancedLineSymbol id="lineSymbolRed">
          <mk:fallback>
              <esri:SimpleLineSymbol color="0xFF0000" style="solid" width="4" />
          </mk:fallback>
          <s:ArrayList>
              <mk:SolidLinePart>
                  <s:SolidColorStroke color="0xCC0000" weight="4"/>
              </mk:SolidLinePart>
          </s:ArrayList>
      </mk:AdvancedLineSymbol>
      ...
      

See also

linePartsproperty 
lineParts:IList

A collection of line parts objects in charge of drawing the Polyline on screen.

A line part object must implement the io.github.ycabon.markings.lineClasses.ILinePart interface. Three implementations are provided out of the box:

This property can be used as the source for data binding.


Implementation
    public function get lineParts():IList
    public function set lineParts(value:IList):void

See also

Constructor Detail
AdvancedLineSymbol()Constructor
public function AdvancedLineSymbol(lineParts:IList = null, fallback:SimpleLineSymbol = null)

Constructor.

Parameters
lineParts:IList (default = null) — A collection of line parts. The default value is null.
 
fallback:SimpleLineSymbol (default = null) — A SimpleLineSymbol for printing support. The default value is null.