Packageorg.openscales.core.control
Classpublic class PanZoomBar
InheritancePanZoomBar Inheritance PanZoom Inheritance Control Inheritance flash.display.Sprite

As the PanZoom control, it allows to pan and zoom in/out the map. It adds a vertical slider for zooming functionality



Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
Control
 Inheritedbuttons : Array
PanZoom
  map : Map
[write-only] Get the existing map
PanZoomBar
  mouseDragStart : Pixel
PanZoomBar
 Inheritedposition : Pixel
Control
 InheritedslideFactor : int
PanZoom
  slider : DisplayObject
PanZoomBar
  startTop : Number
PanZoomBar
 InheritedX : int = 4
[static]
PanZoom
 InheritedY : int = 4
[static]
PanZoom
  zoomBar : DisplayObject
PanZoomBar
  zoomStart : Pixel
PanZoomBar
  zoomStopHeight : Number
PanZoomBar
  zoomStopWidth : Number
PanZoomBar
Protected Properties
 PropertyDefined by
 Inherited_active : Boolean = false
Control
 InheritedeastMiniImg : Class
PanZoom
 Inherited_map : Map = null
Control
 InheritednorthMiniImg : Class
PanZoom
 InheritedsliderImg : Class
PanZoom
 InheritedsouthMiniImg : Class
PanZoom
 InheritedwestMiniImg : Class
PanZoom
 InheritedzoombarImg : Class
PanZoom
 InheritedzoomMinusMiniImg : Class
PanZoom
 InheritedzoomPlusMiniImg : Class
PanZoom
 InheritedzoomWorldMiniImg : Class
PanZoom
Public Methods
 MethodDefined by
  
PanZoomBar(position:Pixel = null)
PanZoomBar
 Inherited
_addButton(name:String, image:Bitmap, xy:Pixel, sz:Size, alt:String = null):void
Add button
PanZoom
  
_addZoomBar(centered:Pixel):Pixel
Add zoom bar (slider)
PanZoomBar
 Inherited
click(evt:Event):void
PanZoom
  
destroy():void
PanZoomBar
 Inherited
doubleClick(evt:Event):Boolean
PanZoom
  
draw():void
Draw buttons for zoom and pan of the map
PanZoomBar
  
moveZoomBar(evt:Event = null):void
PanZoomBar
  
passEventToSlider(evt:MouseEvent):void
PanZoomBar
  
redraw(obt:Object = null):void
Refresh
PanZoomBar
 Inherited
resize(event:MapEvent):void
Control
  
zoomBarClick(evt:MouseEvent):void
PanZoomBar
  
zoomBarDown(evt:MouseEvent):void
PanZoomBar
  
zoomBarDrag(evt:MouseEvent):void
PanZoomBar
  
zoomBarUp(evt:MouseEvent):void
PanZoomBar
Property detail
mapproperty
map:Map  [write-only]

Get the existing map

Implementation
    public function set map(value:Map):void
mouseDragStartproperty 
mouseDragStart:Pixel  [read-write]Implementation
    public function get mouseDragStart():Pixel
    public function set mouseDragStart(value:Pixel):void
sliderproperty 
slider:DisplayObject  [read-write]Implementation
    public function get slider():DisplayObject
    public function set slider(value:DisplayObject):void
startTopproperty 
startTop:Number  [read-write]Implementation
    public function get startTop():Number
    public function set startTop(value:Number):void
zoomBarproperty 
zoomBar:DisplayObject  [read-write]Implementation
    public function get zoomBar():DisplayObject
    public function set zoomBar(value:DisplayObject):void
zoomStartproperty 
zoomStart:Pixel  [read-write]Implementation
    public function get zoomStart():Pixel
    public function set zoomStart(value:Pixel):void
zoomStopHeightproperty 
zoomStopHeight:Number  [read-write]Implementation
    public function get zoomStopHeight():Number
    public function set zoomStopHeight(value:Number):void
zoomStopWidthproperty 
zoomStopWidth:Number  [read-write]Implementation
    public function get zoomStopWidth():Number
    public function set zoomStopWidth(value:Number):void
Constructor detail
PanZoomBar()constructor
public function PanZoomBar(position:Pixel = null)Parameters
position:Pixel (default = null)
Method detail
_addZoomBar()method
public function _addZoomBar(centered:Pixel):Pixel

Add zoom bar (slider)

Parameters
centered:Pixel

Returns
Pixel — Pixel
destroy()method 
public override function destroy():void
draw()method 
public override function draw():void

Draw buttons for zoom and pan of the map

moveZoomBar()method 
public function moveZoomBar(evt:Event = null):voidParameters
evt:Event (default = null)
passEventToSlider()method 
public function passEventToSlider(evt:MouseEvent):voidParameters
evt:MouseEvent
redraw()method 
public function redraw(obt:Object = null):void

Refresh

Parameters
obt:Object (default = null)
zoomBarClick()method 
public function zoomBarClick(evt:MouseEvent):voidParameters
evt:MouseEvent
zoomBarDown()method 
public function zoomBarDown(evt:MouseEvent):voidParameters
evt:MouseEvent
zoomBarDrag()method 
public function zoomBarDrag(evt:MouseEvent):voidParameters
evt:MouseEvent
zoomBarUp()method 
public function zoomBarUp(evt:MouseEvent):voidParameters
evt:MouseEvent