Packagecom.degrafa.decorators.standard
Classpublic class SVGDashLine
InheritanceSVGDashLine Inheritance RenderDecoratorBase Inheritance DecoratorBase Inheritance DegrafaObject



Public Properties
 PropertyDefined 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
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 InheritedisInitialized : 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
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
 InheritedsuppressEventProcessing : 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
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
SVGDashLine
 Inherited
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
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
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
 Inherited
end(stack:CommandStack):void
Called at the end of the render phase for the current object.
DecoratorBase
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
  
initialize override, to set up local reStroking support and adjust for dashoffset, nothing else is required at this point.
SVGDashLine
 Inherited
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
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
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
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
alternateStrokeproperty
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
_curveaccuracyproperty 
public var _curveaccuracy:Number = 6

A value representing the accuracy used in determining the length of curveTo curves.

dashArrayproperty 
dashArray:Array  [read-write]

Gets the current lengths for dash sizes

Implementation
    public function get dashArray():Array
    public function set dashArray(value:Array):void
dashOffsetproperty 
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

dataproperty 
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

dashArray
disableAlternateStrokeproperty 
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
isValidproperty 
isValid:Boolean  [read-only]Implementation
    public function get isValid():Boolean
matchCommonStrokeSettingsproperty 
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
totalLengthproperty 
totalLength:Number  [read-only]

Gets the total length of the dash sequence for dash on/dash-off combinations

Implementation
    public function get totalLength():Number
Constructor detail
SVGDashLine()constructor
public function SVGDashLine()
Method detail
curveTo()method
public override function 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).

Parameters
cx:Number
 
cy:Number
 
x:Number
 
y:Number
 
graphics:Graphics
initialize()method 
public override function initialize(stack:CommandStack):void

initialize 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.

Parameters
stack:CommandStack
lineTo()method 
public override function lineTo(x:Number, y:Number, graphics:Graphics):void

Draws a dashed line in graphics from the current drawing position to (x, y).

Parameters
x:Number
 
y:Number
 
graphics:Graphics
moveTo()method 
public override function moveTo(x:Number, y:Number, graphics:Graphics):void

Moves the current drawing position in graphics to (x, y).

Parameters
x:Number
 
y:Number
 
graphics:Graphics