Packagecom.yahoo.maps.api.widgets
Classpublic class CrosshairWidget
InheritanceCrosshairWidget Inheritance Widget Inheritance flash.display.Sprite
ImplementsIWidget

A UI widget that displays a cross hair.



Public Properties
 PropertyDefined by
 Inheritedalign : String
Widget
  color : uint
Get crosshair color
CrosshairWidget
  hairWidth : Number
Get crosshair width
CrosshairWidget
  innersize : uint
Get crosshair inner size
CrosshairWidget
 Inheritedmap : IYahooMap
Widget
  outersize : uint
Get crosshair outer size
CrosshairWidget
Public Methods
 MethodDefined by
  
Creates a new CrosshairWidget object.
CrosshairWidget
 Inherited
destroy():void
Prepares this object for garbage-collection.
Widget
 Inherited
Widget
  
Map resize event handler
CrosshairWidget
  
Map type change event handler.
CrosshairWidget
 Inherited
Widget
Protected Methods
 MethodDefined by
 Inherited
alignWidget():void
Widget
Property detail
colorproperty
color:uint  [read-write]

Get crosshair color

Implementation
    public function get color():uint
    public function set color(value:uint):void
hairWidthproperty 
hairWidth:Number  [read-write]

Get crosshair width

Implementation
    public function get hairWidth():Number
    public function set hairWidth(value:Number):void
innersizeproperty 
innersize:uint  [read-write]

Get crosshair inner size

Implementation
    public function get innersize():uint
    public function set innersize(value:uint):void
outersizeproperty 
outersize:uint  [read-write]

Get crosshair outer size

Implementation
    public function get outersize():uint
    public function set outersize(value:uint):void
Constructor detail
CrosshairWidget()constructor
public function CrosshairWidget(map:IYahooMap)

Creates a new CrosshairWidget object.

Parameters
map:IYahooMap
Method detail
onMapResize()method
public override function onMapResize(event:YahooMapEvent):void

Map resize event handler

Parameters
event:YahooMapEvent
onMapTypeChanged()method 
public override function onMapTypeChanged(event:YahooMapEvent):void

Map type change event handler.

Parameters
event:YahooMapEvent