Packagecom.flexicious.components.charts.treemap
Classpublic class TreeMapPainter
InheritanceTreeMapPainter Inheritance TinyChartPainterBase Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedchart : TinyChartBase
TinyChartPainterBase
 InheritedchartSkin : ITinyChartSkin
[read-only]
TinyChartPainterBase
 InheritedownerComponent : IUIComponent
TinyChartPainterBase
 Inheritedseries : Series
TinyChartPainterBase
  treemapChart : TreeMapChart
[read-only]
TreeMapPainter
  treemapSeries : TreeMapSeries
[read-only]
TreeMapPainter
Public Methods
 MethodDefined By
  
TreeMapPainter
  
findDataPoints(x:Number, y:Number, checkInteractivity:Boolean = false, sensitivity:int = -1):Array
[override]
TreeMapPainter
  
paintChart():void
[override]
TreeMapPainter
Protected Methods
 MethodDefined By
  
checkProximity(x:Number, y:Number, xPos:Number, yPos:Number, series:Series, sensitivity:int, checkInteractivity:Boolean, plotPoint:PlotPoint):Boolean
[override] 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.
TreeMapPainter
 Inherited
Draws the background.
TinyChartPainterBase
  
paintDots(dots:Array, series:Series):void
[override] Draws the dots for items that are under the mouse, as well as the items that are selected.
TreeMapPainter
 Inherited
paintSeries(xyPosData:Array, series:Series):void
Draws the lines or columns (or wedges) in case of pie for items all items.
TinyChartPainterBase
  
setBounds(plotPoints:Array, contentBounds:Rectangle):void
TreeMapPainter
  
setLabelTextAndColor(lbl:Object, text:String, color:Object):void
TreeMapPainter
  
setMinMaxSum(plotPoints:Array):Array
TreeMapPainter
Property Detail
treemapChartproperty
treemapChart:TreeMapChart  [read-only]


Implementation
    public function get treemapChart():TreeMapChart
treemapSeriesproperty 
treemapSeries:TreeMapSeries  [read-only]


Implementation
    public function get treemapSeries():TreeMapSeries
Constructor Detail
TreeMapPainter()Constructor
public function TreeMapPainter(chart:TinyChartBase = null)



Parameters
chart:TinyChartBase (default = null)
Method Detail
checkProximity()method
override 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 
override 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
paintChart()method 
override public function paintChart():void

paintDots()method 
override 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

setBounds()method 
protected function setBounds(plotPoints:Array, contentBounds:Rectangle):void

Parameters

plotPoints:Array
 
contentBounds:Rectangle

setLabelTextAndColor()method 
protected function setLabelTextAndColor(lbl:Object, text:String, color:Object):void

Parameters

lbl:Object
 
text:String
 
color:Object

setMinMaxSum()method 
protected function setMinMaxSum(plotPoints:Array):Array

Parameters

plotPoints:Array

Returns
Array