Packagecom.adobe.portfolio.components.supportClasses
Classpublic class CustomShape
InheritanceCustomShape Inheritance spark.components.supportClasses.SkinnableComponent

A component for drawing rectangular and elliptical shapes with gradient fills and strokes, as well as potential rotation and an inset stroke.



Public Properties
 PropertyDefined By
  backgroundAlpha : Number
[read-only] The opacity of the skin's background fill gradient.
CustomShape
  backgroundColorDark : uint
[read-only] The first color used by the skin's background fill gradient.
CustomShape
  backgroundColorLight : uint
[read-only] The second color used by the skin's background fill gradient.
CustomShape
  backgroundRotation : int
[read-only] The rotation of the skin's background fill gradient.
CustomShape
  borderAlpha : Number
[read-only] The opacity of the skin's background stroke gradient.
CustomShape
  borderColorDark : uint
[read-only] The first color used by the skin's background stroke gradient.
CustomShape
  borderColorlight : uint
[read-only] The second color used by the skin's background stroke gradient.
CustomShape
  borderRotation : int
[read-only] The rotation of the skin's background stroke gradient.
CustomShape
  cornerRadius : uint
[read-only] The corner radius of a rectangular custom shape.
CustomShape
  insetStrokeColor : uint
[read-only] The color use by the skin's inset stroke.
CustomShape
  insetStrokeColorVisible : Boolean
[read-only] True if the skin's inset stroke should be visible; false otherwise.
CustomShape
  isEllipse : Boolean
[read-only] True if the data in this shape should be used to draw an ellipse; false otherwise.
CustomShape
  isRectangle : Boolean
[read-only] True if the data in this shape should be used to draw a rectangle; false otherwise.
CustomShape
  strokeWeight : uint
[read-only] The stroke weight of the skin's background stroke gradient.
CustomShape
Public Methods
 MethodDefined By
  
Default constructor.
CustomShape
  
setCurrentState(stateName:String, playTransition:Boolean = true):void
[override]
CustomShape
Protected Methods
 MethodDefined By
  
[override]
CustomShape
Property Detail
backgroundAlphaproperty
backgroundAlpha:Number  [read-only]

The opacity of the skin's background fill gradient.

This property can be used as the source for data binding.


Implementation
    public function get backgroundAlpha():Number
backgroundColorDarkproperty 
backgroundColorDark:uint  [read-only]

The first color used by the skin's background fill gradient.

This property can be used as the source for data binding.


Implementation
    public function get backgroundColorDark():uint
backgroundColorLightproperty 
backgroundColorLight:uint  [read-only]

The second color used by the skin's background fill gradient.

This property can be used as the source for data binding.


Implementation
    public function get backgroundColorLight():uint
backgroundRotationproperty 
backgroundRotation:int  [read-only]

The rotation of the skin's background fill gradient.

This property can be used as the source for data binding.


Implementation
    public function get backgroundRotation():int
borderAlphaproperty 
borderAlpha:Number  [read-only]

The opacity of the skin's background stroke gradient.

This property can be used as the source for data binding.


Implementation
    public function get borderAlpha():Number
borderColorDarkproperty 
borderColorDark:uint  [read-only]

The first color used by the skin's background stroke gradient.

This property can be used as the source for data binding.


Implementation
    public function get borderColorDark():uint
borderColorlightproperty 
borderColorlight:uint  [read-only]

The second color used by the skin's background stroke gradient.

This property can be used as the source for data binding.


Implementation
    public function get borderColorlight():uint
borderRotationproperty 
borderRotation:int  [read-only]

The rotation of the skin's background stroke gradient.

This property can be used as the source for data binding.


Implementation
    public function get borderRotation():int
cornerRadiusproperty 
cornerRadius:uint  [read-only]

The corner radius of a rectangular custom shape.

This property can be used as the source for data binding.


Implementation
    public function get cornerRadius():uint

See also

insetStrokeColorproperty 
insetStrokeColor:uint  [read-only]

The color use by the skin's inset stroke. The inset stroke appears between the background fill and stroke in the z-order of the skin.

This property can be used as the source for data binding.


Implementation
    public function get insetStrokeColor():uint
insetStrokeColorVisibleproperty 
insetStrokeColorVisible:Boolean  [read-only]

True if the skin's inset stroke should be visible; false otherwise.

This property can be used as the source for data binding.


Implementation
    public function get insetStrokeColorVisible():Boolean
isEllipseproperty 
isEllipse:Boolean  [read-only]

True if the data in this shape should be used to draw an ellipse; false otherwise.

This property can be used as the source for data binding.


Implementation
    public function get isEllipse():Boolean
isRectangleproperty 
isRectangle:Boolean  [read-only]

True if the data in this shape should be used to draw a rectangle; false otherwise.

This property can be used as the source for data binding.


Implementation
    public function get isRectangle():Boolean
strokeWeightproperty 
strokeWeight:uint  [read-only]

The stroke weight of the skin's background stroke gradient.

This property can be used as the source for data binding.


Implementation
    public function get strokeWeight():uint
Constructor Detail
CustomShape()Constructor
public function CustomShape()

Default constructor.

Method Detail
getCurrentSkinState()method
override protected function getCurrentSkinState():String

Returns
String
setCurrentState()method 
override public function setCurrentState(stateName:String, playTransition:Boolean = true):void

Parameters

stateName:String
 
playTransition:Boolean (default = true)