Packagecom.degrafa
Classpublic class GraphicPointEX
InheritanceGraphicPointEX Inheritance DegrafaObject
ImplementsIGraphicPoint

Extended Degrafa event enabled point definition.

See also

flash.geom.Point


Public Properties
 PropertyDefined by
  data : String
GraphicPointEX short hand data value.
GraphicPointEX
 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
  length : Number
[read-only] The length from (0,0) to this point.
GraphicPointEX
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  point : Point
The internal point object.
GraphicPointEX
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  x : Number
The x-coordinate of the point.
GraphicPointEX
  y : Number
The y-coordinate of the point.
GraphicPointEX
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
GraphicPointEX(x:Number = 0, y:Number = 0)
Constructor.
GraphicPointEX
  
add(v:Point):Point
Adds the coordinates of another point to the coordinates of this point to create a new point.
GraphicPointEX
 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
  
clone():Point
Creates a copy of this Point object.
GraphicPointEX
 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
  
distance(pt1:Point, pt2:Point):Number
[static] Returns the distance between pt1 and pt2.
GraphicPointEX
  
equals(toCompare:Point):Boolean
Determines whether two points are equal.
GraphicPointEX
 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
  
interpolate(pt1:Point, pt2:Point, f:Number):Point
[static] Determines a point between two specified points.
GraphicPointEX
  
normalize(thickness:Number):void
Scales the line segment between (0,0) and the current point to a set length.
GraphicPointEX
  
offset(dx:Number, dy:Number):void
Offsets the Point object by the specified amount.
GraphicPointEX
  
polar(len:Number, angle:Number):Point
[static] Converts a pair of polar coordinates to a Cartesian point coordinate.
GraphicPointEX
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
  
subtract(v:Point):Point
Subtracts the coordinates of another point from the coordinates of this point to create a new point.
GraphicPointEX
 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
dataproperty
data:String  [read-write]

GraphicPointEX short hand data value.

The extended graphic point data property expects exactly 2 values x and y separated by spaces.

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

Implementation
    public function get data():String
    public function set data(value:String):void
lengthproperty 
length:Number  [read-only]

The length from (0,0) to this point.

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

Implementation
    public function get length():Number

See also

flash.geom.Point
pointproperty 
point:Point  [read-write]

The internal point object.

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

Implementation
    public function get point():Point
    public function set point(value:Point):void
xproperty 
x:Number  [read-write]

The x-coordinate of the point. 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 of the point. 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
GraphicPointEX()constructor
public function GraphicPointEX(x:Number = 0, y:Number = 0)

Constructor.

The graphic extended point constructor accepts 2 optional arguments that define it's x, and y coordinate values.

Parameters
x:Number (default = 0) — A number indicating the x-axis coordinate.
 
y:Number (default = 0) — A number indicating the y-axis coordinate.
Method detail
add()method
public function add(v:Point):Point

Adds the coordinates of another point to the coordinates of this point to create a new point.

Parameters
v:Point

Returns
Point

See also

flash.geom.Point
clone()method 
public function clone():Point

Creates a copy of this Point object.

Returns
Point

See also

flash.geom.Point
distance()method 
public static function distance(pt1:Point, pt2:Point):Number

Returns the distance between pt1 and pt2.

Parameters
pt1:Point
 
pt2:Point

Returns
Number

See also

flash.geom.Point
equals()method 
public function equals(toCompare:Point):Boolean

Determines whether two points are equal.

Parameters
toCompare:Point

Returns
Boolean

See also

flash.geom.Point
interpolate()method 
public static function interpolate(pt1:Point, pt2:Point, f:Number):Point

Determines a point between two specified points.

Parameters
pt1:Point
 
pt2:Point
 
f:Number

Returns
Point

See also

flash.geom.Point
normalize()method 
public function normalize(thickness:Number):void

Scales the line segment between (0,0) and the current point to a set length.

Parameters
thickness:Number

See also

flash.geom.Point
offset()method 
public function offset(dx:Number, dy:Number):void

Offsets the Point object by the specified amount.

Parameters
dx:Number
 
dy:Number

See also

flash.geom.Point
polar()method 
public static function polar(len:Number, angle:Number):Point

Converts a pair of polar coordinates to a Cartesian point coordinate.

Parameters
len:Number
 
angle:Number

Returns
Point

See also

flash.geom.Point
subtract()method 
public function subtract(v:Point):Point

Subtracts the coordinates of another point from the coordinates of this point to create a new point.

Parameters
v:Point

Returns
Point

See also

flash.geom.Point