| Package | com.degrafa |
| Class | public class GraphicPointEX |
| Inheritance | GraphicPointEX DegrafaObject |
| Implements | IGraphicPoint |
See also
| Property | Defined by | ||
|---|---|---|---|
| data : String
GraphicPointEX short hand data value.
| GraphicPointEX | ||
![]() | 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 | |
| length : Number [read-only]
The length from (0,0) to this point.
| GraphicPointEX | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
| point : Point
The internal point object.
| GraphicPointEX | ||
![]() | suppressEventProcessing : 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 | ||
| Method | Defined 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 | ||
![]() |
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 | ||
![]() |
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 | |
|
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 | ||
![]() |
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 | |
|
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 | ||
![]() |
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 | ||
![]() |
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 | |
| data | property |
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
| length | property |
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
| point | property |
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
| x | property |
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
| y | property |
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
| 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.
Parametersx:Number (default = 0) — A number indicating the x-axis coordinate.
|
|
y:Number (default = 0) — A number indicating the y-axis coordinate.
|
| add | () | method |
public function add(v:Point):PointAdds the coordinates of another point to the coordinates of this point to create a new point.
Parametersv:Point |
Point |
See also
| clone | () | method |
public function clone():PointCreates a copy of this Point object.
ReturnsPoint |
See also
| distance | () | method |
public static function distance(pt1:Point, pt2:Point):NumberReturns the distance between pt1 and pt2.
Parameterspt1:Point |
|
pt2:Point |
Number |
See also
| equals | () | method |
public function equals(toCompare:Point):BooleanDetermines whether two points are equal.
ParameterstoCompare:Point |
Boolean |
See also
| interpolate | () | method |
public static function interpolate(pt1:Point, pt2:Point, f:Number):PointDetermines a point between two specified points.
Parameterspt1:Point |
|
pt2:Point |
|
f:Number |
Point |
See also
| normalize | () | method |
public function normalize(thickness:Number):voidScales the line segment between (0,0) and the current point to a set length.
Parametersthickness:Number |
See also
| offset | () | method |
public function offset(dx:Number, dy:Number):voidOffsets the Point object by the specified amount.
Parametersdx:Number |
|
dy:Number |
See also
| polar | () | method |
public static function polar(len:Number, angle:Number):PointConverts a pair of polar coordinates to a Cartesian point coordinate.
Parameterslen:Number |
|
angle:Number |
Point |
See also
| subtract | () | method |
public function subtract(v:Point):PointSubtracts the coordinates of another point from the coordinates of this point to create a new point.
Parametersv:Point |
Point |
See also