| Package | com.kraftner.justlineon.painters |
| Class | public class EndpointPainter |
| Inheritance | EndpointPainter Painter flash.display.Sprite |
| Method | Defined by | ||
|---|---|---|---|
|
EndpointPainter(form:Number, chance:Number, min_widthDivisor:Number, max_widthDivisor:Number, border:Boolean, borderWidth:Number)
| EndpointPainter | ||
![]() |
addPalette(palette:Palette):void
Adds a Palette to this Painter
| Painter | |
![]() |
destroy():void
| Painter | |
![]() |
Method that is called by a Lineserver.
| Painter | |
![]() |
dump():void
Dumps the vector data from canvas to the Bitmap object
| Painter | |
| Method | Defined by | ||
|---|---|---|---|
|
drawPrevStart(s:Segment):Boolean
Nothing is drawn at the Start of a Segment.
| EndpointPainter | ||
|
drawStandard(s:Segment):Boolean
Nothing is drawn for normal Segments.
| EndpointPainter | ||
|
Drawing Routine
| EndpointPainter | ||
|
init():void
| EndpointPainter | ||
| EndpointPainter | () | constructor |
public function EndpointPainter(form:Number, chance:Number, min_widthDivisor:Number, max_widthDivisor:Number, border:Boolean, borderWidth:Number)Parameters
form:Number — 0 draws circles, 1 draws squares
|
|
chance:Number — Chance that something is drawn. This Chance is represented by a Number between 0 and 1, 0 meaning that there's always something drawn and 1 meaning nothing is ever drawn.
|
|
min_widthDivisor:Number — The size of what is drawn relative to the length of the current segment. The minimum size is determined by this value. Minimum width = Length of Segment / this parameter |
|
max_widthDivisor:Number — The size of what is drawn relative to the length of the current segment. The maximum size is determined by this value. Maximum width = Length of Segment / this parameter |
|
border:Boolean — If true outlines are drawn. The first Color of the Palette of this Painter is used for the outline and therefore it isn't used for further drawing.
|
|
borderWidth:Number — Width of the outlines. Only used if border is true.
|
| drawPrevStart | () | method |
protected override function drawPrevStart(s:Segment):BooleanNothing is drawn at the Start of a Segment.
Parameterss:Segment |
Boolean |
| drawStandard | () | method |
protected override function drawStandard(s:Segment):BooleanNothing is drawn for normal Segments.
Parameterss:Segment |
Boolean |
| drawStart | () | method |
protected override function drawStart(s:Segment):BooleanDrawing Routine
Parameterss:Segment |
Boolean |
| init | () | method |
protected override function init():void