Class Index | File Index

Classes


Class Tee.Gradient

Colors and direction to fill areas with gradients
Defined in: <..\..\src\teechart.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Tee.Gradient(chart)
Field Summary
Field Attributes Field Name and Description
 
Array of colors to define the gradient.
 
Defines the gradient orientation ("topbottom", "bottomtop", "leftright", "rightleft", "radial", "diagonalup", "diagonaldown").
 
Array of percentages from 0 to 1, for each color in colors array.
 
Determines if contents will be filled using this gradient.
Method Summary
Method Attributes Method Name and Description
 
create(r, color)
 
rect(x, y, width, height, color)
Class Detail
Tee.Gradient(chart)
Parameters:
{Tee.Chart} chart
The parent chart this gradient object belongs to.
Field Detail
{Color[]} colors
Array of colors to define the gradient.

{String} direction
Defines the gradient orientation ("topbottom", "bottomtop", "leftright", "rightleft", "radial", "diagonalup", "diagonaldown").

{Number[]} stops
Array of percentages from 0 to 1, for each color in colors array.

{Boolean} visible
Determines if contents will be filled using this gradient.
Method Detail
{CanvasGradient} create(r, color)
Parameters:
r
color
Returns:
{CanvasGradient} Returns a canvas gradient

{CanvasGradient} rect(x, y, width, height, color)
Parameters:
x
y
width
height
color
Returns:
{CanvasGradient} Returns a canvas gradient

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Mar 23 2012 10:56:28 GMT+0100 (CET)