Packageio.github.ycabon.markings.lineClasses
Classpublic class SolidLinePart
InheritanceSolidLinePart Inheritance flash.events.EventDispatcher
Implements ILinePart

The SolidLinePart can be used as a part of an AdvancedLineSymbol.

This part is very efficient and draws the line using strokes from the Flex SDK:

  ...
  <mk:AdvancedLineSymbol>
      <s:ArrayList>
          <mk:SolidLinePart yOffset="5">
              <s:SolidColorStroke alpha="1"
                                  color="0xDD0000"
                                  weight="6"/>
          </mk:SolidLinePart>
      </s:ArrayList>
  </mk:AdvancedLineSymbol>
  ...
  

MXML SyntaxexpandedHide MXML Syntax

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

  <mk:SolidLinePart
    Properties
    stroke="null"
    xOffset="0"
    yOffset="0"
  />
  

Default MXML Propertystroke

See also

mx.graphics.SolidColorStroke
mx.graphics.LinearGradientStroke
mx.graphics.RadialGradientStroke


Public Properties
 PropertyDefined By
  stroke : IStroke
The stroke used by this part.
SolidLinePart
  xOffset : int
The offset on the x-axis in pixel to apply to the projected line.
SolidLinePart
  yOffset : int
The offset on the y-axis in pixel to apply to the projected line.
SolidLinePart
Public Methods
 MethodDefined By
  
SolidLinePart(stroke:IStroke = null, xOffset:int = 0, yOffset:int = 0)
Constructor.
SolidLinePart
Events
 Event Summary Defined By
  Dispatched when the value of the part changes as a result of its properties modifications.SolidLinePart
Property Detail
strokeproperty
stroke:IStroke

The stroke used by this part.

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


Implementation
    public function get stroke():IStroke
    public function set stroke(value:IStroke):void
xOffsetproperty 
xOffset:int

The offset on the x-axis in pixel to apply to the projected line.

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


Implementation
    public function get xOffset():int
    public function set xOffset(value:int):void
yOffsetproperty 
yOffset:int

The offset on the y-axis in pixel to apply to the projected line.

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


Implementation
    public function get yOffset():int
    public function set yOffset(value:int):void
Constructor Detail
SolidLinePart()Constructor
public function SolidLinePart(stroke:IStroke = null, xOffset:int = 0, yOffset:int = 0)

Constructor.

Parameters
stroke:IStroke (default = null) — The stroke used by this part.
 
xOffset:int (default = 0) — The offset on the x-axis in pixel to apply to the projected line.
 
yOffset:int (default = 0) — The offset on the y-axis in pixel to apply to the projected line.
Event Detail
change Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.CHANGE

Dispatched when the value of the part changes as a result of its properties modifications.