Packagecom.mapquest.tilemap.controls
Classpublic class DrawnBackgroundControl
InheritanceDrawnBackgroundControl Inheritance Control Inheritance flash.display.Sprite
SubclassesLargeZoomControl, PanControl, ZoomBarControl, ZoomControl



Public Properties
 PropertyDefined by
 InheritedCONTROL_LOGO : int = 4
[static]
Control
 InheritedCONTROL_PAN : int = 1
[static]
Control
 InheritedCONTROL_PANZOOM : int = 0
[static]
Control
 InheritedCONTROL_TYPE : int = 3
[static]
Control
 InheritedCONTROL_ZOOM : int = 2
[static]
Control
 InheritedPAN_EAST : Number = 2
[static]
Control
 InheritedPAN_NORTH : Number = 0
[static]
Control
 InheritedPAN_SOUTH : Number = 1
[static]
Control
 InheritedPAN_WEST : Number = 3
[static]
Control
Protected Properties
 PropertyDefined by
  background : ControlBackground
DrawnBackgroundControl
  backgroundAlpha : Number = 0.7
DrawnBackgroundControl
  backgroundColor : uint = 0xffffff
DrawnBackgroundControl
  backgroundEllipseHeight : Number = 14
DrawnBackgroundControl
  backgroundEllipseWidth : Number = 14
DrawnBackgroundControl
  backgroundHeight : Number
DrawnBackgroundControl
  backgroundWidth : Number
DrawnBackgroundControl
  borderAlpha : Number = 0.7
DrawnBackgroundControl
  borderColor : uint = 0x000000
DrawnBackgroundControl
  borderSize : Number = 1.0
DrawnBackgroundControl
  includeBackground : Boolean = true
DrawnBackgroundControl
 Inheritedmap : TileMap
Control
 Inheritedposition : MapCornerPlacement
Control
  roundedBackground : Boolean = true
DrawnBackgroundControl
  shadowAlpha : Number = 0.5
DrawnBackgroundControl
  shadowOffsetX : int = 4
DrawnBackgroundControl
  shadowOffsetY : int = 3
DrawnBackgroundControl
 Inheritedtype : int
Control
  useShadow : Boolean = true
DrawnBackgroundControl
Public Methods
 MethodDefined by
  
DrawnBackgroundControl
  
DrawnBackgroundControl
  
DrawnBackgroundControl
  
Gets height of the ellipse used to draw a rounded border around LargeZoomControl.
DrawnBackgroundControl
  
Gets width of the ellipse used to draw a rounded border around LargeZoomControl.
DrawnBackgroundControl
  
getBorderAlpha():Number
DrawnBackgroundControl
  
DrawnBackgroundControl
  
getBorderSize():Number
DrawnBackgroundControl
 Inherited
getHeight():int
Determines the height of the control by selecting the greatest height from all elements in the control subtree.
Control
  
DrawnBackgroundControl
 Inherited
Returns the position of the this control.
Control
 Inherited
getType():int
Control
 Inherited
getWidth():int
Determines the width of the control by selecting the greatest width from all elements in the the control subtree.
Control
 Inherited
initialize(map:TileMap):void
Initialize the Control.
Control
  
Returns true if a rounded background is shown, false if background is rectangle
DrawnBackgroundControl
 Inherited
isPrintable():Boolean
Control
  
setBackgroundAlpha(alpha:Number):void
Sets Alpha value for background, 0 to 1.0, of background
DrawnBackgroundControl
  
setBackgroundColor(color:uint):void
Sets Background color background
DrawnBackgroundControl
  
setBackgroundEllipseHeight(ellipseHeight:Number):void
Sets height of the ellipse used to draw a rounded border around LargeZoomControl.
DrawnBackgroundControl
  
setBackgroundEllipseWidth(ellipseWidth:Number):void
Sets width of the ellipse used to draw a rounded border around LargeZoomControl.
DrawnBackgroundControl
  
setBorderAlpha(alpha:Number):void
Sets Alpha value for border, 0 to 1.0
DrawnBackgroundControl
  
setBorderColor(color:uint):void
Sets border color of background
DrawnBackgroundControl
  
setBorderSize(size:Number):void
Sets border size in pixels of background
DrawnBackgroundControl
  
setIncludeBackground(includeBackground:Boolean):void
Sets background boolean
DrawnBackgroundControl
 Inherited
Control
 Inherited
setPrintable(b:Boolean):void
Control
  
