Packagecom.mapquest.tilemap.controls
Classpublic class Control
InheritanceControl Inheritance flash.display.Sprite
SubclassesDrawnBackgroundControl, LogoControl, ViewControl



Public Properties
 PropertyDefined by
  CONTROL_LOGO : int = 4
[static]
Control
  CONTROL_PAN : int = 1
[static]
Control
  CONTROL_PANZOOM : int = 0
[static]
Control
  CONTROL_TYPE : int = 3
[static]
Control
  CONTROL_ZOOM : int = 2
[static]
Control
  PAN_EAST : Number = 2
[static]
Control
  PAN_NORTH : Number = 0
[static]
Control
  PAN_SOUTH : Number = 1
[static]
Control
  PAN_WEST : Number = 3
[static]
Control
Protected Properties
 PropertyDefined by
  map : TileMap
Control
  position : MapCornerPlacement
Control
  type : int
Control
Public Methods
 MethodDefined by
  
Control is an abstract base class containing functionality specific to all controls.
Control
  
getHeight():int
Determines the height of the control by selecting the greatest height from all elements in the control subtree.
Control
  
Returns the position of the this control.
Control
  
getType():int
Control
  
getWidth():int
Determines the width of the control by selecting the greatest width from all elements in the the control subtree.
Control
  
initialize(map:TileMap):void
Initialize the Control.
Control
  
isPrintable():Boolean
Control
  
Control
  
setPrintable(b:Boolean):void
Control
Property detail
CONTROL_LOGOproperty
public static var CONTROL_LOGO:int = 4
CONTROL_PANproperty 
public static var CONTROL_PAN:int = 1
CONTROL_PANZOOMproperty 
public static var CONTROL_PANZOOM:int = 0
CONTROL_TYPEproperty 
public static var CONTROL_TYPE:int = 3
CONTROL_ZOOMproperty 
public static var CONTROL_ZOOM:int = 2
mapproperty 
protected var map:TileMap
PAN_EASTproperty 
public static var PAN_EAST:Number = 2
PAN_NORTHproperty 
public static var PAN_NORTH:Number = 0
PAN_SOUTHproperty 
public static var PAN_SOUTH:Number = 1
PAN_WESTproperty 
public static var PAN_WEST:Number = 3
positionproperty 
protected var position:MapCornerPlacement
typeproperty 
protected var type:int
Constructor detail
Control()constructor
public function Control()

Control is an abstract base class containing functionality specific to all controls.

Method detail
getHeight()method
public function getHeight():int

Determines the height of the control by selecting the greatest height from all elements in the control subtree. Override this method to provide a custom height (in most cases this should be overriden)

Returns
int
getPosition()method 
public function getPosition():MapCornerPlacement

Returns the position of the this control. A default position is set when instantiated.

Returns
MapCornerPlacement
getType()method 
public function getType():int

Returns
int
getWidth()method 
public function getWidth():int

Determines the width of the control by selecting the greatest width from all elements in the the control subtree. Override this method to provide a custom width (in most cases this should be overriden)

Returns
int
initialize()method 
public function initialize(map:TileMap):void

Initialize the Control.

Parameters
map:TileMap
isPrintable()method 
public function isPrintable():Boolean

Returns
Boolean
setPosition()method 
public function setPosition(p:MapCornerPlacement):voidParameters
p:MapCornerPlacement
setPrintable()method 
public function setPrintable(b:Boolean):voidParameters
b:Boolean