Packagecom.afcomponents.umap.styles
Classpublic class ComponentStyle
InheritanceComponentStyle Inheritance GeometryStyle Inheritance Style

Specifies a drawing style for the UMap component.

Fill properties define drawing style for the component's background. Stroke properties define drawing style for the component's border.



Public Properties
 PropertyDefined by
  contentPadding : uint = 1
Defines content padding from the borders of the component.
ComponentStyle
 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
 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
Public Methods
 MethodDefined by
  
ComponentStyle(param:Object = null)
ComponentStyle constructor.
ComponentStyle
 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
contentPaddingproperty
public var contentPadding:uint = 1

Defines content padding from the borders of the component.

The default value is 1.

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

ComponentStyle constructor.

Creates new ComponentStyle object with the default parameters. Properties defined in param object will override the default values.

Parameters
param:Object (default = null) — Object that holds all the properites of a style you wish to override upon its creation.