| Package | com.degrafa.decorators.standard |
| Class | public class SVGDashLine |
| Inheritance | SVGDashLine RenderDecoratorBase DecoratorBase DegrafaObject |
| Property | Defined by | ||
|---|---|---|---|
| alternateStroke : IGraphicsStroke
alternateStroke permits an alternate stroke to be used instead of unstroked gaps (this is a degrafa extension, not part of SVG 1.1)
| SVGDashLine | ||
| _curveaccuracy : Number = 6
A value representing the accuracy used in determining the length
of curveTo curves.
| SVGDashLine | ||
| dashArray : Array
Gets the current lengths for dash sizes
| SVGDashLine | ||
| dashOffset : Number
Specifies the distance into the stroke to start the dash pattern
similar to the stroke-dashoffset setting in SVG.
| SVGDashLine | ||
| data : String
Allows a short hand property setting that is
similar to the stroke-dasharray setting in SVG.
| SVGDashLine | ||
| disableAlternateStroke : Boolean
when an alternateStroke is in use, this setting, if true (it defaults to false), will disable the alternate stroke, rendering the dash pattern
with unstroked gaps as per SVG's standard dash strokes.
| SVGDashLine | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
![]() | isInitialized : Boolean | DegrafaObject | |
| isValid : Boolean [read-only]
| SVGDashLine | ||
| matchCommonStrokeSettings : Boolean
when an alternateStroke is in use, this setting, if true (the default), matches weight, pixelHinting, caps, joints, scaleMode and miterLimit
with those of the primary stroke on the original geometry being decorated, otherwise the alternateStroke's own settings for these properties will be used
| SVGDashLine | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
![]() | objectBindings : Array | DegrafaObject | |
![]() | parent : IDegrafaObject
The current degrafa object parent.
| DegrafaObject | |
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| totalLength : Number [read-only]
Gets the total length of the dash sequence for dash on/dash-off combinations
| SVGDashLine | ||
| Method | Defined by | ||
|---|---|---|---|
| SVGDashLine | |||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| DegrafaObject | |
|
curveTo(cx:Number, cy:Number, x:Number, y:Number, graphics:Graphics):void
Draws a dashed curve in graphics using the current from the current drawing position to
(x, y) using the control point specified by (cx, cy).
| SVGDashLine | ||
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
| DegrafaObject | |
![]() |
end(stack:CommandStack):void
Called at the end of the render phase for the current object.
| DecoratorBase | |
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
|
initialize(stack:CommandStack):void
initialize override, to set up local reStroking support and adjust for dashoffset, nothing else is required at this point.
| SVGDashLine | ||
![]() |
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
| DegrafaObject | |
|
lineTo(x:Number, y:Number, graphics:Graphics):void
Draws a dashed line in graphics from the current drawing position
to (x, y).
| SVGDashLine | ||
|
moveTo(x:Number, y:Number, graphics:Graphics):void
Moves the current drawing position in graphics to (x, y).
| SVGDashLine | ||
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| DegrafaObject | |
| alternateStroke | property |
alternateStroke:IGraphicsStroke [read-write]alternateStroke permits an alternate stroke to be used instead of unstroked gaps (this is a degrafa extension, not part of SVG 1.1)
Implementation public function get alternateStroke():IGraphicsStroke
public function set alternateStroke(value:IGraphicsStroke):void
| _curveaccuracy | property |
public var _curveaccuracy:Number = 6A value representing the accuracy used in determining the length of curveTo curves.
| dashArray | property |
dashArray:Array [read-write]Gets the current lengths for dash sizes
Implementation public function get dashArray():Array
public function set dashArray(value:Array):void
| dashOffset | property |
dashOffset:Number [read-write]Specifies the distance into the stroke to start the dash pattern similar to the stroke-dashoffset setting in SVG. Negative values are permitted.
Implementation public function get dashOffset():Number
public function set dashOffset(value:Number):void
See also
| data | property |
data:String [read-write]Allows a short hand property setting that is similar to the stroke-dasharray setting in SVG. Populates dashArray from a comma-delimited list of values.
Implementation public function get data():String
public function set data(value:String):void
See also
| disableAlternateStroke | property |
disableAlternateStroke:Boolean [read-write]when an alternateStroke is in use, this setting, if true (it defaults to false), will disable the alternate stroke, rendering the dash pattern with unstroked gaps as per SVG's standard dash strokes.
Implementation public function get disableAlternateStroke():Boolean
public function set disableAlternateStroke(value:Boolean):void
| isValid | property |
isValid:Boolean [read-only]Implementation
public function get isValid():Boolean
| matchCommonStrokeSettings | property |
matchCommonStrokeSettings:Boolean [read-write]when an alternateStroke is in use, this setting, if true (the default), matches weight, pixelHinting, caps, joints, scaleMode and miterLimit with those of the primary stroke on the original geometry being decorated, otherwise the alternateStroke's own settings for these properties will be used
Implementation public function get matchCommonStrokeSettings():Boolean
public function set matchCommonStrokeSettings(value:Boolean):void
| totalLength | property |
totalLength:Number [read-only]Gets the total length of the dash sequence for dash on/dash-off combinations
Implementation public function get totalLength():Number
| SVGDashLine | () | constructor |
public function SVGDashLine()
| curveTo | () | method |
public override function curveTo(cx:Number, cy:Number, x:Number, y:Number, graphics:Graphics):voidDraws a dashed curve in graphics using the current from the current drawing position to (x, y) using the control point specified by (cx, cy).
Parameterscx:Number |
|
cy:Number |
|
x:Number |
|
y:Number |
|
graphics:Graphics |
| initialize | () | method |
public override function initialize(stack:CommandStack):voidinitialize override, to set up local reStroking support and adjust for dashoffset, nothing else is required at this point. If no stroke was originally set on the decorated geometry, no original stroke will be drawn.
Parametersstack:CommandStack |
| lineTo | () | method |
public override function lineTo(x:Number, y:Number, graphics:Graphics):voidDraws a dashed line in graphics from the current drawing position to (x, y).
Parametersx:Number |
|
y:Number |
|
graphics:Graphics |
| moveTo | () | method |
public override function moveTo(x:Number, y:Number, graphics:Graphics):voidMoves the current drawing position in graphics to (x, y).
Parametersx:Number |
|
y:Number |
|
graphics:Graphics |