| Package | com.afcomponents.umap.styles |
| Class | public class InfoWindowStyle |
| Inheritance | InfoWindowStyle GeometryStyle Style |
Properties overview:
See also
| Property | Defined 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 | ||
![]() | fill : String = "rgb"
Specify a fill style to use when drawing on a Graphics object.
| GeometryStyle | |
![]() | fillAlpha : Number = 0.5
Defines fill color opacity.
| GeometryStyle | |
![]() | fillBitmap : BitmapStyle = null
Defines fill bitmap properties as a
BitmapStyle object. | GeometryStyle | |
![]() | fillGradient : GradientStyle = null
Defines fill gradient properties as a
GradientStyle object. | GeometryStyle | |
![]() | fillRGB : 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 | ||
![]() | stroke : String = "rgb"
Specify a stroke style to use when drawing on a Graphics object.
| GeometryStyle | |
![]() | strokeAlpha : Number = 1.0
Defines stroke opacity.
| GeometryStyle | |
![]() | strokeGradient : GradientStyle = null
Defines stroke gradient properties as a
GradientStyle object. | GeometryStyle | |
![]() | strokeRGB : uint = 0x000000
Defines RGB stroke color.
| GeometryStyle | |
![]() | strokeStyle : StrokeStyle
Defines advanced stroke properties as a
StrokeStyle object. | GeometryStyle | |
![]() | strokeThickness : 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 | ||
| Method | Defined 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 | ||
![]() |
applyTo(graphics:Graphics, noFill:Boolean = false, noStroke:Boolean = false):void
Applies current fill & stroke style to the specified
Graphics object. | GeometryStyle | |
![]() |
Creates a copy of the
Style object. | Style | |
![]() |
Creates a clone of this
Style,
copies the properties from specified object and returns the new style. | Style | |
![]() |
copy(object:Object):void
Copies all the properties from the specified object into the
Style object. | Style | |
![]() |
copyStyle(dest:Object, src:Object):void
[static]
Copies all properties of one object into another.
| Style | |
![]() |
fromXML(xml:XML):GeometryStyle
[static]
Creates new GeometryStyle from XML object in KML 2.1 format.
| GeometryStyle | |
![]() |
getStyleFromXML(xml:XML):Style
[static]
Returns new
Style object, from the source XML object. | Style | |
![]() |
getXMLFromStyle(style:Style, name:String = ""):XML
[static]
Returns an
XML object that represents all the style's properties. | Style | |
![]() |
toString():String
Returns a
String that represents all the style's properties. | Style | |
![]() |
toXML(afcTags:Boolean = false):XML
Builds an XML object in KML 2.1 format that describes the GeometryStyle.
| GeometryStyle | |
| autoSize | property |
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
| close | property |
public var close:Boolean = trueDefines whether to display a close button in the top-right corner.
The default value is true.
| closeAlpha | property |
public var closeAlpha:Number = 1.0Defiens the opacity of the close button.
The default value is 1.0.
| closeRGB | property |
public var closeRGB:uint = 0x6261D8Defines the RGB color of the close button.
The default value is 0x6261D8 (light-blue).
| content | property |
public var content:Boolean = trueDefines whether to display content text field.
The default value is true.
| contentStyle | property |
public var contentStyle:ObjectDefines a TextStyle object that represents the content appearence.
The default value is _sans, 11pt, 0x666666 (dark grey).
| maxSize | property |
| padding | property |
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.
| radius | property |
public var radius:Number = 10Defines the corner radius. Rounded corners will be no drawn if you specify a value of 0.
The default value is 10.
| scroll | property |
public var scroll:Boolean = falseDefines 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.
| shadow | property |
public var shadow:Boolean = trueDefines wether to display drop shadow behind info window.
The default value is true.
| shadowStyle | property |
public var shadowStyle:DropShadowStyleDefines a DropShadowStyle object that controls drop shadow appearence.
The default value is .
| size | property |
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
| tail | property |
public var tail:Boolean = trueDefines wether to display the tail of the InfoWindow.
The default value is true.
| tailAlign | property |
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
| tailOffset | property |
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).
| tailSize | property |
| title | property |
public var title:Boolean = trueDefines whether to display title text field.
The default value is true.
| titleStyle | property |
public var titleStyle:TextStyleDefines a TextStyle object that represents the title appearence. Title is always single-line.
The default value is _sans, 14pt, bold, 0x0 (black).
| 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.
param:Object (default = null) |