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

Package | org.openscales.core.popup
Class | public class Anchored
Inheritance | Anchored Popup flash.display.Sprite

Anchored popup, usually the anchor is a Feature

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | background : uint | Popup
|  | BACKGROUND : uint = 0xFFFFFF [static] | Popup
|  | BL : String = "bl" [static] | Anchored
|  | border : Number | Popup
|  | BORDER : Number = 2 [static] | Popup
|  | BR : String = "br" [static] | Anchored
|  | closeBox : Boolean | Popup
|  | feature : Feature [write-only] | Anchored
|  | HEIGHT : Number = 300 [static] | Popup
|  | htmlText : String | Popup
|  | lonlat : LonLat | Popup
|  | map : Map | Popup
|  | position : Pixel [write-only] | Anchored
|  | relativePosition : String | Anchored
|  | size : Size [write-only] | Anchored
|  | textfield : TextField | Popup
|  | TL : String = "tl" [static] | Anchored
|  | TR : String = "tr" [static] | Anchored
|  | WIDTH : Number = 300 [static] | Popup

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | Anchored(lonlat:LonLat = null, background:uint = 0, border:Number, size:Size = null, contentHTML:String = "", anchor:Sprite = null, closeBox:Boolean = true) | Anchored
|  | calculateNewPx(px:Pixel):Pixel | Anchored
|  | calculateRelativePosition(px:Pixel):String | Anchored
|  | closePopup(evt:MouseEvent):void | Popup
|  | destroy():void | Popup
|  | draw(px:Pixel = null):void | Anchored
|  | onZoomEnd(e:MapEvent):void | Popup
|  | onZoomStart(e:MapEvent):void | Popup

Protected Methods
Hide Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined by
--- | --- | ---
|  | createPopupContent():void | Popup

Property detail

BL | property

`public static var BL:String = "bl"`

BR | property |

`public static var BR:String = "br"`

feature | property |

`feature:Feature` [write-only]Implementation
`public function set feature(value:Feature):void`

position | property |

`position:Pixel` [write-only]Implementation
`public function set position(value:Pixel):void`

relativePosition | property |

`relativePosition:String` [read-write]Implementation
`public function get relativePosition():String`
`public function set relativePosition(value:String):void`

size | property |

`size:Size` [write-only]Implementation
`public function set size(value:Size):void`

TL | property |

`public static var TL:String = "tl"`

TR | property |

`public static var TR:String = "tr"`
Constructor detail

Anchored | () | constructor

`public function Anchored(lonlat:LonLat = null, background:uint = 0, border:Number, size:Size = null, contentHTML:String = "", anchor:Sprite = null, closeBox:Boolean = true)`Parameters

| `lonlat:LonLat` (default = `null`)``
| `background:uint` (default = `0`)``
| `border:Number`
| `size:Size` (default = `null`)``
| `contentHTML:String` (default = "``")``
| `anchor:Sprite` (default = `null`)``
| `closeBox:Boolean` (default = `true`)``

Method detail

calculateNewPx | () | method

`public function calculateNewPx(px:Pixel):Pixel` Parameters

| `px:Pixel`

Returns

| `Pixel`

calculateRelativePosition | () | method |

`public function calculateRelativePosition(px:Pixel):String` Parameters

| `px:Pixel`

Returns

| `String`

draw | () | method |

`public override function draw(px:Pixel = null):void` Parameters

| `px:Pixel` (default = `null`)``