Packagecom.ammap.mapClasses
Classpublic class AmBalloon
InheritanceAmBalloon Inheritance mx.core.UIComponent

AmBalloon is the class which generates balloons (datatips). Balloon follows the mouse when you roll-over the MapObject.



Public Properties
 PropertyDefined by
  follow : Boolean
[write-only] Tells the balloon whether it should follow the mouse or not.
AmBalloon
Public Methods
 MethodDefined by
  
Constructor.
AmBalloon
  
hide():void
Hides the balloon
AmBalloon
  
setBounds(l:Number, t:Number, r:Number, b:Number):void
Defines a square within which the balloon should appear.
AmBalloon
  
setPosition(x:Number, y:Number):void
Sets coordinates the balloon should point to.
AmBalloon
  
show(value:String, imageName:String):void
Specifies the text which should be displayed.
AmBalloon
Styles
 StyleDescriptionDefined by
  
adjustBorderColor
Type: Boolean   CSS Inheritance: no
If this is set to true, border color instead of background color will be changed when user rolls-over the slice, graph, etc. Note, default value of borderAlpha style is 0, so the border is invisible. You have to set it to 1 or some other value to see this working.
AmBalloon
  
borderAlpha
Type: Number   CSS Inheritance: no
Balloon border opacity. The default value is 1.
AmBalloon
  
borderColor
Type: uint   Format: Color   CSS Inheritance: no
Balloon border color. The default value is 0x000000.
AmBalloon
  
borderThickness
Type: Number   CSS Inheritance: no
Balloon border thickness. The default value is 0.
AmBalloon
  
color
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
AmBalloon
  
cornerRadius
Type: Number   CSS Inheritance: no
Balloon corner radius. The default value is 0.
AmBalloon
  
disabledColor
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled. The default value is 0xAAB3B3.
AmBalloon
  
fillAlpha
Type: Number   CSS Inheritance: no
Balloon background opacity. The default value is 1.
AmBalloon
  
fillColor
Type: uint   Format: Color   CSS Inheritance: no
Balloon background color. The default value is 0xCC0000.
AmBalloon
  
fontAntiAliasType
Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields. The possible values are "normal" (flash.text.AntiAliasType.NORMAL) and "advanced" (flash.text.AntiAliasType.ADVANCED).

The default value is "advanced", which enables advanced anti-aliasing for the font. Set to "normal" to disable the advanced anti-aliasing.

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you cannot apply it to some characters and not others.

The default value is "advanced".
AmBalloon
  
fontFamily
Type: String   CSS Inheritance: yes
Name of the font to use. Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is "Verdana".
AmBalloon
  
fontGridFitType
Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls. The possible values are "none" (flash.text.GridFitType.NONE), "pixel" (flash.text.GridFitType.PIXEL), and "subpixel" (flash.text.GridFitType.SUBPIXEL).

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is "pixel".
AmBalloon
  
fontSharpness
Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls. This property specifies the sharpness of the glyph edges. The possible values are Numbers from -400 through 400.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is 0.
AmBalloon
  
fontSize
Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels. The default value is 10 for all controls except the ColorPicker control. For the ColorPicker control, the default value is 11.
AmBalloon
  
fontStyle
Type: String   CSS Inheritance: yes
Determines whether the text is italic font. Recognized values are "normal" and "italic". The default value is "normal".
AmBalloon
  
fontThickness
Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls. This property specifies the thickness of the glyph edges. The possible values are Numbers from -200 to 200.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect on system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is 0.
AmBalloon
  
fontWeight
Type: String   CSS Inheritance: yes
Determines whether the text is boldface. Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
AmBalloon
  
horizontalPadding
Type: Number   CSS Inheritance: no
Horizontal padding of the balloon. The default value is 5.
AmBalloon
  
kerning
Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false). Kerning adjusts the gap between certain character pairs to improve readability, and should be used only when necessary, such as with headings in large fonts. Kerning is supported for embedded fonts only. Certain fonts, such as Verdana, and monospaced fonts, such as Courier New, do not support kerning. The default value is false.
AmBalloon
  
letterSpacing
Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character. A positive value increases the character spacing beyond the normal spacing, while a negative value decreases it. The default value is 0.
AmBalloon
  
maximumWidth
Type: Number   CSS Inheritance: no
Maximum width of the balloon in pixels. The default value is 220.
AmBalloon
  
pointerOrientation
Type: String   CSS Inheritance: no
Defines whether the arrow should be placed on the left/right or top/bottom. use down for touch screen devices. The default value is vertical.
AmBalloon
  
pointerWidth
Type: Number   CSS Inheritance: no
The width of the pointer (arrow) "root". The default value is 10.
AmBalloon
  
showBullet
Type: Boolean   CSS Inheritance: no
When cornerRadius is >0, small round bullet is shown near balloon. If you don't want this bullet, set this style to false
AmBalloon
  
textAlign
Type: String   CSS Inheritance: yes
Alignment of text within a container. Possible values are "left", "right", or "center".

The default value for most components is "left". For the FormItem component, the default value is "right". For the Button, LinkButton, and AccordionHeader components, the default value is "center", and this property is only recognized when the labelPlacement property is set to "left" or "right". If labelPlacement is set to "top" or "bottom", the text and any icon are centered.

AmBalloon
  
textDecoration
Type: String   CSS Inheritance: yes
Determines whether the text is underlined. Possible values are "none" and "underline". The default value is "none".
AmBalloon
  
textIndent
Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels. The default value is 0.
AmBalloon
  
textShadowColor
Type: uint   Format: Color   CSS Inheritance: yes
Color of the text shadow. The default value is 0x000000.
AmBalloon
  
verticalPadding
Type: Number   CSS Inheritance: no
Vertical padding of the balloon. The default value is 8.
AmBalloon
Property detail
followproperty
follow:Boolean  [write-only]

Tells the balloon whether it should follow the mouse or not.

Implementation
    public function set follow(value:Boolean):void
Constructor detail
AmBalloon()constructor
public function AmBalloon()

Constructor.

Method detail
hide()method
public function hide():void

Hides the balloon

setBounds()method 
public function setBounds(l:Number, t:Number, r:Number, b:Number):void

Defines a square within which the balloon should appear. Application handles this automatically.

Parameters
l:Number
 
t:Number
 
r:Number
 
b:Number
setPosition()method 
public function setPosition(x:Number, y:Number):void

Sets coordinates the balloon should point to.

Parameters
x:Number
 
y:Number
show()method 
public function show(value:String, imageName:String):void

Specifies the text which should be displayed. Application handles this automatically.

Parameters
value:String
 
imageName:String