Packagecom.mapquest.tilemap
Classpublic class DefaultInfoWindow
InheritanceDefaultInfoWindow Inheritance InfoWindow Inheritance flash.display.Sprite



Protected Properties
 PropertyDefined by
  backgroundAlpha : Number = 1.0
DefaultInfoWindow
  backgroundColor : uint = 0xffffff
DefaultInfoWindow
  backgroundEllipseHeight : Number = 14
DefaultInfoWindow
  backgroundEllipseWidth : Number = 14
DefaultInfoWindow
  backgroundHeight : Number
DefaultInfoWindow
  backgroundWidth : Number
DefaultInfoWindow
  bkg : Shape
DefaultInfoWindow
  borderAlpha : Number = 1.0
DefaultInfoWindow
  borderColor : uint = 0x000000
DefaultInfoWindow
  borderSize : Number = 1.0
DefaultInfoWindow
  closeButton : Sprite
DefaultInfoWindow
  content : DisplayObject
DefaultInfoWindow
  contentField : TextField
DefaultInfoWindow
  contentFieldWidth : Number = 235
DefaultInfoWindow
  contentTitleBuffer : Number = 5
DefaultInfoWindow
  dirtyPlacement : Boolean = true
DefaultInfoWindow
 Inheritedenabled : Boolean = true
InfoWindow
  horizontalMargin : Number = 5
DefaultInfoWindow
 Inheritedmap : TileMap
InfoWindow
 InheritedmaxWidth : Number
InfoWindow
 Inheritedoffset : IPointXY
InfoWindow
 Inheritedopener : Poi
InfoWindow
 Inheritedpoint : IPointXY
InfoWindow
  roundedBackground : Boolean = true
DefaultInfoWindow
  shadow : Shape
DefaultInfoWindow
  shadowAlpha : Number = 0.5
DefaultInfoWindow
  shadowOffsetX : int = 4
DefaultInfoWindow
  shadowOffsetY : int = 3
DefaultInfoWindow
  titleField : TextField
DefaultInfoWindow
  titleFieldOrigText : String = ""
DefaultInfoWindow
  triangleHeight : Number = 10
DefaultInfoWindow
  triangleWidth : Number = 10
DefaultInfoWindow
  triangleXOffset : Number = 16
DefaultInfoWindow
  useShadow : Boolean = true
DefaultInfoWindow
  verticalMargin : Number = 3
DefaultInfoWindow
Public Methods
 MethodDefined by
  
DefaultInfoWindow
 Inherited
InfoWindow
  
DefaultInfoWindow
  
DefaultInfoWindow
  
Gets height of the ellipse used to draw a rounded border around DefaultInfoWindow.
DefaultInfoWindow
  
Gets width of the ellipse used to draw a rounded border around DefaultInfoWindow.
DefaultInfoWindow
  
getBorderAlpha():Number
DefaultInfoWindow
  
DefaultInfoWindow
  
getBorderSize():Number
DefaultInfoWindow
  
Gets the width of the text content field.
DefaultInfoWindow
  
getContentTextFormat(begin:int = -1, end:int = -1):TextFormat
DefaultInfoWindow
  
Gets the height of the buffer space between the title and content of this info window.
DefaultInfoWindow
  
DefaultInfoWindow
 Inherited
InfoWindow
 Inherited
Returns the offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored.
InfoWindow
 Inherited
Returns the geographical point at which the info window is anchored.
InfoWindow
 Inherited
Returns the screen coordinates at which the info window is anchored.
InfoWindow
  
DefaultInfoWindow
  
getTitleTextFormat(begin:int = -1, end:int = -1):TextFormat
DefaultInfoWindow
  
Gets height of the triangle extending from this info window to point to a poi.
DefaultInfoWindow
  
Gets width of the triangle extending from this info window to point to a poi.
DefaultInfoWindow
  
Gets x coordinate offest of the triangle extending from this info window to point to a poi.
DefaultInfoWindow
  
DefaultInfoWindow
 Inherited
hide():void
Hides the info window if it is currently visible .
InfoWindow
  
Returns true if a rounded background is shown, false if background is rectangle
DefaultInfoWindow
 Inherited
isHidden():Boolean
Returns true if the info window is hidden.
InfoWindow
 Inherited
modify(point:IPointXY, title:String, content:Object, offset:IPointXY):void
Modifies the state of the info window.
InfoWindow
  
