Packageio.github.ycabon.markings.lineClasses
Interfacepublic interface ILinePart extends flash.events.IEventDispatcher
Implementors DashedLinePart, IconPart, SolidLinePart

The ILinePart interface is used to define objects that can be used as part of a collection in an AdvancedLineSymbol.

See also

io.github.ycabon.markings.AdvancedLineSymbol


Public Properties
 PropertyDefined By
  depth : int
Determines the order in which the line part is processed.
ILinePart
Public Methods
 MethodDefined By
  
beginDraw(sprite:Sprite):void
Initialize the drawing of the line.
ILinePart
  
draw(sprite:Sprite, attributes:Object, polylineView:SegmentsView, pool:SpritePool):void
Function called by the AdvancedLineSymbol to draw the polyline on the sprite.
ILinePart
  
endDraw(sprite:Sprite):void
End the drawing of the line.
ILinePart
Events
 Event Summary Defined By
  Dispatched when the value of the part changes as a result of its properties modifications.ILinePart
Property Detail
depthproperty
depth:int

Determines the order in which the line part is processed.

This value is set automatically by the AdvancedLineSymbol.


Implementation
    public function get depth():int
    public function set depth(value:int):void
Method Detail
beginDraw()method
public function beginDraw(sprite:Sprite):void

Initialize the drawing of the line.

This function is called by the AdvancedLineSymbol before draw() is called.

One typical implementation is to clear the sprite.

Parameters

sprite:Sprite — The sprite object that will be drawn.

draw()method 
public function draw(sprite:Sprite, attributes:Object, polylineView:SegmentsView, pool:SpritePool):void

Function called by the AdvancedLineSymbol to draw the polyline on the sprite.

Parameters

sprite:Sprite — The sprite object that will be drawn.
 
attributes:Object — The object containing the attributes of the Graphic.
 
polylineView:SegmentsView — The helper object containing the screen coordinates of the Polyline.
 
pool:SpritePool — A pool of sprites to easily add and remove sub-sprites to the sprite.

endDraw()method 
public function endDraw(sprite:Sprite):void

End the drawing of the line.

Parameters

sprite:Sprite — The sprite object that will be drawn.

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.