| Package | com.afcomponents.umap.styles |
| Class | public class ComponentStyle |
| Inheritance | ComponentStyle GeometryStyle Style |
Fill properties define drawing style for the component's background.
Stroke properties define drawing style for the component's border.
| Property | Defined by | ||
|---|---|---|---|
| contentPadding : uint = 1
Defines content padding from the borders of the component.
| ComponentStyle | ||
![]() | 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 | |
![]() | 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 | |
| Method | Defined by | ||
|---|---|---|---|
|
ComponentStyle(param:Object = null)
ComponentStyle constructor.
| ComponentStyle | ||
![]() |
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 | |
| contentPadding | property |
public var contentPadding:uint = 1Defines content padding from the borders of the component.
The default value is 1.
| 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.
param:Object (default = null) — Object that holds all the properites of a style you wish to override upon its creation.
|