Packagemx.skins
Classpublic class RectangularBorder
InheritanceRectangularBorder Inheritance Border Inheritance ProgrammaticSkin Inheritance FlexShape Inheritance flash.display.Shape
ImplementsIRectangularBorder
SubclassesPopupToolTipBorder

The RectangularBorder class is an abstract base class for various classes that draw rectangular borders around UIComponents.

This class implements support for the backgroundImage, backgroundSize, and backgroundAttachment styles.



Public Properties
 PropertyDefined by
  backgroundImageBounds : Rectangle
Rectangular area within which to draw the background image.
RectangularBorder
 InheritedborderMetrics : EdgeMetrics
The thickness of the border edges.
Border
  hasBackgroundImage : Boolean
[read-only] Contains true if the RectangularBorder instance contains a background image.
RectangularBorder
 Inheritedinitialized : Boolean
A flag that determines if an object has been through all three phases of layout: commitment, measurement, and layout (provided that any were required).
ProgrammaticSkin
 InheritedmeasuredHeight : Number
The measured height of this object.
ProgrammaticSkin
 InheritedmeasuredWidth : Number
The measured width of this object.
ProgrammaticSkin
 InheritednestLevel : int
Depth of this object in the containment hierarchy.
ProgrammaticSkin
 InheritedprocessedDescriptors : Boolean
Set to true after immediate or deferred child creation, depending on which one happens.
ProgrammaticSkin
 InheritedstyleName : Object
A parent component used to obtain style values.
ProgrammaticSkin
 InheritedupdateCompletePendingFlag : Boolean
A flag that determines if an object has been through all three phases of layout validation (provided that any were required).
ProgrammaticSkin
Public Methods
 MethodDefined by
  
Constructor.
RectangularBorder
 Inherited
getStyle(styleProp:String):*
Returns the value of the specified style property.
ProgrammaticSkin
 Inherited
Marks a component so that its updateDisplayList() method gets called during a later screen update.
ProgrammaticSkin
 Inherited
Calling this method results in a call to the component's validateProperties() method before the display list is rendered.
ProgrammaticSkin
 Inherited
Calling this method results in a call to the component's validateSize() method before the display list is rendered.
ProgrammaticSkin
  
Layout the background image.
RectangularBorder
 Inherited
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
ProgrammaticSkin
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
ProgrammaticSkin
 Inherited
styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
ProgrammaticSkin
 Inherited
toString():String
Returns a string indicating the location of this object within the hierarchy of DisplayObjects in the Application.
FlexShape
 Inherited
This function is called by the LayoutManager when it's time for this control to draw itself.
ProgrammaticSkin
 Inherited
validateNow():void
Validate and update the properties and layout of this object and redraw it, if necessary.
ProgrammaticSkin
 Inherited
This function is an empty stub so that ProgrammaticSkin can implement the ILayoutManagerClient interface.
ProgrammaticSkin
 Inherited
validateSize(recursive:Boolean = false):void
This function is an empty stub so that ProgrammaticSkin can implement the ILayoutManagerClient interface.
ProgrammaticSkin
Protected Methods
 MethodDefined by
 Inherited
drawRoundRect(x:Number, y:Number, width:Number, height:Number, cornerRadius:Object = null, color:Object = null, alpha:Object = null, gradientMatrix:Matrix = null, gradientType:String = "linear", gradientRatios:Array = null, hole:Object = null):void
Programatically draws a rectangle into this skin's Graphics object.
ProgrammaticSkin
 Inherited
horizontalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix
Utility function to create a horizontal gradient matrix.
ProgrammaticSkin
 Inherited
rotatedGradientMatrix(x:Number, y:Number, width:Number, height:Number, rotation:Number):Matrix
Utility function to create a rotated gradient matrix.
ProgrammaticSkin
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Programmatically draws the graphics for this skin.
ProgrammaticSkin
 Inherited
verticalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix
Utility function to create a vertical gradient matrix.
ProgrammaticSkin
Property detail
backgroundImageBoundsproperty
backgroundImageBounds:Rectangle  [read-write]

Rectangular area within which to draw the background image. This can be larger than the dimensions of the border if the parent container has scrollable content. If this property is null, the border can use the parent's size and viewMetrics property to determine its value.

Implementation
    public function get backgroundImageBounds():Rectangle
    public function set backgroundImageBounds(value:Rectangle):void
hasBackgroundImageproperty 
hasBackgroundImage:Boolean  [read-only]

Contains true if the RectangularBorder instance contains a background image.

Implementation
    public function get hasBackgroundImage():Boolean
Constructor detail
RectangularBorder()constructor
public function RectangularBorder()

Constructor.

Method detail
layoutBackgroundImage()method
public function layoutBackgroundImage():void

Layout the background image.