flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From que...@apache.org
Subject svn commit: r1408058 - in /incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts: ./ chartClasses/ series/
Date Sun, 11 Nov 2012 18:00:46 GMT
Author: quetwo
Date: Sun Nov 11 18:00:43 2012
New Revision: 1408058

URL: http://svn.apache.org/viewvc?rev=1408058&view=rev
Log:
Patch from JIRA FLEX-33216.  Adds dependency to Dictionary, but improves performance.

Modified:
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AreaChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BarChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BubbleChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/CandlestickChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/ColumnChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/GridLines.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/HLOCChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/Legend.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LegendItem.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LineChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PieChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PlotChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/DataTip.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BarSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/HLOCSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/LineSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PieSeries.as
    incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AreaChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AreaChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AreaChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AreaChart.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts
 {
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.DataTip;
@@ -117,7 +118,7 @@ public class AreaChart extends Cartesian
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 
     //--------------------------------------------------------------------------
     //
@@ -258,10 +259,10 @@ public class AreaChart extends Cartesian
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AxisRenderer.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
Sun Nov 11 18:00:43 2012
@@ -30,6 +30,7 @@ import flash.geom.Rectangle;
 import flash.system.ApplicationDomain;
 import flash.text.TextFormat;
 import flash.utils.getQualifiedClassName;
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.AxisBase;
 import mx.charts.chartClasses.AxisLabelSet;
@@ -427,7 +428,7 @@ public class AxisRenderer extends DualSt
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false;
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     //--------------------------------------------------------------------------
     //
@@ -1152,10 +1153,10 @@ public class AxisRenderer extends DualSt
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 		
 		// our style settings
 		initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BarChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BarChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BarChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BarChart.as
Sun Nov 11 18:00:43 2012
@@ -23,6 +23,7 @@ package mx.charts
 import flash.display.DisplayObject;
 import flash.filters.DropShadowFilter;
 import flash.system.ApplicationDomain;
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.CartesianTransform;
@@ -202,7 +203,7 @@ public class BarChart extends CartesianC
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     /**
      *  @private
@@ -344,10 +345,10 @@ public class BarChart extends CartesianC
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BubbleChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BubbleChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BubbleChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/BubbleChart.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts
 {
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.DataTip;
@@ -158,7 +159,7 @@ public class BubbleChart extends Cartesi
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     //--------------------------------------------------------------------------
     //
@@ -243,10 +244,10 @@ public class BubbleChart extends Cartesi
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/CandlestickChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/CandlestickChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/CandlestickChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/CandlestickChart.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts
 {
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.DataTip;
@@ -174,7 +175,7 @@ public class CandlestickChart extends Ca
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false; 
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
     
     /**
      *  @private
@@ -250,10 +251,10 @@ public class CandlestickChart extends Ca
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/ColumnChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/ColumnChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/ColumnChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/ColumnChart.as
Sun Nov 11 18:00:43 2012
@@ -23,6 +23,7 @@ package mx.charts
 import flash.display.DisplayObject;
 import flash.filters.DropShadowFilter;
 import flash.system.ApplicationDomain;
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.CartesianTransform;
@@ -207,7 +208,7 @@ public class ColumnChart extends Cartesi
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     
     /**
@@ -454,10 +455,10 @@ public class ColumnChart extends Cartesi
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/GridLines.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/GridLines.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/GridLines.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/GridLines.as
Sun Nov 11 18:00:43 2012
@@ -22,6 +22,7 @@ package mx.charts
 
 import flash.display.Graphics;
 import flash.geom.Rectangle;
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.ChartElement;
@@ -339,7 +340,7 @@ public class GridLines extends ChartElem
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false;
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 
 	//--------------------------------------------------------------------------
 	//
@@ -378,10 +379,10 @@ public class GridLines extends ChartElem
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 		
 		// our style settings
 		initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/HLOCChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/HLOCChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/HLOCChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/HLOCChart.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts
 {
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.DataTip;
@@ -170,7 +171,7 @@ public class HLOCChart extends Cartesian
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false; 
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
     
     /**
      *  @private
@@ -251,10 +252,10 @@ public class HLOCChart extends Cartesian
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/Legend.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/Legend.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/Legend.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/Legend.as
Sun Nov 11 18:00:43 2012
@@ -1081,11 +1081,6 @@ package mx.charts
         /**
          *  @private
          */
-        private var _moduleFactoryInitialized:Boolean = false;
-        
-        /**
-         *  @private
-         */
         private var _preferredMajorAxisLength:Number;
         
         /**

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LegendItem.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LegendItem.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LegendItem.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LegendItem.as
Sun Nov 11 18:00:43 2012
@@ -23,6 +23,8 @@ package mx.charts
 import flash.display.DisplayObject;
 import flash.events.MouseEvent;
 import flash.geom.Rectangle;
+import flash.utils.Dictionary;
+
 import mx.charts.chartClasses.IChartElement;
 import mx.charts.renderers.BoxItemRenderer;
 import mx.charts.styles.HaloDefaults;
@@ -194,7 +196,7 @@ public class LegendItem extends UICompon
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false;
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 	
 	/**
 	 *  @private
@@ -409,10 +411,10 @@ public class LegendItem extends UICompon
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 	}
 	
 	/**

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LineChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LineChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LineChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/LineChart.as
Sun Nov 11 18:00:43 2012
@@ -21,6 +21,7 @@ package mx.charts
 {
 
 import flash.filters.DropShadowFilter;
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.DataTip;
@@ -114,7 +115,7 @@ public class LineChart extends Cartesian
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     //--------------------------------------------------------------------------
     //
@@ -198,10 +199,10 @@ public class LineChart extends Cartesian
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PieChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PieChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PieChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PieChart.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts
 {
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.DataTip;
 import mx.charts.chartClasses.DataTransform;
@@ -142,7 +143,7 @@ public class PieChart extends PolarChart
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false; 
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
 
     
     /**
@@ -210,10 +211,10 @@ public class PieChart extends PolarChart
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PlotChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PlotChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PlotChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/PlotChart.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts
 {
+import flash.utils.Dictionary;
 
 import mx.charts.chartClasses.CartesianChart;
 import mx.charts.chartClasses.DataTip;
@@ -110,7 +111,7 @@ public class PlotChart extends Cartesian
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     //--------------------------------------------------------------------------
     //
@@ -180,10 +181,10 @@ public class PlotChart extends Cartesian
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as
Sun Nov 11 18:00:43 2012
@@ -26,6 +26,7 @@ import flash.events.KeyboardEvent;
 import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.ui.Keyboard;
+import flash.utils.Dictionary;
 
 import mx.charts.AxisRenderer;
 import mx.charts.ChartItem;
@@ -236,7 +237,7 @@ public class CartesianChart extends Char
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     /**
      *  @private
@@ -823,10 +824,10 @@ public class CartesianChart extends Char
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         
         // our style settings

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
Sun Nov 11 18:00:43 2012
@@ -650,7 +650,7 @@ public class ChartBase extends UICompone
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     /**
      *  @private
@@ -1892,10 +1892,10 @@ public class ChartBase extends UICompone
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         
         // our style settings

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/DataTip.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/DataTip.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/DataTip.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/DataTip.as
Sun Nov 11 18:00:43 2012
@@ -25,6 +25,8 @@ import flash.display.Graphics;
 import flash.geom.Rectangle;
 import flash.text.TextFieldAutoSize;
 import flash.text.TextFormat;
+import flash.utils.Dictionary;
+
 import mx.charts.HitData;
 import mx.charts.styles.HaloDefaults;
 import mx.core.IDataRenderer;
@@ -251,7 +253,7 @@ public class DataTip extends UIComponent
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false;
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 	
     /**
      *  @private.
@@ -344,10 +346,10 @@ public class DataTip extends UIComponent
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 	}
 	
     /**

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as
Sun Nov 11 18:00:43 2012
@@ -25,6 +25,7 @@ import flash.events.KeyboardEvent;
 import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.ui.Keyboard;
+import flash.utils.Dictionary;
 
 import mx.charts.ChartItem;
 import mx.charts.LinearAxis;
@@ -102,7 +103,7 @@ public class PolarChart extends ChartBas
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false; 
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
     
     /**
      *  @private
@@ -230,10 +231,10 @@ public class PolarChart extends ChartBas
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/AreaSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
Sun Nov 11 18:00:43 2012
@@ -294,7 +294,7 @@ public class AreaSeries extends Series i
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false;
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 	
     /**
      *  @private
@@ -895,10 +895,10 @@ public class AreaSeries extends Series i
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 		
 		// our style settings
 		initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BarSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BarSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BarSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BarSeries.as
Sun Nov 11 18:00:43 2012
@@ -303,7 +303,7 @@ public class BarSeries extends Series im
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     
     /**
@@ -1083,10 +1083,10 @@ public class BarSeries extends Series im
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as
Sun Nov 11 18:00:43 2012
@@ -24,6 +24,7 @@ import flash.display.DisplayObject;
 import flash.display.Graphics;
 import flash.geom.Point;
 import flash.geom.Rectangle;
+import flash.utils.Dictionary;
 
 import mx.charts.BubbleChart;
 import mx.charts.DateTimeAxis;
@@ -210,7 +211,7 @@ public class BubbleSeries extends Series
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false; 
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
 	
 	/**
 	 *  @private
@@ -723,10 +724,10 @@ public class BubbleSeries extends Series
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 		
 		// our style settings
 		initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts.series
 {
+import flash.utils.Dictionary;
 
 import mx.charts.HitData;
 import mx.charts.chartClasses.CartesianTransform;
@@ -175,7 +176,7 @@ public class CandlestickSeries extends H
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false; 
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
 
     /**
      * @private
@@ -311,10 +312,10 @@ public class CandlestickSeries extends H
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as
Sun Nov 11 18:00:43 2012
@@ -303,7 +303,7 @@ public class ColumnSeries extends Series
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
     
     /**
      *  @private
@@ -1071,10 +1071,10 @@ public class ColumnSeries extends Series
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/HLOCSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/HLOCSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/HLOCSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/HLOCSeries.as
Sun Nov 11 18:00:43 2012
@@ -19,6 +19,7 @@
 
 package mx.charts.series
 {
+import flash.utils.Dictionary;
 
 import mx.charts.HitData;
 import mx.charts.chartClasses.HLOCSeriesBase;
@@ -177,7 +178,7 @@ public class HLOCSeries extends HLOCSeri
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false;
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 	
 	//--------------------------------------------------------------------------
 	//
@@ -214,10 +215,10 @@ public class HLOCSeries extends HLOCSeri
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 		
 		// our style settings
 		initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/LineSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/LineSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/LineSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/LineSeries.as
Sun Nov 11 18:00:43 2012
@@ -24,6 +24,7 @@ import flash.display.DisplayObject;
 import flash.display.Graphics;
 import flash.geom.Point;
 import flash.geom.Rectangle;
+import flash.utils.Dictionary;
 
 import mx.charts.DateTimeAxis;
 import mx.charts.HitData;
@@ -299,7 +300,7 @@ public class LineSeries extends Series
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false;
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true);
 
     
     /**
@@ -907,10 +908,10 @@ public class LineSeries extends Series
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PieSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PieSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PieSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PieSeries.as
Sun Nov 11 18:00:43 2012
@@ -28,6 +28,7 @@ import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.text.TextFieldAutoSize;
 import flash.text.TextFormat;
+import flash.utils.Dictionary;
 
 import mx.charts.HitData;
 import mx.charts.chartClasses.DataDescription;
@@ -370,7 +371,7 @@ public class PieSeries extends Series
 	/**
 	 *  @private
 	 */
-	private var _moduleFactoryInitialized:Boolean = false; 
+	private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
 	
     /**
      *  @private
@@ -1203,10 +1204,10 @@ public class PieSeries extends Series
 	{
 		super.moduleFactory = factory;
 		
-		if (_moduleFactoryInitialized)
+		if (_moduleFactoryInitialized[factory])
 			return;
 		
-		_moduleFactoryInitialized = true;
+		_moduleFactoryInitialized[factory] = true;
 		
 		// our style settings
 		initStyles();

Modified: incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as?rev=1408058&r1=1408057&r2=1408058&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as
(original)
+++ incubator/flex/sdk/branches/develop/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as
Sun Nov 11 18:00:43 2012
@@ -24,6 +24,7 @@ import flash.display.DisplayObject;
 import flash.display.Graphics;
 import flash.geom.Point;
 import flash.geom.Rectangle;
+import flash.utils.Dictionary;
 
 import mx.charts.DateTimeAxis;
 import mx.charts.HitData;
@@ -215,7 +216,7 @@ public class PlotSeries extends Series
     /**
      *  @private
      */
-    private var _moduleFactoryInitialized:Boolean = false; 
+    private static var _moduleFactoryInitialized:Dictionary = new Dictionary(true); 
     
     /**
      *  @private
@@ -656,10 +657,10 @@ public class PlotSeries extends Series
     {
         super.moduleFactory = factory;
         
-        if (_moduleFactoryInitialized)
+        if (_moduleFactoryInitialized[factory])
             return;
         
-        _moduleFactoryInitialized = true;
+        _moduleFactoryInitialized[factory] = true;
         
         // our style settings
         initStyles();



Mime
View raw message