| Package | com.kraftner.justlineon.painters |
| Class | public class Painter |
| Inheritance | Painter flash.display.Sprite |
| Subclasses | DotPainter, EndpointPainter, RibbonPainter |
This Class defines the base functionality of all Painters. It only draws a grey line for each Segment. Therefore this Painter is ideal for debugging.
| Property | Defined by | ||
|---|---|---|---|
| bitmap : Bitmap
Bitmap in which the drawn graphics are dumped to improve performance.
| Painter | ||
| bitmapData : BitmapData
BitmapData in which the drawn graphics are dumped to improve performance.
| Painter | ||
| canvas : Shape
Shape in which the graphics are drawn.
| Painter | ||
| palettes : Vector
Stores the palettes this Painter uses
| Painter | ||
| Method | Defined by | ||
|---|---|---|---|
|
Painter()
Constructor method
| Painter | ||
|
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
Method being called when the previous Segment was a start-Segment
| Painter | ||
|
drawStandard(s:Segment):Boolean
Method that handles a normal Segment
| Painter | ||
|
Method being called when the current Segment is a start-Segment
| Painter | ||
|
init():void
Method that is called once when the Painter is instantiated.
| Painter | ||
| bitmap | property |
protected var bitmap:BitmapBitmap in which the drawn graphics are dumped to improve performance.
| bitmapData | property |
protected var bitmapData:BitmapDataBitmapData in which the drawn graphics are dumped to improve performance.
| canvas | property |
protected var canvas:ShapeShape in which the graphics are drawn.
| palettes | property |
protected var palettes:VectorStores the palettes this Painter uses
| Painter | () | constructor |
public function Painter()Constructor method
| addPalette | () | method |
public function addPalette(palette:Palette):voidAdds a Palette to this Painter
Parameterspalette:Palette — Palette to add to this Painter
|
See also
| destroy | () | method |
public function destroy():void
| draw | () | method |
public function draw(s:Segment):BooleanMethod that is called by a Lineserver. In most cases you don't need to overwrite this in subclasses. Use drawStart, drawPrevStart and drawStandard instead.
Parameterss:Segment |
Boolean |
See also
| drawPrevStart | () | method |
protected function drawPrevStart(s:Segment):BooleanMethod being called when the previous Segment was a start-Segment
Parameterss:Segment |
Boolean |
See also
| drawStandard | () | method |
protected function drawStandard(s:Segment):BooleanMethod that handles a normal Segment
Parameterss:Segment |
Boolean |
See also
| drawStart | () | method |
protected function drawStart(s:Segment):BooleanMethod being called when the current Segment is a start-Segment
Parameterss:Segment |
Boolean |
See also
| dump | () | method |
public function dump():voidDumps the vector data from canvas to the Bitmap object
See also
| init | () | method |
protected function init():voidMethod that is called once when the Painter is instantiated. You may overwrite it in subclasses.