aharui closed pull request #178: ChartItem
URL: https://github.com/apache/royale-asjs/pull/178
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as 
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 45d70260a..2bbc26f83 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -73,6 +73,7 @@ internal class MXRoyaleClasses
        import mx.events.SliderEvent; SliderEvent;
   import mx.managers.FocusManager; FocusManager;
        import mx.utils.ArrayUtil; ArrayUtil;
+       import mx.charts.ChartItem; ChartItem;
        import mx.core.ClassFactory; ClassFactory;
        import mx.charts.LineChart; LineChart;
        import mx.charts.PieChart; PieChart;
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/charts/ChartItem.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/charts/ChartItem.as
new file mode 100644
index 000000000..8405abca2
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/charts/ChartItem.as
@@ -0,0 +1,131 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.charts
+{
+
+
+import org.apache.royale.events.Event;
+import org.apache.royale.events.EventDispatcher;
+import org.apache.royale.events.IEventDispatcher;
+import mx.core.IFlexDisplayObject;
+import mx.core.IInvalidating;
+/* import mx.core.IProgrammaticSkin;
+ */
+ import mx.core.IUIComponent;
+
+/**
+ *  A ChartItem represents a single item in a ChartSeries.
+ *  In most standard series, there is one ChartItem created
+ *  for each item in the series' dataProvider collection.
+ *  ChartItems are passed to the instances of a series' itemRenderer
+ *  for rendering.  
+ *  Most Series types extend ChartItem to contain additional information
+ *  specific to the chart type.  
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ *  @royalesuppresspublicvarwarning
+ */
+public class ChartItem extends EventDispatcher
+{
+/*     include "../core/Version.as";
+ */
+   
+    
//--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    
//--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param element The series or element to which the ChartItem belongs.
+     *
+     *  @param item The item from the series' data provider
+     *  that the ChartItem represents.
+     *
+     *  @param index The index of the data from the series' data provider
+     *  that the ChartItem represents.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+     */
+    public function ChartItem(element:Object = null,
+                              item:Object = null, index:uint = 0)
+    {
+        super();
+
+     //   this.element = element;
+        this.item = item;
+        this.index = index;
+     //   this._currentState = ChartItem.NONE;
+    }
+    
+    
//--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    
//--------------------------------------------------------------------------
+
+  
+    //----------------------------------
+    //  index
+    //----------------------------------
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  The index of the data from the series' data provider
+     *  that the ChartItem represents.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+     */
+    public var index:int;
+    
+    //----------------------------------
+    //  item
+    //----------------------------------
+    
+    [Inspectable(environment="none")]
+
+    /**
+     *  The item from the series' data provider that the ChartItem represents.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+     */
+    public var item:Object;
+
+   
+
+   
+}
+    
+}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to