redraw():void
Redraws background area.
DefaultInfoWindow
  
setBackgroundAlpha(alpha:Number):void
Sets Alpha value for background, 0 to 1.0, of background
DefaultInfoWindow
  
setBackgroundColor(color:uint):void
Sets Background color info window
DefaultInfoWindow
  
setBackgroundEllipseHeight(ellipseHeight:Number):void
Sets height of the ellipse used to draw a rounded border around DefaultInfoWindow.
DefaultInfoWindow
  
setBackgroundEllipseWidth(ellipseWidth:Number):void
Sets width of the ellipse used to draw a rounded border around DefaultInfoWindow.
DefaultInfoWindow
  
setBorderAlpha(alpha:Number):void
Sets Alpha value for border, 0 to 1.0
DefaultInfoWindow
  
setBorderColor(color:uint):void
Sets border color of info window
DefaultInfoWindow
  
setBorderSize(size:Number):void
Sets border size in pixels of info window
DefaultInfoWindow
  
setContentFieldWidth(width:Number):void
Sets the width of the text content field.
DefaultInfoWindow
  
setContentTextFormat(format:TextFormat, beginIdx:int = -1, endIndex:int = -1):void
DefaultInfoWindow
  
setContentTitleBuffer(spacing:Number):void
Sets the height of the buffer space between the title and content of this info window.
DefaultInfoWindow
  
setHorizontalMargin(marg:Number):void
Sets horizontal, left and right, margin space between border and content
DefaultInfoWindow
 Inherited
setMap(map:TileMap):void
InfoWindow
 Inherited
setOpenerAndShow(opener:Poi):void
InfoWindow
  
setRoundedBackground(isRounded:Boolean):void
Sets true if a rounded background is shown, false if background is rectangle
DefaultInfoWindow
  
setTitleTextFormat(format:TextFormat, beginIdx:int = -1, endIndex:int = -1):void
DefaultInfoWindow
  
setTriangleHeight(triangleHeight:Number):void
Sets height of the triangle extending from this info window to point to a poi.
DefaultInfoWindow
  
setTriangleWidth(triangleWidth:Number):void
Sets width of the triangle extending from this info window to point to a poi.
DefaultInfoWindow
  
setTriangleXOffset(triangleXOffset:Number):void
Sets x coordinate offest of the triangle extending from this info window to point to a poi.
DefaultInfoWindow
  
setUseShadow(shadowOn:Boolean):void
Sets on or off the shadow for the background
DefaultInfoWindow
  
setVerticalMargin(marg:Number):void
Sets vertical, top and bottom, margin space between border and content
DefaultInfoWindow
 Inherited
show():void
Makes the info window visible if it is currently hidden.
InfoWindow
Protected Methods
 MethodDefined by
  
draw():void
DefaultInfoWindow
  
placeItems():void
DefaultInfoWindow
  
setContent(content:Object):void
DefaultInfoWindow
  
setTitle(title:String):void
DefaultInfoWindow
Property detail
backgroundAlphaproperty
protected var backgroundAlpha:Number = 1.0
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
bkgproperty 
protected var bkg:Shape
borderAlphaproperty 
protected var borderAlpha:Number = 1.0
borderColorproperty 
protected var borderColor:uint = 0x000000
borderSizeproperty 
protected var borderSize:Number = 1.0
closeButtonproperty 
protected var closeButton:Sprite
contentproperty 
protected var content:DisplayObject
contentFieldproperty 
protected var contentField:TextField
contentFieldWidthproperty 
protected var contentFieldWidth:Number = 235
contentTitleBufferproperty 
protected var contentTitleBuffer:Number = 5
dirtyPlacementproperty 
protected var dirtyPlacement:Boolean = true
horizontalMarginproperty 
protected var horizontalMargin:Number = 5
roundedBackgroundproperty 
protected var roundedBackground:Boolean = true
shadowproperty 
protected var shadow:Shape
shadowAlphaproperty 
protected var shadowAlpha:Number = 0.5
shadowOffsetXproperty 
protected var shadowOffsetX:int = 4
shadowOffsetYproperty 
protected var shadowOffsetY:int = 3
titleFieldproperty 
protected var titleField:TextField
titleFieldOrigTextproperty 
protected var titleFieldOrigText:String = ""
triangleHeightproperty 
protected var triangleHeight:Number = 10
triangleWidthproperty 
protected var triangleWidth:Number = 10
triangleXOffsetproperty 
protected var triangleXOffset:Number = 16
useShadowproperty 
protected var useShadow:Boolean = true
verticalMarginproperty 
protected var verticalMargin:Number = 3
Constructor detail
DefaultInfoWindow()constructor
public function DefaultInfoWindow(map:TileMap)Parameters
map:TileMap
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 DefaultInfoWindow.

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

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

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
getContentFieldWidth()method 
public function getContentFieldWidth():Number

