Packagecom.flexicious.components.tinycharts.utils
Classpublic class ChartUtils
InheritanceChartUtils Inheritance Object



Public Methods
 MethodDefined By
  
ChartUtils
  
colorFromFill(f:Object):uint
[static] Converts a fill value into a solid color.
ChartUtils
  
[static] Datatip function
ChartUtils
  
drawArc(g:Graphics, x:Number, y:Number, startAngle:Number, arc:Number, radius:Number, yRadius:Number, continueFlag:Boolean = false):void
[static] Draws an arc in the target Graphics object.
ChartUtils
  
fillFromStyle(v:Object, alpha:Number = 1):IFill
[static] Converts a style value into a color .
ChartUtils
  
fillRect(g:Graphics, left:Number, top:Number, right:Number, bottom:Number, fill:Object = null, ls:Object = null, shadow:Number = 0, alpha:Number = 1):void
[static] Fill a rectangle using the provided IFill and IStroke objects.
ChartUtils
  
fillRect3d(g:Graphics, left:Number, top:Number, right:Number, bottom:Number, fill:Object = null, ls:Object = null, shadow:Number = 0, alpha:Number = 1):void
[static]
ChartUtils
  
getItemIndex(dataProvider:Object, item:Object):uint
[static]
ChartUtils
Constructor Detail
ChartUtils()Constructor
public function ChartUtils()



Method Detail
colorFromFill()method
public static function colorFromFill(f:Object):uint

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Converts a fill value into a solid color. This convenience method pulls a color value out of a Fill that best approximates the Fill on the screen.

Parameters

f:Object — The Fill object to extract a color from.

Returns
uint — A color value representing the Fill.
defaultDataTipFunction()method 
public static function defaultDataTipFunction(hitData:HitData):String

Datatip function

Parameters

hitData:HitData

Returns
String
drawArc()method 
public static function drawArc(g:Graphics, x:Number, y:Number, startAngle:Number, arc:Number, radius:Number, yRadius:Number, continueFlag:Boolean = false):void

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Draws an arc in the target Graphics object.

Parameters

g:Graphics — The Graphics object to draw into.
 
x:Number — The horizontal origin of the arc.
 
y:Number — The vertical origin of the arc.
 
startAngle:Number — The starting angle, in radians, of the arc.
 
arc:Number — The sweep, in radians, of the arc.
 
radius:Number — The horizontal radius, in pixels, of the arc
 
yRadius:Number (default = NaN) — The vertical radius, in pixels, of the arc. If unspecified, it is assumed to be the same as the radius
 
continueFlag:Boolean (default = false) — Indicates whether the routine should move the graphics pen to the beginning of the arc before drawing. Set to true to continue drawing a line that is already in progress.

fillFromStyle()method 
public static function fillFromStyle(v:Object, alpha:Number = 1):IFill

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Converts a style value into a color . This convenience method converts a value assigned through styles into a color object that can be used to fill an area on the screen. If the value is numeric, this function converts it into a corresponding SolidColor.

Parameters

v:Object — The value to convert into a Fill.
 
alpha:Number (default = 1)

Returns
IFill — The corresponding IFill object.
fillRect()method 
public static function fillRect(g:Graphics, left:Number, top:Number, right:Number, bottom:Number, fill:Object = null, ls:Object = null, shadow:Number = 0, alpha:Number = 1):void

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Fill a rectangle using the provided IFill and IStroke objects. This utility function fills the provided rectangle in the Graphics object with the provided Fill and Stroke. If no Stroke is provided, the rectangle is filled with no border. If no Fill is provided, the rectangle is drawn with no fill.

Parameters

g:Graphics — The Graphics object to draw into.
 
left:Number — The left of the rectangle to fill.
 
top:Number — The top of the rectangle to fill.
 
right:Number — The right of the rectangle to fill.
 
bottom:Number — The bottom of the rectangle to fill.
 
fill:Object (default = null) — The IFill object to fill the rectangle with. Set this parameter to null to draw a rectangle with no Fill.
 
ls:Object (default = null) — The stroke object to draw the rectangle with. Set this parameter to null to draw a rectangle with no Stroke.
 
shadow:Number (default = 0)
 
alpha:Number (default = 1)

fillRect3d()method 
public static function fillRect3d(g:Graphics, left:Number, top:Number, right:Number, bottom:Number, fill:Object = null, ls:Object = null, shadow:Number = 0, alpha:Number = 1):void

Parameters

g:Graphics
 
left:Number
 
top:Number
 
right:Number
 
bottom:Number
 
fill:Object (default = null)
 
ls:Object (default = null)
 
shadow:Number (default = 0)
 
alpha:Number (default = 1)

getItemIndex()method 
public static function getItemIndex(dataProvider:Object, item:Object):uint

Parameters

dataProvider:Object
 
item:Object

Returns
uint