| Package | io.github.ycabon.markings.lineClasses |
| Class | public class SolidLinePart |
| Inheritance | SolidLinePart flash.events.EventDispatcher |
| Implements | ILinePart |
This part is very efficient and draws the line using strokes from the Flex SDK:
SolidColorStroke - lets you specify a solid filled stroke.
LinearGradientStroke - lets you specify a linear gradient filled stroke.
RadialGradientStroke - lets you specify a radial gradient filled stroke.
...
<mk:AdvancedLineSymbol>
<s:ArrayList>
<mk:SolidLinePart yOffset="5">
<s:SolidColorStroke alpha="1"
color="0xDD0000"
weight="6"/>
</mk:SolidLinePart>
</s:ArrayList>
</mk:AdvancedLineSymbol>
...
MXML Syntax
Hide MXML SyntaxThe <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
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
SolidLinePart(stroke:IStroke = null, xOffset:int = 0, yOffset:int = 0)
Constructor. | SolidLinePart | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the value of the part changes as a result of its properties modifications. | SolidLinePart | |||
| stroke | property |
stroke:IStrokeThe stroke used by this part.
This property can be used as the source for data binding.
public function get stroke():IStroke public function set stroke(value:IStroke):void| xOffset | property |
xOffset:intThe offset on the x-axis in pixel to apply to the projected line.
This property can be used as the source for data binding.
public function get xOffset():int public function set xOffset(value:int):void| yOffset | property |
yOffset:intThe offset on the y-axis in pixel to apply to the projected line.
This property can be used as the source for data binding.
public function get yOffset():int public function set yOffset(value:int):void| SolidLinePart | () | Constructor |
public function SolidLinePart(stroke:IStroke = null, xOffset:int = 0, yOffset:int = 0)Constructor.
Parametersstroke: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.
|
| change | Event |
flash.events.Eventflash.events.Event.CHANGEDispatched when the value of the part changes as a result of its properties modifications.