setRoundedBackground(isRounded:Boolean):void
Sets true if a rounded background is shown, false if background is rectangle
DrawnBackgroundControl
Protected Methods
 MethodDefined by
  
draw():void
DrawnBackgroundControl
  
redraw():void
DrawnBackgroundControl
Property detail
backgroundproperty
protected var background:ControlBackground
backgroundAlphaproperty 
protected var backgroundAlpha:Number = 0.7
backgroundColorproperty 
protected var backgroundColor:uint = 0xffffff
backgroundEllipseHeightproperty 
protected var backgroundEllipseHeight:Number = 14
backgroundEllipseWidthproperty 
protected var backgroundEllipseWidth:Number = 14
backgroundHeightproperty 
protected var backgroundHeight:Number
backgroundWidthproperty 
protected var backgroundWidth:Number
borderAlphaproperty 
protected var borderAlpha:Number = 0.7
borderColorproperty 
protected var borderColor:uint = 0x000000
borderSizeproperty 
protected var borderSize:Number = 1.0
includeBackgroundproperty 
protected var includeBackground:Boolean = true
roundedBackgroundproperty 
protected var roundedBackground:Boolean = true
shadowAlphaproperty 
protected var shadowAlpha:Number = 0.5
shadowOffsetXproperty 
protected var shadowOffsetX:int = 4
shadowOffsetYproperty 
protected var shadowOffsetY:int = 3
useShadowproperty 
protected var useShadow:Boolean = true
Constructor detail
DrawnBackgroundControl()constructor
public function DrawnBackgroundControl()
Method detail
draw()method
protected function draw():void
getBackgroundAlpha()method 
public function getBackgroundAlpha():Number

Returns
Number
getBackgroundColor()method 
public function getBackgroundColor():uint

Returns
uint
getBackgroundEllipseHeight()method 
public function getBackgroundEllipseHeight():Number

Gets height of the ellipse used to draw a rounded border around LargeZoomControl.

Returns
Number
getBackgroundEllipseWidth()method 
public function getBackgroundEllipseWidth():Number

Gets width of the ellipse used to draw a rounded border around LargeZoomControl.

Returns
Number
getBorderAlpha()method 
public function getBorderAlpha():Number

Returns
Number
getBorderColor()method 
public function getBorderColor():uint

Returns
uint
getBorderSize()method 
public function getBorderSize():Number

Returns
Number
getIncludeBackground()method 
public function getIncludeBackground():Boolean

Returns
Boolean
isBackgroundRounded()method 
public function isBackgroundRounded():Boolean

Returns true if a rounded background is shown, false if background is rectangle

Returns
Boolean
redraw()method 
protected function redraw():void
setBackgroundAlpha()method 
public function setBackgroundAlpha(alpha:Number):void

Sets Alpha value for background, 0 to 1.0, of background

Parameters
alpha:Number — Alpha value for background, 0 to 1.0, of background
setBackgroundColor()method 
public function setBackgroundColor(color:uint):void

Sets Background color background

Parameters
color:uint — Background color background
setBackgroundEllipseHeight()method 
public function setBackgroundEllipseHeight(ellipseHeight:Number):void

Sets height of the ellipse used to draw a rounded border around LargeZoomControl.

Parameters
ellipseHeight:Number — height of the ellipse used to draw a rounded border around LargeZoomControl.
setBackgroundEllipseWidth()method 
public function setBackgroundEllipseWidth(ellipseWidth:Number):void

Sets width of the ellipse used to draw a rounded border around LargeZoomControl.

Parameters
ellipseWidth:Number — width of the ellipse used to draw a rounded border around LargeZoomControl.
setBorderAlpha()method 
public function setBorderAlpha(alpha:Number):void

Sets Alpha value for border, 0 to 1.0

Parameters
alpha:Number — Alpha value for border, 0 to 1.0
setBorderColor()method 
public function setBorderColor(color:uint):void

Sets border color of background

Parameters
color:uint — border color of background
setBorderSize()method 
public function setBorderSize(size:Number):void

Sets border size in pixels of background

Parameters
size:Number — border size in pixels of background
setIncludeBackground()method 
public function setIncludeBackground(includeBackground:Boolean):void

Sets background boolean

Parameters
includeBackground:Boolean — background flag
setRoundedBackground()method 
public function setRoundedBackground(isRounded:Boolean):void

Sets true if a rounded background is shown, false if background is rectangle

Parameters
isRounded:Boolean — true to turn on rounded background, false for rectangle