Gets the width of the text content field.

Returns
Number
getContentTextFormat()method 
public function getContentTextFormat(begin:int = -1, end:int = -1):TextFormat

Parameters
begin:int (default = -1) — begin idx
 
end:int (default = -1) — end idx

Returns
TextFormat
getContentTitleBuffer()method 
public function getContentTitleBuffer():Number

Gets the height of the buffer space between the title and content of this info window.

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

Returns
Number
getPosition()method 
public override function getPosition():IPointXY

Returns
IPointXY
getTitleTextFormat()method 
public function getTitleTextFormat(begin:int = -1, end:int = -1):TextFormat

Parameters
begin:int (default = -1) — begin idx
 
end:int (default = -1) — end idx

Returns
TextFormat
getTriangleHeight()method 
public function getTriangleHeight():Number

Gets height of the triangle extending from this info window to point to a poi.

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

Gets width of the triangle extending from this info window to point to a poi.

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

Gets x coordinate offest of the triangle extending from this info window to point to a poi.

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

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

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

Returns
Boolean
placeItems()method 
protected function placeItems():void
redraw()method 
public function redraw():void

Redraws background area. Function needs to be called if window is already opened and drawing settings are changed

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 info window

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

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

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

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

Parameters
ellipseWidth:Number — width of the ellipse used to draw a rounded border around DefaultInfoWindow.
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 info window

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

Sets border size in pixels of info window

Parameters
size:Number — border size in pixels of info window
setContent()method 
protected override function setContent(content:Object):voidParameters
content:Object
setContentFieldWidth()method 
public function setContentFieldWidth(width:Number):void

Sets the width of the text content field.

Parameters
width:Number — Sets the width of the text content, which can be multilined.
setContentTextFormat()method 
public function setContentTextFormat(format:TextFormat, beginIdx:int = -1, endIndex:int = -1):void

Parameters
format:TextFormat — of content text field
 
beginIdx:int (default = -1) — begin idx
 
endIndex:int (default = -1) — end idx
setContentTitleBuffer()method 
public function setContentTitleBuffer(spacing:Number):void

Sets the height of the buffer space between the title and content of this info window.

Parameters
spacing:Number — height of the buffer space between the title and content of this info window.
setHorizontalMargin()method 
public function setHorizontalMargin(marg:Number):void

Sets horizontal, left and right, margin space between border and content

Parameters
marg:Number — horizontal, left and right, margin space between border and content
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
setTitle()method 
protected override function setTitle(title:String):voidParameters
title:String
setTitleTextFormat()method 
public function setTitleTextFormat(format:TextFormat, beginIdx:int = -1, endIndex:int = -1):void

Parameters
format:TextFormat — of title text field
 
beginIdx:int (default = -1) — begin idx
 
endIndex:int (default = -1) — end idx
setTriangleHeight()method 
public function setTriangleHeight(triangleHeight:Number):void

Sets height of the triangle extending from this info window to point to a poi.

Parameters
triangleHeight:Number — height of the triangle extending from this info window to point to a poi.
setTriangleWidth()method 
public function setTriangleWidth(triangleWidth:Number):void

Sets width of the triangle extending from this info window to point to a poi.

Parameters
triangleWidth:Number — width of the triangle extending from this info window to point to a poi.
setTriangleXOffset()method 
public function setTriangleXOffset(triangleXOffset:Number):void

Sets x coordinate offest of the triangle extending from this info window to point to a poi.

Parameters
triangleXOffset:Number — x coordinate offest of the triangle extending from this info window to point to a poi.
setUseShadow()method 
public function setUseShadow(shadowOn:Boolean):void

Sets on or off the shadow for the background

Parameters
shadowOn:Boolean — true to true on shadow, false to turn off
setVerticalMargin()method 
public function setVerticalMargin(marg:Number):void

Sets vertical, top and bottom, margin space between border and content

Parameters
marg:Number — vertical, top and bottom, margin space between border and content