| Package | org.openscales.core.feature |
| Class | public class LabelFeature |
| Inheritance | LabelFeature Feature flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
![]() | attributes : Object | Feature | |
| bold : Boolean
To define if the label is bold or not
| LabelFeature | ||
| color : uint
To define the color of the label
| LabelFeature | ||
![]() | data : Object | Feature | |
![]() | dateCreation : String | Feature | |
| font : String
The font of the label
| LabelFeature | ||
![]() | geometry : Geometry | Feature | |
![]() | isEditable : Boolean
To know if the vector feature is editable when its
vector layer is in edit mode
| Feature | |
| italic : Boolean
To define if the label is italic or not
| LabelFeature | ||
| labelPoint : LabelPoint [read-only]
To get the geometry (the LabelPoint) of the LabelFeature
| LabelFeature | ||
![]() | layer : VectorLayer | Feature | |
![]() | left : Number [read-only] | Feature | |
| lonlat : Location [override]
| LabelFeature | ||
![]() | originalStyle : Style | Feature | |
![]() | selected : Boolean | Feature | |
| size : Number
The size of the label
| LabelFeature | ||
![]() | state : String | Feature | |
![]() | style : Style | Feature | |
![]() | top : Number [read-only] | Feature | |
| Method | Defined By | ||
|---|---|---|---|
LabelFeature(geom:LabelPoint = null, data:Object = null, style:Style = null, isEditable:Boolean = false)
Constructor class
| LabelFeature | ||
![]() | atPoint(lonlat:Location, toleranceLon:Number, toleranceLat:Number):Boolean
Determines if the feature is placed at the given point with a certain tolerance (or not). | Feature | |
![]() |
To obtain feature clone
| Feature | |
![]() | compatibleFeatures(features:Vector.<Feature>):Boolean [static] | Feature | |
destroy():void [override]
| LabelFeature | ||
draw():void [override]
| LabelFeature | ||
![]() | 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 | |
![]() | registerListeners():void | Feature | |
![]() | unregisterListeners():void | Feature | |
| bold | property |
bold:BooleanTo define if the label is bold or not
public function get bold():Boolean public function set bold(value:Boolean):void| color | property |
color:uintTo define the color of the label
public function get color():uint public function set color(value:uint):void| font | property |
font:StringThe font of the label
public function get font():String public function set font(value:String):void| italic | property |
italic:BooleanTo define if the label is italic or not
public function get italic():Boolean public function set italic(value:Boolean):void| labelPoint | property |
labelPoint:LabelPoint [read-only] To get the geometry (the LabelPoint) of the LabelFeature
public function get labelPoint():LabelPoint| lonlat | property |
lonlat:Location[override]
public function get lonlat():Location public function set lonlat(value:Location):void| size | property |
size:NumberThe size of the label
public function get size():Number public function set size(value:Number):void| LabelFeature | () | Constructor |
public function LabelFeature(geom:LabelPoint = null, data:Object = null, style:Style = null, isEditable:Boolean = false)Constructor class
Parametersgeom:LabelPoint (default = null) | |
data:Object (default = null) | |
style:Style (default = null) | |
isEditable:Boolean (default = false) |
| destroy | () | method |
override public function destroy():void
| draw | () | method |
override public function draw():void