Packagecom.degrafa.geometry.segment
Classpublic class ClosePath
InheritanceClosePath Inheritance Segment Inheritance DegrafaObject
ImplementsISegment

The "closepath" (Z or z) ends the current subpath by drawing a straight line from the current point to current subpath's initial point.

See also

http://www.w3.org/TR/SVG/paths.html#PathDataClosePathCommand


Public Properties
 PropertyDefined by
  bounds : Rectangle
[read-only] The tight bounds of this segment as represented by a Rectangle object.
ClosePath
 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
 Inheritedinvalidated : Boolean
Specifies whether this object is to be re calculated on the next cycle.
Segment
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  segmentType : String
[read-only] Return the segment type
ClosePath
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
  commandStack : Array
An Array of flash rendering commands that make up this element.
ClosePath
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
ClosePath
 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
  
computeSegment(lastPoint:Point, firstPoint:Point, commandStack:Array):void
Compute the segment adding instructions to the command stack.
ClosePath
 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.
ClosePath
 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
boundsproperty
bounds:Rectangle  [read-only]

The tight bounds of this segment as represented by a Rectangle object.

Implementation
    public function get bounds():Rectangle
commandStackproperty 
protected var commandStack:Array

An Array of flash rendering commands that make up this element.

segmentTypeproperty 
segmentType:String  [read-only]

Return the segment type

Implementation
    public function get segmentType():String
Constructor detail
ClosePath()constructor
public function ClosePath()
Method detail
computeSegment()method
public function computeSegment(lastPoint:Point, firstPoint:Point, commandStack:Array):void

Compute the segment adding instructions to the command stack.

Parameters
lastPoint:Point
 
firstPoint:Point
 
commandStack:Array
preDraw()method 
public override 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.