Packagecom.flexicious.components.tinycharts.painters
Classpublic class TinyChartPainterBase
InheritanceTinyChartPainterBase Inheritance Object
Subclasses BubbleChartPainter, FunnelChartPainter3d, PyramidChartPainter, PyramidChartPainter3d, TinyColumnChartPainter, TinyDividedBarChartPainter, TinyDividedColumnChartPainter, TinyLineChartPainter, TinyPieChartPainter, TreeMapPainter

Class responsible for painting a chart.



Public Properties
 PropertyDefined By
  chart : TinyChartBase
TinyChartPainterBase
  chartSkin : ITinyChartSkin
[read-only]
TinyChartPainterBase
  ownerComponent : IUIComponent
TinyChartPainterBase
  series : Series
TinyChartPainterBase
Public Methods
 MethodDefined By
  
TinyChartPainterBase
  
findDataPoints(x:Number, y:Number, checkInteractivity:Boolean = false, sensitivity:int = -1):Array
TinyChartPainterBase
  
paintChart():void
TinyChartPainterBase
Protected Methods
 MethodDefined By
  
checkProximity(x:Number, y:Number, xPos:Number, yPos:Number, series:Series, sensitivity:int, checkInteractivity:Boolean, plotPoint:PlotPoint):Boolean
Given a point and the X/Y cordinates of an item, returns true if the point is in proximity of the items cordinates, using mouse sensitivity value provided.
TinyChartPainterBase
  
Draws the background.
TinyChartPainterBase
  
paintDots(dots:Array, series:Series):void
Draws the dots for items that are under the mouse, as well as the items that are selected.
TinyChartPainterBase
  
paintSeries(xyPosData:Array, series:Series):void
Draws the lines or columns (or wedges) in case of pie for items all items.
TinyChartPainterBase
Property Detail
chartproperty
chart:TinyChartBase


Implementation
    public function get chart():TinyChartBase
    public function set chart(value:TinyChartBase):void
chartSkinproperty 
chartSkin:ITinyChartSkin  [read-only]


Implementation
    public function get chartSkin():ITinyChartSkin
ownerComponentproperty 
public var ownerComponent:IUIComponent

seriesproperty 
public var series:Series

Constructor Detail
TinyChartPainterBase()Constructor
public function TinyChartPainterBase(chart:TinyChartBase = null)



Parameters
chart:TinyChartBase (default = null)
Method Detail
checkProximity()method
protected function checkProximity(x:Number, y:Number, xPos:Number, yPos:Number, series:Series, sensitivity:int, checkInteractivity:Boolean, plotPoint:PlotPoint):Boolean

Given a point and the X/Y cordinates of an item, returns true if the point is in proximity of the items cordinates, using mouse sensitivity value provided.

Parameters

x:Number — X Cordinate of the point to check
 
y:Number — Y Cordinate of the point to check
 
xPos:Number — X Cordinate of the item
 
yPos:Number — Y Cordinate of the item
 
series:Series — Series object that the item belongs to
 
sensitivity:int — Mouse sensitivity
 
checkInteractivity:Boolean — Boolean flag to see if series is interactive.
 
plotPoint:PlotPoint

Returns
Boolean
findDataPoints()method 
public function findDataPoints(x:Number, y:Number, checkInteractivity:Boolean = false, sensitivity:int = -1):Array

Parameters

x:Number
 
y:Number
 
checkInteractivity:Boolean (default = false)
 
sensitivity:int (default = -1)

Returns
Array
paintBackground()method 
protected function paintBackground():void

Draws the background. Basically sets the fill of the chartAreaRect to the fill style value from the chart.

paintChart()method 
public function paintChart():void

paintDots()method 
protected function paintDots(dots:Array, series:Series):void

Draws the dots for items that are under the mouse, as well as the items that are selected.

Parameters

dots:Array — Contains information about the dots to draw. xPos, yPos, width.
 
series:Series

paintSeries()method 
protected function paintSeries(xyPosData:Array, series:Series):void

Draws the lines or columns (or wedges) in case of pie for items all items.

Parameters

xyPosData:Array — Contains information about the dots to draw. xPos, yPos, width.
 
series:Series