| Package | com.degrafa.geometry.segment |
| Class | public class Segment |
| Inheritance | Segment DegrafaObject |
| Implements | IDegrafaObject |
| Subclasses | ClosePath, CubicBezierTo, EllipticalArcTo, HorizontalLineTo, LineTo, MoveTo, QuadraticBezierTo, VerticalLineTo |
Default MXML Propertydata
| Property | Defined by | ||
|---|---|---|---|
| coordinateType : String | Segment | ||
| data : String
Allows a short hand property setting that is
specific to and parsed by each geometry object.
| Segment | ||
![]() | 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 | |
| invalidated : Boolean
Specifies whether this object is to be re calculated
on the next cycle.
| Segment | ||
| isShortSequence : Boolean | Segment | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
| segmentType : String [read-only]
Returns this segment type.
| Segment | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | |
![]() |
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 | |
![]() |
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 | |
![]() |
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 | ||
![]() |
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 | |
| coordinateType | property |
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
| data | property |
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
| invalidated | property |
public var invalidated:BooleanSpecifies whether this object is to be re calculated on the next cycle.
| isShortSequence | property |
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
| segmentType | property |
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
| preDraw | () | method |
public function preDraw():voidPerforms 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.