Packagexp.skins
Classpublic class ProgrammaticSkin
InheritanceProgrammaticSkin Inheritance mx.core.FlexSprite
Implementsmx.core.IFlexDisplayObject, mx.core.IInvalidating, mx.managers.ILayoutManagerClient, mx.styles.ISimpleStyleClient
SubclassesChartDisplayElement, RectangularBorder

This class is the base class for skin elements which draw themselves programmatically.



Public Properties
 PropertyDefined by
  height : Number
ProgrammaticSkin
  initialized : Boolean
ProgrammaticSkin
  measuredHeight : Number
[read-only] The measured height of this object.
ProgrammaticSkin
  measuredWidth : Number
[read-only] The measured width of this object.
ProgrammaticSkin
  nestLevel : int
ProgrammaticSkin
  processedDescriptors : Boolean
ProgrammaticSkin
  styleName : Object
A parent component used to obtain style values.
ProgrammaticSkin
  updateCompletePendingFlag : Boolean
ProgrammaticSkin
  width : Number
ProgrammaticSkin
Protected Properties
 PropertyDefined by
  _deferLayout : Boolean = false
ProgrammaticSkin
  invalidateDisplayListFlag : Boolean = false
ProgrammaticSkin
  invalidatePropertiesFlag : Boolean = false
ProgrammaticSkin
  invalidateSizeFlag : Boolean = false
ProgrammaticSkin
  sizeChanged : Boolean = false
ProgrammaticSkin
Public Methods
 MethodDefined by
  
Constructor.
ProgrammaticSkin
  
getStyle(styleProp:String):*
Returns the value of the specified style property.
ProgrammaticSkin
  
ProgrammaticSkin
  
ProgrammaticSkin
  
ProgrammaticSkin
  
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
ProgrammaticSkin
  
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
ProgrammaticSkin
  
styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
ProgrammaticSkin
  
ProgrammaticSkin
  
validateNow():void
Validate and update the properties and layout of this object and redraw it, if necessary.
ProgrammaticSkin
  
ProgrammaticSkin
  
validateSize(recursive:Boolean = false):void
ProgrammaticSkin
Protected Methods
 MethodDefined by
  
ProgrammaticSkin
  
deferLayout(state:Boolean):void
ProgrammaticSkin
  
measure():void
ProgrammaticSkin
  
ProgrammaticSkin
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
ProgrammaticSkin
Property detail
_deferLayoutproperty
protected var _deferLayout:Boolean = false
heightproperty 
height:Number  [read-write]Implementation
    public function get height():Number
    public function set height(value:Number):void
initializedproperty 
initialized:Boolean  [read-write]Implementation
    public function get initialized():Boolean
    public function set initialized(value:Boolean):void
invalidateDisplayListFlagproperty 
protected var invalidateDisplayListFlag:Boolean = false
invalidatePropertiesFlagproperty 
protected var invalidatePropertiesFlag:Boolean = false
invalidateSizeFlagproperty 
protected var invalidateSizeFlag:Boolean = false
measuredHeightproperty 
measuredHeight:Number  [read-only]

The measured height of this object.

Implementation
    public function get measuredHeight():Number
measuredWidthproperty 
measuredWidth:Number  [read-only]

The measured width of this object.

Implementation
    public function get measuredWidth():Number
nestLevelproperty 
nestLevel:int  [read-write]Implementation
    public function get nestLevel():int
    public function set nestLevel(value:int):void
processedDescriptorsproperty 
processedDescriptors:Boolean  [read-write]Implementation
    public function get processedDescriptors():Boolean
    public function set processedDescriptors(value:Boolean):void
sizeChangedproperty 
protected var sizeChanged:Boolean = false
styleNameproperty 
styleName:Object  [read-write]

A parent component used to obtain style values. This is typically set to the component that created this skin.

Implementation
    public function get styleName():Object
    public function set styleName(value:Object):void
updateCompletePendingFlagproperty 
updateCompletePendingFlag:Boolean  [read-write]Implementation
    public function get updateCompletePendingFlag():Boolean
    public function set updateCompletePendingFlag(value:Boolean):void
widthproperty 
width:Number  [read-write]Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor detail
ProgrammaticSkin()constructor
public function ProgrammaticSkin()

Constructor.

Method detail
commitProperties()method
protected function commitProperties():void
deferLayout()method 
protected function deferLayout(state:Boolean):voidParameters
state:Boolean
getStyle()method 
public function getStyle(styleProp:String):*

Returns the value of the specified style property.

Parameters
styleProp:String — Name of the style property.

Returns
* — The style value. This can be any type of object that style properties can be, such as int, Number, String, etc.
invalidateDisplayList()method 
public function invalidateDisplayList():void
invalidateProperties()method 
public function invalidateProperties():void
invalidateSize()method 
public function invalidateSize():void
measure()method 
protected function measure():void
move()method 
public function move(x:Number, y:Number):void

Moves this object to the specified x and y coordinates.

Parameters
x:Number — The horizontal position, in pixels.
 
y:Number — The vertical position, in pixels.
nestLevelChanged()method 
protected function nestLevelChanged():void
setActualSize()method 
public function setActualSize(newWidth:Number, newHeight:Number):void

Sets the height and width of this object.

Parameters
newWidth:Number — The width, in pixels, of this object.
 
newHeight:Number — The height, in pixels, of this object.
styleChanged()method 
public function styleChanged(styleProp:String):void

Whenever any style changes, redraw this skin. Subclasses can override this method and perform a more specific test before calling invalidateDisplayList().

Parameters
styleProp:String — The name of the style property that changed, or null if all styles have changed.
updateDisplayList()method 
protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number
validateDisplayList()method 
public function validateDisplayList():void
validateNow()method 
public function validateNow():void

Validate and update the properties and layout of this object and redraw it, if necessary.

validateProperties()method 
public function validateProperties():void
validateSize()method 
public function validateSize(recursive:Boolean = false):voidParameters
recursive:Boolean (default = false)