Packagecom.kraftner.justlineon
Classpublic class AbortRule

This class is a collection of rules to determine if a line should end at the Point where it is or not.

See also

com.kraftner.justlineon.lineservers.Lineserver
com.kraftner.justlineon.pointtransformers.PointTransformer


Public Methods
 MethodDefined by
  
AbortRule
  
AwayFromCenter(p:Point, distance:Number):Boolean
[static] Determines if the line is closer to the center of the Stage than a certain distance.
AbortRule
  
CloseToCenter(p:Point, distance:Number):Boolean
[static] Determines if the line is closer to the center of the Stage than a certain distance.
AbortRule
  
OutOfStage(p:Point, offset:Number = 0):Boolean
[static] Determines if the line has left the Stage or is a certain distance out of the Stage.
AbortRule
Constructor detail
AbortRule()constructor
public function AbortRule()
Method detail
AwayFromCenter()method
public static function AwayFromCenter(p:Point, distance:Number):Boolean

Determines if the line is closer to the center of the Stage than a certain distance. Aborts if too far away.

Parameters
p:Point — Point to check
 
distance:Number — maximum distance the Point should be away from the center of the Stage.

Returns
Boolean

See also

CloseToCenter()method 
public static function CloseToCenter(p:Point, distance:Number):Boolean

Determines if the line is closer to the center of the Stage than a certain distance. Aborts if too close.

Parameters
p:Point — Point to check
 
distance:Number — minimum distance the Point should be away from the center of the Stage.

Returns
Boolean

See also

OutOfStage()method 
public static function OutOfStage(p:Point, offset:Number = 0):Boolean

Determines if the line has left the Stage or is a certain distance out of the Stage.

Parameters
p:Point — Point to check
 
offset:Number (default = 0) — distance the Point can be out of the Stage

Returns
Boolean