Packagecom.afcomponents.umap.styles
Classpublic class InfoWindowStyle
InheritanceInfoWindowStyle Inheritance GeometryStyle Inheritance Style

Specifies a drawing style for an InfoWindow.

Properties overview:

InfoWindowStyle example

See also

com.afcomponents.umap.display.InfoWindow


Public Properties
 PropertyDefined by
  autoSize : String = "auto"
Defines automatic sizing feature.
InfoWindowStyle
  close : Boolean = true
Defines whether to display a close button in the top-right corner.
InfoWindowStyle
  closeAlpha : Number = 1.0
Defiens the opacity of the close button.
InfoWindowStyle
  closeRGB : uint = 0x6261D8
Defines the RGB color of the close button.
InfoWindowStyle
  content : Boolean = true
Defines whether to display content text field.
InfoWindowStyle
  contentStyle : Object
Defines a TextStyle object that represents the content appearence.
InfoWindowStyle
 Inheritedfill : String = "rgb"
Specify a fill style to use when drawing on a Graphics object.
GeometryStyle
 InheritedfillAlpha : Number = 0.5
Defines fill color opacity.
GeometryStyle
 InheritedfillBitmap : BitmapStyle = null
Defines fill bitmap properties as a BitmapStyle object.
GeometryStyle
 InheritedfillGradient : GradientStyle = null
Defines fill gradient properties as a GradientStyle object.
GeometryStyle
 InheritedfillRGB : uint = 0x89B9FE
Defines RGB fill color.
GeometryStyle
  maxSize : Size
Defines the maximum size for the InfoWindow.
InfoWindowStyle
  padding : Point
Defines the padding distance from the borders of the info window.
InfoWindowStyle
  radius : Number = 10
Defines the corner radius.
InfoWindowStyle
  scroll : Boolean = false
Defines whether to display UIScrollBar to the right of the content text field.
InfoWindowStyle
  shadow : Boolean = true
Defines wether to display drop shadow behind info window.
InfoWindowStyle
  shadowStyle : DropShadowStyle
Defines a DropShadowStyle object that controls drop shadow appearence.
InfoWindowStyle
  size : Size
Defines inital size for the InfoWindow.
InfoWindowStyle
 Inheritedstroke : String = "rgb"
Specify a stroke style to use when drawing on a Graphics object.
GeometryStyle
 InheritedstrokeAlpha : Number = 1.0
Defines stroke opacity.
GeometryStyle
 InheritedstrokeGradient : GradientStyle = null
Defines stroke gradient properties as a GradientStyle object.
GeometryStyle
 InheritedstrokeRGB : uint = 0x000000
Defines RGB stroke color.
GeometryStyle
 InheritedstrokeStyle : StrokeStyle
Defines advanced stroke properties as a StrokeStyle object.
GeometryStyle
 InheritedstrokeThickness : Number = 2.0
An integer that indicates the thickness of the line in points.
GeometryStyle
  tail : Boolean = true
Defines wether to display the tail of the InfoWindow.
InfoWindowStyle
  tailAlign : String = "right"
Defines the tail horizontal alignment.
InfoWindowStyle
  tailOffset : Number = 0.10
Defines the tail offset percent.
InfoWindowStyle
  tailSize : Size
Defines the width & height of the tail.
InfoWindowStyle
  title : Boolean = true
Defines whether to display title text field.
InfoWindowStyle
  titleStyle : TextStyle
Defines a TextStyle object that represents the title appearence.
InfoWindowStyle
Public Methods
 MethodDefined by
  
InfoWindowStyle(param:Object = null)
The InfoWindowStyle.AUTO_SIZE_NONE constant defines the value of the autoSize property of the InfoWindowStyle object that disables automatic sizing.
InfoWindowStyle
 Inherited
applyTo(graphics:Graphics, noFill:Boolean = false, noStroke:Boolean = false):void
Applies current fill & stroke style to the specified Graphics object.
GeometryStyle
 Inherited
Creates a copy of the Style object.
Style
 Inherited
concat(param:Object):Style
Creates a clone of this Style, copies the properties from specified object and returns the new style.
Style
 Inherited
copy(object:Object):void
Copies all the properties from the specified object into the Style object.
Style
 Inherited
copyStyle(dest:Object, src:Object):void
[static] Copies all properties of one object into another.
Style
 Inherited
[static] Creates new GeometryStyle from XML object in KML 2.1 format.
GeometryStyle
 Inherited
[static] Returns new Style object, from the source XML object.
Style
 Inherited
getXMLFromStyle(style:Style, name:String = ""):XML
[static] Returns an XML object that represents all the style's properties.
Style
 Inherited
toString():String
Returns a String that represents all the style's properties.
Style
 Inherited
toXML(afcTags:Boolean = false):XML
Builds an XML object in KML 2.1 format that describes the GeometryStyle.
GeometryStyle
Public Constants
 ConstantDefined by
 InheritedBITMAP : String = "bitmap"
