API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class PointFeature

Package | org.openscales.core.feature
Class | public class PointFeature
Inheritance | PointFeature Feature flash.display.Sprite
Subclasses | Marker

Feature used to draw a Point geometry on FeatureLayer

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | attributes : Object | Feature
|  | data : Object | Feature
|  | editionFeatureParent : Feature | Feature
|  | editionFeatureParentGeometry : Collection the geometry of the parent when the feature is an edition feature | PointFeature
|  | editionFeaturesArray : Array ink to all temporary features used to edit the feature | Feature
|  | geometry : Geometry | Feature
|  | isEditable : Boolean To know if the vector feature is editable when its vector layer is in edit mode | Feature
|  | isEditionFeature : Boolean To know if the vector feature is a temporary vector only used for edition mode | Feature
|  | layer : Layer | Feature
|  | left : Number | Feature
|  | lonlat : LonLat [read-only] | PointFeature
|  | originalStyle : Style | Feature
|  | point : Point [read-only] | PointFeature
|  | selected : Boolean | Feature
|  | state : String | Feature
|  | style : Style | Feature
|  | top : Number | Feature

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | PointFeature(geom:Point = null, data:Object = null, style:Style = null, isEditionFeature:Boolean = false, editionFeatureParentGeometry:Collection = null) | PointFeature
|  | atPoint(lonlat:LonLat, toleranceLon:Number, toleranceLat:Number):Boolean Determines if the feature is placed at the given point with a certain tolerance (or not). | Feature
|  | clone():Feature To obtain feature clone | PointFeature
|  | compatibleFeatures(features:Array):Boolean [static] | Feature
|  | createEditionVertices(collection:Collection = null):void create edition vertice(Virtual) only for edition feature | Feature
|  | deleteEditionVertices():void delete edition vertice(Virtual) only for edition feature | Feature
|  | destroy():void | PointFeature
|  | draw():void | PointFeature
|  | getEditableClone():Feature o get an editable clone | Feature
|  | getSegmentsIntersection(collection:Collection, detectionTolerance:Number = 8):int To know the segment of the Collection the edition point belongs to | PointFeature
|  | onMouseClick(pevt:MouseEvent):void | Feature
|  | onMouseDoubleClick(pevt:MouseEvent):void | Feature
|  | onMouseDown(pevt:MouseEvent):void | Feature
|  | onMouseHover(pevt:MouseEvent):void Events Management | Feature
|  | onMouseMove(pevt:MouseEvent):void | Feature
|  | onMouseOut(pevt:MouseEvent):void | Feature
|  | onMouseUp(pevt:MouseEvent):void | Feature
|  | onScreen():Boolean Determines if the feature is visible on the screen | Feature
|  | refreshEditionVertices():void Refresh edition vertice(Virtual) only for edition feature | Feature
|  | registerListeners():void | Feature
|  | unregisterListeners():void | Feature

Protected Methods
Hide Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined by
--- | --- | ---
|  | acceptSymbolizer(symbolizer:Symbolizer):Boolean | Feature
|  | drawFlashGraphic(marker:DisplayObjectMarker, x:Number, y:Number):void | PointFeature
|  | drawMark(mark:WellKnownMarker, x:Number, y:Number):void | PointFeature
|  | executeDrawing(symbolizer:Symbolizer):void | PointFeature
|  | renderRule(rule:Rule):void | Feature

Property detail

editionFeatureParentGeometry | property

`editionFeatureParentGeometry:Collection` [read-write]

the geometry of the parent when the feature is an edition feature

Implementation
`public function get editionFeatureParentGeometry():Collection`
`public function set editionFeatureParentGeometry(value:Collection):void`

lonlat | property |

`lonlat:LonLat` [read-only]Implementation
`public function get lonlat():LonLat`

point | property |

`point:Point` [read-only]Implementation
`public function get point():Point`
Constructor detail

PointFeature | () | constructor

`public function PointFeature(geom:Point = null, data:Object = null, style:Style = null, isEditionFeature:Boolean = false, editionFeatureParentGeometry:Collection = null)`Parameters

| `geom:Point` (default = `null`)``
| `data:Object` (default = `null`)``
| `style:Style` (default = `null`)``
| `isEditionFeature:Boolean` (default = `false`)``
| `editionFeatureParentGeometry:Collection` (default = `null`)``

Method detail

clone | () | method

`public override function clone():Feature`

To obtain feature clone

Returns

| `Feature`

destroy | () | method |

`public override function destroy():void`

draw | () | method |

`public override function draw():void`

drawFlashGraphic | () | method |

`protected function drawFlashGraphic(marker:DisplayObjectMarker, x:Number, y:Number):void` Parameters

| `marker:DisplayObjectMarker`
| `x:Number`
| `y:Number`

drawMark | () | method |

`protected function drawMark(mark:WellKnownMarker, x:Number, y:Number):void` Parameters

| `mark:WellKnownMarker`
| `x:Number`
| `y:Number`

executeDrawing | () | method |

`protected override function executeDrawing(symbolizer:Symbolizer):void` Parameters

| `symbolizer:Symbolizer`

getSegmentsIntersection | () | method |

`public function getSegmentsIntersection(collection:Collection, detectionTolerance:Number = 8):int`

To know the segment of the Collection the edition point belongs to

Parameters

| `collection:Collection` — point to test
| `detectionTolerance:Number` (default = `8`)``

Returns

| `int` — the segment number