| Package | com.kraftner.justlineon.painters |
| Class | public class DotPainter |
| Inheritance | DotPainter Painter flash.display.Sprite |
| Method | Defined by | ||
|---|---|---|---|
|
DotPainter(chance:Number, min_widthDivisor:Number, max_widthDivisor:Number, border:Boolean, borderWidth:Number)
| DotPainter | ||
![]() |
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.
| DotPainter | ||
|
drawStandard(s:Segment):Boolean
Dot-drawing method
| DotPainter | ||
|
Nothing is drawn at the End of a Segment but the current color of the palettes is changed.
| DotPainter | ||
|
init():void
| DotPainter | ||
| DotPainter | () | constructor |
public function DotPainter(chance:Number, min_widthDivisor:Number, max_widthDivisor:Number, border:Boolean, borderWidth:Number)Parameters
chance:Number — Chance that circle(s) is drawn. This Chance is represented by a Number between 0 and 1, 0 meaning that the circle(s) will never be drawn and 1 meaning it/they is/are always drawn.
|
|
min_widthDivisor:Number — The size of the circle(s) is relative to the length of the current segment. The minimum size of the circle(s) is determined by this value. Minimum width of circle(s) = Length of Segment / this parameter |
|
max_widthDivisor:Number — The size of the circle(s) is relative to the length of the current segment. The maximum size of the circle(s) is determined by this value. Maximum width of circle(s) = 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):BooleanDot-drawing method
Parameterss:Segment |
Boolean |
| drawStart | () | method |
protected override function drawStart(s:Segment):BooleanNothing is drawn at the End of a Segment but the current color of the palettes is changed.
Parameterss:Segment |
Boolean |
| init | () | method |
protected override function init():void