| Package | org.openscales.core.handler.feature.draw |
| Class | public class DrawPathHandler |
| Inheritance | DrawPathHandler AbstractDrawHandler Handler Object |
| Subclasses | Distance, DrawSegmentHandler |
| Property | Defined By | ||
|---|---|---|---|
![]() | active : Boolean
Getter and setter of the boolean defining the activity of the handler
| Handler | |
| currentLineStringFeature : LineStringFeature | DrawPathHandler | ||
| drawContainer : Sprite [read-only] | DrawPathHandler | ||
![]() | drawLayer : VectorLayer
The layer concerned by the drawing Operation
| AbstractDrawHandler | |
| id : Number | DrawPathHandler | ||
| lastPoint : Point | DrawPathHandler | ||
| lineString : LineString | DrawPathHandler | ||
| map : Map [override]
| DrawPathHandler | ||
| newFeature : Boolean | DrawPathHandler | ||
| startPoint : Pixel | DrawPathHandler | ||
| style : Style
The style of the path
| DrawPathHandler | ||
![]() | toggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's
activity changes
| Handler | |
| Property | Defined By | ||
|---|---|---|---|
| _currentLineStringFeature : LineStringFeature = null
The LineStringfeature currently drawn
| DrawPathHandler | ||
| Method | Defined By | ||
|---|---|---|---|
DrawPathHandler constructor
| DrawPathHandler | ||
drawFinalPath():void
Finish the LineString
| DrawPathHandler | ||
mouseDblClick(Lastpx:Pixel = null):void
This function occured when a double click occured
during the drawing operation
| DrawPathHandler | ||
temporaryLine(evt:MouseEvent):void
Update the temporary line
| DrawPathHandler | ||
| Method | Defined By | ||
|---|---|---|---|
drawLine(event:MouseEvent = null):void | DrawPathHandler | ||
registerListeners():void [override] | DrawPathHandler | ||
unregisterListeners():void [override] | DrawPathHandler | ||
updateZoom(evt:MapEvent):void | DrawPathHandler | ||
| _currentLineStringFeature | property |
protected var _currentLineStringFeature:LineStringFeature = nullThe LineStringfeature currently drawn
| currentLineStringFeature | property |
currentLineStringFeature:LineStringFeature public function get currentLineStringFeature():LineStringFeature public function set currentLineStringFeature(value:LineStringFeature):void| drawContainer | property |
drawContainer:Sprite [read-only] public function get drawContainer():Sprite| id | property |
id:Number public function get id():Number public function set id(value:Number):void| lastPoint | property |
lastPoint:Point public function get lastPoint():Point public function set lastPoint(value:Point):void| lineString | property |
lineString:LineString public function get lineString():LineString public function set lineString(value:LineString):void| map | property |
map:Map[override]
public function get map():Map public function set map(value:Map):void| newFeature | property |
newFeature:Boolean public function get newFeature():Boolean public function set newFeature(value:Boolean):void| startPoint | property |
startPoint:Pixel public function get startPoint():Pixel public function set startPoint(value:Pixel):void| style | property |
style:StyleThe style of the path
public function get style():Style public function set style(value:Style):void| DrawPathHandler | () | Constructor |
public function DrawPathHandler(map:Map = null, active:Boolean = false, drawLayer:VectorLayer = null)DrawPathHandler constructor
Parametersmap:Map (default = null) | |
active:Boolean (default = false) | |
drawLayer:VectorLayer (default = null) — The layer on which we'll draw
|
| drawFinalPath | () | method |
public function drawFinalPath():voidFinish the LineString
| drawLine | () | method |
protected function drawLine(event:MouseEvent = null):voidParameters
event:MouseEvent (default = null) |
| mouseDblClick | () | method |
public function mouseDblClick(Lastpx:Pixel = null):voidThis function occured when a double click occured during the drawing operation
Parameters
Lastpx:Pixel (default = null) — The position of the double click pixel
|
| registerListeners | () | method |
override protected function registerListeners():void| temporaryLine | () | method |
public function temporaryLine(evt:MouseEvent):voidUpdate the temporary line
Parameters
evt:MouseEvent |
| unregisterListeners | () | method |
override protected function unregisterListeners():void| updateZoom | () | method |