Packagecom.degrafa.geometry.segment
Classpublic class MoveTo
InheritanceMoveTo Inheritance Segment Inheritance DegrafaObject
ImplementsISegment

A line (M,m) segment is defined by a target x-axis and y-axis point.

See also

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


Public Properties
 PropertyDefined by
 Inherited_absCoordType : Boolean = true
Coordinate type to be used for segment.
Segment
  bounds : Rectangle
[read-only] The tight bounds of this segment as represented by a Rectangle object.
MoveTo
 Inherited_commandStackItem : CommandStackItem
An Array of flash rendering commands that make up this element.
Segment
 InheritedcommandStackItem : CommandStackItem
Segment
 InheritedcoordinateType : String
Segment
  data : String
MoveTo short hand data value.
MoveTo
 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
 InheritedisInitialized : Boolean
DegrafaObject
 Inherited_isShortSequence : Boolean
Used for short sequence svg support specifically in a quad or cubic instance where the the mirror of the last control point is to be used as the new see svg specification S,s,T,t
Segment
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
  segmentType : String
[read-only] Return the segment type
MoveTo
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  x : Number
The x-coordinate to move to.
MoveTo
  y : Number
The y-coordinate to move to.
MoveTo
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
MoveTo(x:Number = 0, y:Number = 0, data:String = null, coordinateType:String = "absolute")
Constructor.
MoveTo
 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
  
computeSegment(firstPoint:Point, lastPoint:Point, lastControlPoint:Point, commandStack:CommandStack):void
Compute the segment adding instructions to the command stack.
MoveTo
 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.
MoveTo
 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.

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

Implementation
    public function get bounds():Rectangle
dataproperty 
data:String  [read-write]

MoveTo short hand data value.

The move to data property expects exactly 2 values x and y.

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

Implementation
    public function get data():String
    public function set data(value:String):void

See also

segmentTypeproperty 
segmentType:String  [read-only]

Return the segment type

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

Implementation
    public function get segmentType():String
xproperty 
x:Number  [read-write]

The x-coordinate to move to. If not specified a default value of 0 is used.

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

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

The y-coordinate to move to. If not specified a default value of 0 is used.

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

Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor detail
MoveTo()constructor
public function MoveTo(x:Number = 0, y:Number = 0, data:String = null, coordinateType:String = "absolute")

Constructor.

The MoveTo constructor accepts 4 optional arguments that define it's data, properties and a coordinate type.

Parameters
x:Number (default = 0) — A number indicating the x-coordinate to move to.
 
y:Number (default = 0) — A number indicating the y-coordinate to move to.
 
data:String (default = null) — A string indicating the data to be used for this segment.
 
coordinateType:String (default = "absolute") — A string indicating the coordinate type to be used for this segment.
Method detail
computeSegment()method
public function computeSegment(firstPoint:Point, lastPoint:Point, lastControlPoint:Point, commandStack:CommandStack):void

Compute the segment adding instructions to the command stack.

Parameters
firstPoint:Point
 
lastPoint:Point
 
lastControlPoint:Point
 
commandStack:CommandStack
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.