Package | io.github.ycabon.markings.lineClasses |
Class | public class DashedLinePart |
Inheritance | DashedLinePart flash.events.EventDispatcher |
Implements | ILinePart |
This part draws the line using blank gaps and 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:DashedLinePart pattern"[10, 5]"> <s:SolidColorStroke alpha="1" color="0xDD0000" weight="6"/> </mk:SolidLinePart> </s:ArrayList> </mk:AdvancedLineSymbol> ...MXML SyntaxHide MXML Syntax
The <mk:DashedLinePart>
tag inherits all the tag attributes
of its superclass, and adds the following tag attributes:
<mk:DashedLinePart Properties stroke="null" xOffset="0" yOffset="0" pattern="[5, 5]" inverse="false" />
Default MXML Propertystroke
See also
Property | Defined By | ||
---|---|---|---|
inverse : Boolean
Indicates if the pattern begin by a dash or by a gap. | DashedLinePart | ||
pattern : Array
The pattern used to draw dashes, in pixels. | DashedLinePart | ||
stroke : IStroke
The stroke used by this part. | DashedLinePart | ||
xOffset : int
The offset on the x-axis in pixel to apply to the projected line. | DashedLinePart | ||
yOffset : int
The offset on the y-axis in pixel to apply to the projected line. | DashedLinePart |
Method | Defined By | ||
---|---|---|---|
DashedLinePart(stroke:IStroke = null, xOffset:int = 0, yOffset:int = 0, pattern:Array = null, inverse:Boolean = false)
Constructor. | DashedLinePart |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the value of the part changes as a result of its properties modifications. | DashedLinePart |
inverse | property |
inverse:Boolean
Indicates if the pattern begin by a dash or by a gap.
The default value is false
, which means that the pattern begins by a dash.
The default value is false
.
This property can be used as the source for data binding.
public function get inverse():Boolean
public function set inverse(value:Boolean):void
See also
pattern | property |
pattern:Array
The pattern used to draw dashes, in pixels.
The part draw the first value in pixels, then apply a gap of the length of the second value, and so on.
This behavior can be changed using the inverse
property.
The default value is [5, 5]
.
The default value is [5, 5]
.
This property can be used as the source for data binding.
public function get pattern():Array
public function set pattern(value:Array):void
See also
stroke | property |
stroke:IStroke
The 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: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.
public function get xOffset():int
public function set xOffset(value:int):void
yOffset | property |
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.
public function get yOffset():int
public function set yOffset(value:int):void
DashedLinePart | () | Constructor |
public function DashedLinePart(stroke:IStroke = null, xOffset:int = 0, yOffset:int = 0, pattern:Array = null, inverse:Boolean = false)
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.
| |
pattern:Array (default = null ) — The pattern used to draw dashes, in pixels.
| |
inverse:Boolean (default = false ) — if true the pattern begin by a gap.
|
change | Event |
flash.events.Event
flash.events.Event.CHANGE
Dispatched when the value of the part changes as a result of its properties modifications.