remove bar chart classes copied from example BarChart.  Will move ones from 
FlexJSUI instead


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/516d2a32
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/516d2a32
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/516d2a32

Branch: refs/heads/develop
Commit: 516d2a32132ee2116a6633e7f75f6c42fc4f7029
Parents: 4d640b8
Author: Alex Harui <[email protected]>
Authored: Wed Jan 22 23:39:19 2014 -0800
Committer: Alex Harui <[email protected]>
Committed: Wed Jan 22 23:39:19 2014 -0800

----------------------------------------------------------------------
 .../apache/flex/html/staticControls/BarChart.as |  46 --------
 .../html/staticControls/beads/BarChartView.as   |  45 -------
 .../beads/ChartItemRendererFactory.as           | 100 ----------------
 .../flex/html/staticControls/beads/IChart.as    |  26 -----
 .../html/staticControls/beads/IChartAxis.as     |  25 ----
 .../staticControls/beads/IChartItemRenderer.as  |  39 -------
 .../html/staticControls/beads/IChartSeries.as   |  37 ------
 .../flex/html/staticControls/beads/XAxisBead.as | 107 -----------------
 .../supportClasses/BarChartSeries.as            |  70 -----------
 .../supportClasses/BoxItemRenderer.as           | 116 -------------------
 10 files changed, 611 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/BarChart.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/BarChart.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/BarChart.as
