Packagecom.flexicious.components.visualization.gaugesupport
Classpublic class GradientCircle
InheritanceGradientCircle Inheritance mx.core.UIComponent
Subclasses GradientArc

A circle that draws a gradient, surrounding rim, and a shadow.



Public Properties
 PropertyDefined By
  circleSize : Number
The size of the circle to draw the dial.
GradientCircle
  dialColor : Number
Color of the main face of the dial.
GradientCircle
  dialColorGradientBrightness : Number
The amount to adjust the brightness of the dial color gradient by Value should be between 0 and 100, where 100 is towards white.
GradientCircle
  dialColorGradientDarkness : Number
The amoun to adjust the darkness of the dial color gradient by Value should be between 0 and -100, where -100 is towards black.
GradientCircle
  dialRimColor : Number
Color of the rim.
GradientCircle
  drawBorder : Boolean
Draws a rectangle around the square
GradientCircle
  drawShadow : Boolean
Flag to draw a shadow on top
GradientCircle
  linearGradient : Boolean
Flag to enable linear gradient.
GradientCircle
Public Methods
 MethodDefined By
  
GradientCircle
  
drawCircle():void
Draws the atual circles.
GradientCircle
Protected Methods
 MethodDefined By
  
measure():void
[override] Just give the GradientCircle a default size 50x50.
GradientCircle
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
GradientCircle
Property Detail
circleSizeproperty
circleSize:Number

The size of the circle to draw the dial. This is used to draw the rim, the dial in concentric circles. Default: 100

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


Implementation
    public function get circleSize():Number
    public function set circleSize(value:Number):void
dialColorproperty 
dialColor:Number

Color of the main face of the dial. This is used in a gradient combination by adjusting the brightness from light to dark. The values applied are dialColorGradientDarkness for dark, and dialColorGradientBrightness for light. The gradient used is linear by default. You can change this to radial if you set linearGradient to false. When you use radial gradient, the brightness values are reversed for visual effect. Default: 0xAFAFAF

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


Implementation
    public function get dialColor():Number
    public function set dialColor(value:Number):void
dialColorGradientBrightnessproperty 
dialColorGradientBrightness:Number

The amount to adjust the brightness of the dial color gradient by Value should be between 0 and 100, where 100 is towards white. Default: 20


Implementation
    public function get dialColorGradientBrightness():Number
    public function set dialColorGradientBrightness(value:Number):void
dialColorGradientDarknessproperty 
dialColorGradientDarkness:Number

The amoun to adjust the darkness of the dial color gradient by Value should be between 0 and -100, where -100 is towards black. Default: -35


Implementation
    public function get dialColorGradientDarkness():Number
    public function set dialColorGradientDarkness(value:Number):void
dialRimColorproperty 
dialRimColor:Number

Color of the rim. Used to draw the mettalic rims around the dial. Two concentric circles are drawn with variable radii, to acheieve mettalic light effect. Default: 0xAFAFAF

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


Implementation
    public function get dialRimColor():Number
    public function set dialRimColor(value:Number):void
drawBorderproperty 
drawBorder:Boolean

Draws a rectangle around the square


Implementation
    public function get drawBorder():Boolean
    public function set drawBorder(value:Boolean):void
drawShadowproperty 
drawShadow:Boolean

Flag to draw a shadow on top


Implementation
    public function get drawShadow():Boolean
    public function set drawShadow(value:Boolean):void
linearGradientproperty 
linearGradient:Boolean

Flag to enable linear gradient. The gradient used is linear by default. You can change this to radial if you set linearGradient to false. When you use radial gradient, the brightness values used for dialColor are reversed for visual effect Default: true

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


Implementation
    public function get linearGradient():Boolean
    public function set linearGradient(value:Boolean):void
Constructor Detail
GradientCircle()Constructor
public function GradientCircle()



Method Detail
drawCircle()method
public function drawCircle():void

Draws the atual circles.

measure()method 
override protected function measure():void

Just give the GradientCircle a default size 50x50. If user specifies size, we wont need to call measure.

updateDisplayList()method 
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters

unscaledWidth:Number
 
unscaledHeight:Number