Packagecom.boostworthy.geom
Classpublic class Line
InheritanceLine Inheritance Curve

The 'Line' class presents a data structure for representing a line.



Public Properties
 PropertyDefined by
 Inheritedcontrol : Point
Gets the control point of the curve.
Curve
 Inheritedend : Point
Gets the end point of the curve.
Curve
 Inheritedstart : Point
Gets the starting point of the curve.
Curve
Protected Properties
 PropertyDefined by
 Inheritedm_objControl : Point
A point object for storing information about the control point of this curve.
Curve
 Inheritedm_objEnd : Point
A point object for storing information about the end point of this curve.
Curve
 Inheritedm_objStart : Point
A point object for storing information about the start point of this curve.
Curve
Public Methods
 MethodDefined by
  
Line(objStart:Point, objEnd:Point)
Constructor.
Line
  
Clones this object.
Line
 Inherited
dispose():void
Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to 'null', etc.
Curve
  
draw(objGraphics:Graphics):void
Uses the data stored by this object to draw a line into the specified graphics object.
Line
Protected Methods
 MethodDefined by
 Inherited
init(objStart:Point, objEnd:Point, objControl:Point):void
Initializes this object.
Curve
Constructor detail
Line()constructor
public function Line(objStart:Point, objEnd:Point)

Constructor.

Parameters
objStart:Point — The start point of the line.
 
objEnd:Point — The end point of the line.
Method detail
clone()method
public override function clone():IPathSegment

Clones this object.

Returns
IPathSegment — A new curve object that is a clone of this object.
draw()method 
public override function draw(objGraphics:Graphics):void

Uses the data stored by this object to draw a line into the specified graphics object.

Parameters
objGraphics:Graphics — The graphics object to draw the line into.