| Package | com.kraftner.justlineon |
| Class | public class Segment |
See also
| Property | Defined by | ||
|---|---|---|---|
| angle : Number
angle of this Segment
| Segment | ||
| bisect_x : Number [read-only]
x value of the Bisection Point of this Segment.
| Segment | ||
| bisect_y : Number [read-only]
y value of the Bisection Point of this Segment.
| Segment | ||
| length : Number
length of this Segment
| Segment | ||
| prev_angle : Number [read-only]
angle of the previous Segment
| Segment | ||
| prev_bisect_x : Number [read-only]
x value of the Bisection Point of the previous Segment.
| Segment | ||
| prev_bisect_y : Number [read-only]
y value of the Bisection Point of the previous Segment.
| Segment | ||
| prev_length : Number [read-only]
length of the previous segment
| Segment | ||
| prev_rel_x : Number [read-only]
x value of the vector of the previous Segment.
| Segment | ||
| prev_rel_y : Number [read-only]
y value of the vector of the previous Segment.
| Segment | ||
| prev_start : Boolean [read-only]
true if the previous segment was the first segment of a line
(Except in the case the previous line had lust one Segment this means that this is the second segment of a line.) | Segment | ||
| prev_x : Number [read-only]
x-coordinate of the endpoint of the previous Segment which also is the startpoint of this segment.
| Segment | ||
| prev_y : Number [read-only]
y-coordinate of the endpoint of the previous Segment which also is the startpoint of this segment.
| Segment | ||
| rel_x : Number
x value of the vector of this Segment.
| Segment | ||
| rel_y : Number
y value of the vector of this Segment.
| Segment | ||
| start : Boolean
true if this is the first segment of a line
| Segment | ||
| x : Number
x-coordinate of the endpoint of this Segment
| Segment | ||
| y : Number
y-coordinate of the endpoint of this Segment
| Segment | ||
| Method | Defined by | ||
|---|---|---|---|
| Segment | |||
|
getPrevRibbonDistance():Number
This is only in use for the RibbonPainter.
| Segment | ||
|
getRibbonDistance(min:Number = 1, max:Number = 10, maxJumpPerc:Number = 5):Number
This is only in use for the RibbonPainter.
| Segment | ||
| angle | property |
angle:Number [read-write]angle of this Segment
Implementation public function get angle():Number
public function set angle(value:Number):void
See also
| bisect_x | property |
bisect_x:Number [read-only]x value of the Bisection Point of this Segment. This is the x-coordinate of the point in the middle between the endpoint and the startpoint of this Segment.
Implementation public function get bisect_x():Number
See also
| bisect_y | property |
bisect_y:Number [read-only]y value of the Bisection Point of this Segment. This is the y-coordinate of the point in the middle between the endpoint and the startpoint of this Segment.
Implementation public function get bisect_y():Number
See also
| length | property |
length:Number [read-write]length of this Segment
Implementation public function get length():Number
public function set length(value:Number):void
See also
| prev_angle | property |
prev_angle:Number [read-only]angle of the previous Segment
Implementation public function get prev_angle():Number
See also
| prev_bisect_x | property |
prev_bisect_x:Number [read-only]x value of the Bisection Point of the previous Segment. This is the x-coordinate of the point in the middle between the endpoint and the startpoint of the previous Segment.
Implementation public function get prev_bisect_x():Number
See also
| prev_bisect_y | property |
prev_bisect_y:Number [read-only]y value of the Bisection Point of the previous Segment. This is the y-coordinate of the point in the middle between the endpoint and the startpoint of the previous Segment.
Implementation public function get prev_bisect_y():Number
See also
| prev_length | property |
prev_length:Number [read-only]length of the previous segment
Implementation public function get prev_length():Number
See also
| prev_rel_x | property |
prev_rel_x:Number [read-only]x value of the vector of the previous Segment. This is the difference between the x-coordinate of the endpoint and the startpoint of the previous Segment.
Implementation public function get prev_rel_x():Number
See also
| prev_rel_y | property |
prev_rel_y:Number [read-only]y value of the vector of the previous Segment. This is the difference between the y-coordinate of the endpoint and the startpoint of the previous Segment.
Implementation public function get prev_rel_y():Number
See also
| prev_start | property |
prev_start:Boolean [read-only]true if the previous segment was the first segment of a line
(Except in the case the previous line had lust one Segment this means that this is the second segment of a line.)
Implementation public function get prev_start():Boolean
See also
| prev_x | property |
prev_x:Number [read-only]x-coordinate of the endpoint of the previous Segment which also is the startpoint of this segment.
Implementation public function get prev_x():Number
See also
| prev_y | property |
prev_y:Number [read-only]y-coordinate of the endpoint of the previous Segment which also is the startpoint of this segment.
Implementation public function get prev_y():Number
See also
| rel_x | property |
rel_x:Number [read-write]x value of the vector of this Segment. This is the difference between the x-coordinate of the endpoint and the startpoint of this Segment.
Implementation public function get rel_x():Number
public function set rel_x(value:Number):void
See also
| rel_y | property |
rel_y:Number [read-write]y value of the vector of this Segment. This is the difference between the y-coordinate of the endpoint and the startpoint of this Segment.
Implementation public function get rel_y():Number
public function set rel_y(value:Number):void
See also
| start | property |
start:Boolean [read-write]true if this is the first segment of a line
Implementation public function get start():Boolean
public function set start(value:Boolean):void
See also
| x | property |
x:Number [read-write]x-coordinate of the endpoint of this Segment
Implementation public function get x():Number
public function set x(value:Number):void
See also
| y | property |
y:Number [read-write]y-coordinate of the endpoint of this Segment
Implementation public function get y():Number
public function set y(value:Number):void
See also
| Segment | () | constructor |
public function Segment(x:Number, y:Number, prevSegment:Segment = null, start:Boolean = false)Parameters
x:Number |
|
y:Number |
|
prevSegment:Segment (default = null) |
|
start:Boolean (default = false) |
| getPrevRibbonDistance | () | method |
public function getPrevRibbonDistance():NumberThis is only in use for the RibbonPainter. It defines the width of a ribbon being the distance from the original line of the previous Segment.
ReturnsNumber — distance from the original line of the previous Segment
|
See also
| getRibbonDistance | () | method |
public function getRibbonDistance(min:Number = 1, max:Number = 10, maxJumpPerc:Number = 5):NumberThis is only in use for the RibbonPainter. It defines the width of a ribbon being the distance from the original line.
Parametersmin:Number (default = 1) — Minimum distance from the original line
|
|
max:Number (default = 10) — Maximum distance from the original line
|
|
maxJumpPerc:Number (default = 5) — Maximum difference between the distance of this Segment and the distance of the previous Segment
|
Number — distance from the original line
|
See also