Packagecom.degrafa.geometry.segment
Classpublic class Segment
InheritanceSegment Inheritance DegrafaObject
ImplementsIDegrafaObject
SubclassesClosePath, CubicBezierTo, EllipticalArcTo, HorizontalLineTo, LineTo, MoveTo, QuadraticBezierTo, VerticalLineTo

Base class for segment elements that make up path geometry.

Default MXML Propertydata



Public Properties
 PropertyDefined by
  coordinateType : String
Segment
  data : String
Allows a short hand property setting that is specific to and parsed by each geometry object.
Segment
 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
  invalidated : Boolean
Specifies whether this object is to be re calculated on the next cycle.
Segment
  isShortSequence : Boolean
Segment
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  segmentType : String
[read-only] Returns this segment type.
Segment
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
 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
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
 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
  
preDraw():void
Performs any pre calculation that is required to successfully render this element.
Segment
 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
coordinateTypeproperty
coordinateType:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get coordinateType():String
    public function set coordinateType(value:String):void
dataproperty 
data:String  [read-write]

Allows a short hand property setting that is specific to and parsed by each geometry object. Look at the various geometry objects to learn what this setting requires.

This property can be used as the source for data binding.

Implementation
    public function get data():String
    public function set data(value:String):void
invalidatedproperty 
public var invalidated:Boolean

Specifies whether this object is to be re calculated on the next cycle.

isShortSequenceproperty 
isShortSequence:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get isShortSequence():Boolean
    public function set isShortSequence(value:Boolean):void
segmentTypeproperty 
segmentType:String  [read-only]

Returns this segment type.

This property can be used as the source for data binding.

Implementation
    public function get segmentType():String
Method detail
preDraw()method
public function preDraw():void

Performs any pre calculation that is required to successfully render this element. Including bounds calculations and lower level drawing command storage. Each geometry object overrides this and is responsible for it's own pre calculation cycle.