deleted file mode 100644
index 3dca482..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/BarChart.as
+++ /dev/null
@@ -1,46 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls
-{
-       import org.apache.flex.core.ISelectionModel;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.html.staticControls.beads.BarChartView;
-       import org.apache.flex.html.staticControls.beads.IChart;
-       import org.apache.flex.html.staticControls.List;
-       import 
org.apache.flex.html.staticControls.supportClasses.NonVirtualDataGroup;
-
-       public class BarChart extends List implements IChart
-       {
-               public function BarChart()
-               {
-                       super();
-               }
-               
-               private var _series:Array;
-               public function get series():Array
-               {
-                       return _series;
-               }
-               public function set series(value:Array):void
-               {
-                       _series = value;
-                       dispatchEvent(new Event("seriesChanged"));
-               }
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/BarChartView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/BarChartView.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/BarChartView.as
deleted file mode 100644
index df847aa..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/BarChartView.as
+++ /dev/null
@@ -1,45 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{
-       import org.apache.flex.core.IBeadLayout;
-       import org.apache.flex.core.IParent;
-       import org.apache.flex.core.ISelectionModel;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.ValuesManager;
-       import org.apache.flex.html.staticControls.beads.ListView;
-       import 
org.apache.flex.html.staticControls.supportClasses.NonVirtualDataGroup;
-
-       public class BarChartView extends ListView
-       {
-               public function BarChartView()
-               {
-                       super();
-               }
-               
-               private var _strand:IStrand;
-               private var listModel:ISelectionModel;
-               
-               override public function set strand(value:IStrand):void
-               {
-                       _strand = value;
-                       super.strand = value;
-               }
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/ChartItemRendererFactory.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/ChartItemRendererFactory.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/ChartItemRendererFactory.as
deleted file mode 100644
index 17526da..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/ChartItemRendererFactory.as
+++ /dev/null
@@ -1,100 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{
-       import org.apache.flex.core.IBead;
-       import org.apache.flex.core.IDataProviderItemRendererMapper;
-       import org.apache.flex.core.IItemRendererClassFactory;
-       import org.apache.flex.core.IItemRendererParent;
-       import org.apache.flex.core.ISelectionModel;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.events.IEventDispatcher;
-       import org.apache.flex.html.staticControls.beads.IListView;
-       
-       public class ChartItemRendererFactory implements IBead, 
IDataProviderItemRendererMapper
-       {
-               public function ChartItemRendererFactory()
-               {
-               }
-               
-               private var selectionModel:ISelectionModel;
-               protected var dataGroup:IItemRendererParent;
-               
-               private var _seriesRenderers:Array;
-               public function get seriesRenderers():Array
-               {
-                       return _seriesRenderers;
-               }
-               
-               private var _strand:IStrand;
-               
-               public function set strand(value:IStrand):void
-               {
-                       _strand = value;
-                       selectionModel = value.getBeadByType(ISelectionModel) 
as ISelectionModel;
-                       var listView:IListView = value.getBeadByType(IListView) 
as IListView;
-                       dataGroup = listView.dataGroup;
-//                     selectionModel.addEventListener("dataProviderChanged", 
dataProviderChangeHandler);
-                       
-                       var dp:Array = selectionModel.dataProvider as Array;
-                       if (!dp)
-                               return;
-                       
-                       _seriesRenderers = new Array();
-                       
-                       dataGroup.removeAllElements();
-                       
-                       var series:Array = IChart(_strand).series;
-
-                       for( var j:int=0; j < dp.length; j++)
-                       {
-                               var renderers:Array = new Array();
-                               
-                               for( var i:int=0; i < series.length; i++)
-                               {
-                                       var s:IChartSeries = series[i] as 
IChartSeries;
-                                       var k:IChartItemRenderer = 
s.itemRenderer.newInstance() as IChartItemRenderer;
-                                       k.xField = s.xField;
-                                       k.yField = s.yField;
-                                       k.fillColor = s.fillColor;
-                                       k.data = dp[j];
-                                       k.index = j;
-                                       
-                                       renderers.push(k);
-                                       
-                                       dataGroup.addElement(k);
-                               }
-                               
-                               _seriesRenderers.push(renderers);
-                       }
-                       
-                       IEventDispatcher(_strand).dispatchEvent(new 
Event("itemsCreated"));
-               }
-               
-               public function get 
itemRendererFactory():IItemRendererClassFactory
-               {
-                       return null;
-               }
-               
-               public function set 
itemRendererFactory(value:IItemRendererClassFactory):void
-               {
-               }
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChart.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChart.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChart.as
deleted file mode 100644
index ce0a73f..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChart.as
+++ /dev/null
@@ -1,26 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{
-       public interface IChart
-       {
-               function get series():Array;
-               function set series(value:Array):void;
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartAxis.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartAxis.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartAxis.as
deleted file mode 100644
index 079395b..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartAxis.as
+++ /dev/null
@@ -1,25 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{
-       public interface IChartAxis
-       {
-               
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartItemRenderer.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartItemRenderer.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartItemRenderer.as
deleted file mode 100644
index 61f2bc5..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartItemRenderer.as
+++ /dev/null
@@ -1,39 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{
-       import org.apache.flex.core.IItemRenderer;
-       
-       public interface IChartItemRenderer extends IItemRenderer
-       {
-               function get xField():String;
-               function set xField(value:String):void;
-               
-               function get yField():String;
-               function set yField(value:String):void;
-               
-               function get fillColor():uint;
-               function set fillColor(value:uint):void;
-               
-               function set x(value:Number):void;
-               function set y(value:Number):void;
-               function set width(value:Number):void;
-               function set height(value:Number):void;
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartSeries.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartSeries.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartSeries.as
deleted file mode 100644
index b1ec981..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/IChartSeries.as
+++ /dev/null
@@ -1,37 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{
-       import org.apache.flex.core.IItemRendererFactory;
-       
-       public interface IChartSeries
-       {
-               function get xField():String;
-               function set xField(value:String):void;
-               
-               function get yField():String;
-               function set yField(value:String):void;
-               
-               function get fillColor():uint;
-               function set fillColor(value:uint):void;
-               
-               function get itemRenderer():IItemRendererFactory;
-               function set itemRenderer(value:IItemRendererFactory):void;
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/XAxisBead.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/XAxisBead.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/XAxisBead.as
deleted file mode 100644
index d2f1308..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/beads/XAxisBead.as
+++ /dev/null
@@ -1,107 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.beads
-{      
-       import org.apache.flex.core.FilledRectangle;
-       import org.apache.flex.core.IBead;
-       import org.apache.flex.core.IDataProviderItemRendererMapper;
-       import org.apache.flex.core.ISelectionModel;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.UIBase;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.events.IEventDispatcher;
-       import org.apache.flex.html.staticControls.Label;
-       import 
org.apache.flex.html.staticControls.beads.models.ArraySelectionModel;
-       
-       public class XAxisBead implements IBead, IChartAxis
-       {
-               public function XAxisBead()
-               {
-               }
-               
-               private var _labelField:String;
-               public function get labelField():String
-               {
-                       return _labelField;
-               }
-               public function set labelField(value:String):void
-               {
-                       _labelField = value;
-               }
-               
-               private var _strand:IStrand;
-               public function set strand(value:IStrand):void
-               {
-                       _strand = value;
-                       
-                       // in order to draw or create the labels, need to know 
when the series has been created.
-                       
IEventDispatcher(_strand).addEventListener("layoutComplete",handleItemsCreated);
-               }
-               
-               private function handleItemsCreated(event:Event):void
-               {
-                       var charter:ChartItemRendererFactory =
-                               
_strand.getBeadByType(IDataProviderItemRendererMapper) as 
ChartItemRendererFactory;
-                       
-                       var model:ArraySelectionModel = 
_strand.getBeadByType(ISelectionModel) as ArraySelectionModel;
-                       var items:Array;
-                       if (model.dataProvider is Array) items = 
model.dataProvider as Array;
-                       else return;
-                       
-                       var renderers:Array = charter.seriesRenderers;
-                       var series:Array = IChart(_strand).series;
-                                       
-                       var xpos:Number = 0;
-                       var useWidth:Number = UIBase(_strand).width / 
renderers.length;
-                       
-                       // draw the horzontal axis
-                       var horzLine:FilledRectangle = new FilledRectangle();
-                       horzLine.fillColor = 0x111111;
-                       horzLine.x = 0;
-                       horzLine.y = UIBase(_strand).height;
-                       horzLine.height = 1;
-                       horzLine.width = UIBase(_strand).width;
-                       UIBase(_strand).addElement(horzLine);
-                       
-                       // place the labels below the axis enough to account 
for the tick marks
-                       var labelY:Number = UIBase(_strand).height + 8;
-                       
-                       for(var i:int=0; i < items.length; i++) {               
                
-                               var label:Label = new Label();
-                               label.text = items[i][labelField];
-                               label.x = xpos;
-                               label.y = labelY;
-                               
-                               UIBase(_strand).addElement(label);
-                               
-                               // add a tick mark, too
-                               var tick:FilledRectangle = new 
FilledRectangle();
-                               tick.fillColor = 0x111111;
-                               tick.x = xpos + useWidth/2;
-                               tick.y = UIBase(_strand).height;
-                               tick.width = 1;
-                               tick.height = 5;
-                               UIBase(_strand).addElement(tick);
-                               
-                               var r:UIBase = UIBase(renderers[i][0]);
-                               xpos += useWidth;
-                       }
-               }
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BarChartSeries.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BarChartSeries.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BarChartSeries.as
deleted file mode 100644
index 52d0039..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BarChartSeries.as
+++ /dev/null
@@ -1,70 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.supportClasses
-{
-       import org.apache.flex.core.IItemRendererFactory;       
-       import org.apache.flex.html.staticControls.beads.IChartSeries;
-
-       public class BarChartSeries implements IChartSeries
-       {
-               public function BarChartSeries()
-               {
-               }
-               
-               private var _xField:String = "x";
-               public function get xField():String
-               {
-                       return _xField;
-               }
-               public function set xField(value:String):void
-               {
-                       _xField = value;
-               }
-               
-               private var _yField:String;
-               public function get yField():String
-               {
-                       return _yField;
-               }
-               public function set yField(value:String):void
-               {
-                       _yField = value;
-               }
-               
-               private var _fillColor:uint;
-               public function get fillColor():uint
-               {
-                       return _fillColor;
-               }
-               public function set fillColor(value:uint):void
-               {
-                       _fillColor = value;
-               }
-               
-               private var _itemRenderer:IItemRendererFactory;
-               public function get itemRenderer():IItemRendererFactory
-               {
-                       return _itemRenderer;
-               }
-               public function set 
itemRenderer(value:IItemRendererFactory):void
-               {
-                       _itemRenderer = value;
-               }
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516d2a32/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BoxItemRenderer.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BoxItemRenderer.as
 
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BoxItemRenderer.as
deleted file mode 100644
index 4615edb..0000000
--- 
a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/staticControls/supportClasses/BoxItemRenderer.as
+++ /dev/null
@@ -1,116 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.staticControls.supportClasses
-{      
-       import org.apache.flex.core.FilledRectangle;
-       import org.apache.flex.core.IItemRenderer;
-       import org.apache.flex.core.IItemRendererFactory;
-       import org.apache.flex.html.staticControls.beads.IChartItemRenderer;
-       import 
org.apache.flex.html.staticControls.supportClasses.UIItemRendererBase;
-       
-       public class BoxItemRenderer extends UIItemRendererBase implements 
IChartItemRenderer, IItemRendererFactory
-       {
-               public function BoxItemRenderer()
-               {
-                       super();
-               }
-               
-               override public function newInstance():IItemRenderer
-               {
-                       return new BoxItemRenderer();
-               }
-               
-               private var _itemRendererParent:Object;
-               public function get itemRendererParent():Object
-               {
-                       return _itemRendererParent;
-               }
-               public function set itemRendererParent(value:Object):void
-               {
-                       _itemRendererParent = value;
-               }
-               
-               private var filledRect:FilledRectangle;
-               
-               private var _yField:String = "y";
-               public function get yField():String
-               {
-                       return _yField;
-               }
-               public function set yField(value:String):void
-               {
-                       _yField = value;
-               }
-               
-               private var _xField:String = "x";
-               public function get xField():String
-               {
-                       return _xField;
-               }
-               public function set xField(value:String):void
-               {
-                       _xField = value;
-               }
-               
-               private var _fillColor:uint;
-               public function get fillColor():uint
-               {
-                       return _fillColor;
-               }
-               public function set fillColor(value:uint):void
-               {
-                       _fillColor = value;
-               }
-               
-               override public function addedToParent():void
-               {
-                       super.addedToParent();
-               }
-                               
-               override public function set data(value:Object):void
-               {
-                       super.data = value;             
-                       
-                       if (filledRect == null) {
-                               filledRect = new FilledRectangle();
-                               addElement(filledRect);
-                       }       
-               }
-               
-               override public function set width(value:Number):void
-               {
-                       super.width = value;
-                       drawBar();
-               }
-               
-               override public function set height(value:Number):void
-               {
-                       super.height = value;
-                       drawBar();
-               }
-               
-               protected function drawBar():void
-               {
-                       if (filledRect) {
-                               filledRect.fillColor = fillColor;
-                               filledRect.drawRect(0,0,this.width,this.height);
-                       }
-               }
-       }
-}
\ No newline at end of file

Reply via email to