Package | io.github.ycabon.markings.lineClasses |
Interface | public interface ILinePart extends flash.events.IEventDispatcher |
Implementors | DashedLinePart, IconPart, SolidLinePart |
See also
Property | Defined By | ||
---|---|---|---|
depth : int
Determines the order in which the line part is processed. | ILinePart |
Method | Defined 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 |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the value of the part changes as a result of its properties modifications. | ILinePart |
depth | property |
depth:int
Determines the order in which the line part is processed.
This value is set automatically by the AdvancedLineSymbol.
public function get depth():int
public function set depth(value:int):void
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.
|
change | Event |
flash.events.Event
flash.events.Event.CHANGE
Dispatched when the value of the part changes as a result of its properties modifications.