[static] The GeometryStyle.BITMAP constant defines the value of the fill property of the GeometryStyle object that indicates that bitmap fill should be used.
GeometryStyle
 InheritedGRADIENT : String = "gradient"
[static] The GeometryStyle.GRADIENT constant defines the value of the fill or stroke property of the GeometryStyle object that indicates that gradient fill or stroke should be used.
GeometryStyle
 InheritedNONE : String = "none"
[static] The GeometryStyle.NONE constant defines the value of the fill or stroke property of the GeometryStyle object that indicates that no fill or stroke should be used.
GeometryStyle
 InheritedRGB : String = "rgb"
[static] The GeometryStyle.RGB constant defines the value of the fill or stroke property of the GeometryStyle object that indicates that simple one-color fill or stroke should be used.
GeometryStyle
Property detail
autoSizeproperty
public var autoSize:String = "auto"

Defines automatic sizing feature. When resizing, the dimensions can not go beyond values defined by the maxSize property. If a scroll property is set to true and the text provided for the content exceeds the bottom of content text field, UIScrollBar will appear on the right side of the content.

Can be one of the following:

  • com.afcomponents.umap.types.AutoSizeType.NONE - automatic sizing is disabled.
  • com.afcomponents.umap.types.AutoSizeType.SIDE - info window will resize horizontally.
  • com.afcomponents.umap.types.AutoSizeType.BOTTOM - info window will resize vertically.
  • com.afcomponents.umap.types.AutoSizeType.AUTO - info window will resize automatically horizontally & vertically.
  • The default value is com.afcomponents.umap.types.AutoSizeType.AUTO.

    See also

    closeproperty 
    public var close:Boolean = true

    Defines whether to display a close button in the top-right corner.

    The default value is true.

    closeAlphaproperty 
    public var closeAlpha:Number = 1.0

    Defiens the opacity of the close button.

    The default value is 1.0.

    closeRGBproperty 
    public var closeRGB:uint = 0x6261D8

    Defines the RGB color of the close button.

    The default value is 0x6261D8 (light-blue).

    contentproperty 
    public var content:Boolean = true

    Defines whether to display content text field.

    The default value is true.

    contentStyleproperty 
    public var contentStyle:Object

    Defines a TextStyle object that represents the content appearence.

    The default value is _sans, 11pt, 0x666666 (dark grey).

    maxSizeproperty 
    public var maxSize:Size

    Defines the maximum size for the InfoWindow.

    The default value is 400x350.

    paddingproperty 
    public var padding:Point

    Defines the padding distance from the borders of the info window. Padding is specifed as a Point object, x for horizontal and y for vertical distance.

    The default value is 10 horizontal and 10 vertical padding.

    radiusproperty 
    public var radius:Number = 10

    Defines the corner radius. Rounded corners will be no drawn if you specify a value of 0.

    The default value is 10.

    scrollproperty 
    public var scroll:Boolean = false

    Defines whether to display UIScrollBar to the right of the content text field. Scroll bar will visible only of the content text exceeds it's bottom.

    The default value is false.

    shadowproperty 
    public var shadow:Boolean = true

    Defines wether to display drop shadow behind info window.

    The default value is true.

    shadowStyleproperty 
    public var shadowStyle:DropShadowStyle

    Defines a DropShadowStyle object that controls drop shadow appearence.

    The default value is .

    sizeproperty 
    public var size:Size

    Defines inital size for the InfoWindow. Please note that the size may change if you set autoSize property to InfoWindowStyle.AUTO_SIZE_BOTTOM or InfoWindowStyle.AUTO_SIZE_SIDE.

    The default value is 200x40.

    See also

    tailproperty 
    public var tail:Boolean = true

    Defines wether to display the tail of the InfoWindow.

    The default value is true.

    tailAlignproperty 
    public var tailAlign:String = "right"

    Defines the tail horizontal alignment. Use Align.LEFT, Align.RIGHT or Align.CENTER contants to set this property.

    The default value is Align.LEFT.

    See also

    tailOffsetproperty 
    public var tailOffset:Number = 0.10

    Defines the tail offset percent. Offset will only work if tailAlign property is set to either Align.LEFT or Align.RIGHT. For example, here is how it works with Align.RIGHT tail alignment:

    A value of 1 means to offset the tail completely to the right, while a value of -1 offsets the tail completely to the left.

    The default value is 0.1 (10% offset).

    tailSizeproperty 
    public var tailSize:Size

    Defines the width & height of the tail.

    The default value is 20x20.

    titleproperty 
    public var title:Boolean = true

    Defines whether to display title text field.

    The default value is true.

    titleStyleproperty 
    public var titleStyle:TextStyle

    Defines a TextStyle object that represents the title appearence. Title is always single-line.

    The default value is _sans, 14pt, bold, 0x0 (black).

    Constructor detail
    InfoWindowStyle()constructor
    public function InfoWindowStyle(param:Object = null)

    The InfoWindowStyle.AUTO_SIZE_NONE constant defines the value of the autoSize property of the InfoWindowStyle object that disables automatic sizing.

    Parameters
    param:Object (default = null)