You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/04/15 23:43:19 UTC
[14/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - move
AS classes from FlexJSJX to final home. Build scripts will be fixed up in a
later commit
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGLineSegmentItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGLineSegmentItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGLineSegmentItemRenderer.as
deleted file mode 100644
index d92a0ed..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGLineSegmentItemRenderer.as
+++ /dev/null
@@ -1,201 +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.charts.optimized
-{
- import org.apache.flex.charts.core.IChartSeries;
- import org.apache.flex.core.graphics.GraphicsContainer;
- import org.apache.flex.core.graphics.IStroke;
- import org.apache.flex.core.graphics.Path;
- import org.apache.flex.core.graphics.SolidColorStroke;
- import org.apache.flex.html.supportClasses.DataItemRenderer;
- import org.apache.flex.charts.supportClasses.ILineSegmentItemRenderer;
-
- /**
- * The SVGLineSegmentItemRenderer draws its graphics directly into a SVGChartDataGroup (a
- * GraphicsContainer).
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class SVGLineSegmentItemRenderer extends DataItemRenderer implements ILineSegmentItemRenderer
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function SVGLineSegmentItemRenderer()
- {
- super();
- }
-
- private var _series:IChartSeries;
-
- /**
- * The series to which this itemRenderer instance belongs. Or, the series
- * being presented.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get series():IChartSeries
- {
- return _series;
- }
- public function set series(value:IChartSeries):void
- {
- _series = value;
- }
-
- private var _points:Array;
-
- /**
- * The points of the vertices.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get points():Array
- {
- return _points;
- }
- public function set points(value:Array):void
- {
- _points = value;
- drawLine();
- }
-
- private var _stroke:IStroke;
-
- public function get stroke():IStroke
- {
- return _stroke;
- }
- public function set stroke(value:IStroke):void
- {
- _stroke = value;
- drawLine();
- }
-
- /**
- * @copy org.apache.flex.supportClasses.UIItemRendererBase#data
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set data(value:Object):void
- {
- super.data = value;
- }
-
- /**
- * The name of the field containing the value for the Y axis. This is not implemented by this class.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get yField():String
- {
- return null;
- }
- public function set yField(value:String):void
- {
- }
-
- /**
- * The name of the field containing the value for the X axis. This is not implemented by this class.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get xField():String
- {
- return null;
- }
- public function set xField(value:String):void
- {
- }
-
- private var _fillColor:uint;
-
- /**
- * The color used to fill the interior of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get fillColor():uint
- {
- return _fillColor;
- }
- public function set fillColor(value:uint):void
- {
- _fillColor = value;
- }
-
- /**
- * @private
- */
- protected function drawLine():void
- {
- if (points != null)
- {
- var graphicsContainer:GraphicsContainer = this.itemRendererParent as GraphicsContainer;
-
- if (stroke == null) {
- var solidColorStroke:SolidColorStroke = new SolidColorStroke();
- solidColorStroke.color = 0x000088;
- solidColorStroke.weight = 1;
- solidColorStroke.alpha = 1;
- _stroke = solidColorStroke;
- }
-
- graphicsContainer.stroke = stroke;
- graphicsContainer.fill = null;
-
- var pathString:String = "";
-
- for (var i:int=0; i < points.length; i++) {
- var point:Object = points[i];
- if (i == 0) pathString += "M "+point.x+" "+point.y+" ";
- else pathString += "L "+point.x+" "+point.y+" ";
- }
-
- graphicsContainer.drawPath(pathString);
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGWedgeItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGWedgeItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGWedgeItemRenderer.as
deleted file mode 100644
index 03e0195..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/optimized/SVGWedgeItemRenderer.as
+++ /dev/null
@@ -1,281 +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.charts.optimized
-{
- import org.apache.flex.charts.core.IChartSeries;
- import org.apache.flex.core.graphics.GraphicsContainer;
- import org.apache.flex.core.graphics.IFill;
- import org.apache.flex.core.graphics.IStroke;
- import org.apache.flex.core.graphics.Path;
- import org.apache.flex.html.supportClasses.DataItemRenderer;
- import org.apache.flex.charts.supportClasses.IWedgeItemRenderer;
-
- /**
- * The SVGWedgeItemRenderer draws its graphics directly into a SVGChartDataGroup
- * (a GraphicsContainer).
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class SVGWedgeItemRenderer extends DataItemRenderer implements IWedgeItemRenderer
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function SVGWedgeItemRenderer()
- {
- super();
- }
-
- private var _series:IChartSeries;
-
- /**
- * The series to which this itemRenderer instance belongs. Or, the series
- * being presented.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get series():IChartSeries
- {
- return _series;
- }
- public function set series(value:IChartSeries):void
- {
- _series = value;
- }
-
- private var _centerX:Number;
-
- /**
- * The X coordinate of the center of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get centerX():Number
- {
- return _centerX;
- }
- public function set centerX(value:Number):void
- {
- _centerX = value;
- drawWedgeInternal();
- }
-
- private var _centerY:Number;
-
- /**
- * The Y coordinate of the center of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get centerY():Number
- {
- return _centerY;
- }
- public function set centerY(value:Number):void
- {
- _centerY = value;
- drawWedgeInternal();
- }
-
- private var _startAngle:Number;
-
- /**
- * The starting angle (radians) of the wedge.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get startAngle():Number
- {
- return _startAngle;
- }
- public function set startAngle(value:Number):void
- {
- _startAngle = value;
- drawWedgeInternal();
- }
-
- private var _arc:Number;
-
- /**
- * The sweep (radians) of the wedge, relative to the startAngle.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get arc():Number
- {
- return _arc;
- }
- public function set arc(value:Number):void
- {
- _arc = value;
- drawWedgeInternal();
- }
-
- private var _radius:Number;
-
- /**
- * The radius of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get radius():Number
- {
- return _radius;
- }
- public function set radius(value:Number):void
- {
- _radius = value;
- drawWedgeInternal();
- }
-
- private var _fill:IFill;
-
- /**
- * The color used to fill the interior of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get fill():IFill
- {
- return _fill;
- }
- public function set fill(value:IFill):void
- {
- _fill = value;
- }
-
- private var _stroke:IStroke;
-
- /**
- * The outline of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get stroke():IStroke
- {
- return _stroke;
- }
- public function set stroke(value:IStroke):void
- {
- _stroke = value;
- }
-
- /**
- * @private
- */
- private function drawWedgeInternal():void
- {
- if ( !isNaN(centerX) && !isNaN(centerY) && !isNaN(startAngle) && !isNaN(arc) && !isNaN(radius) ) {
- drawWedge(centerX, centerY, startAngle, arc, radius, radius, false);
- }
- }
-
- /**
- * @private
- *
- * Draw a wedge of a circle
- * @param graphics the graphics object to draw into
- * @param x the x center of the circle
- * @param y the y center of the circle
- * @param startAngle start angle (radians)
- * @param arc sweep angle (radians)
- * @param radius radius of the circle
- * @param yRadius vertical radius (or radius if none given)
- * @param continueFlag if true, uses a moveTo call to start drawing at the start point of the circle; else continues drawing using only lineTo and curveTo
- *
- */
- public function drawWedge(x:Number, y:Number,
- startAngle:Number, arc:Number,
- radius:Number, yRadius:Number = NaN,
- continueFlag:Boolean = false):void
- {
- var graphicsContainer:GraphicsContainer = this.itemRendererParent as GraphicsContainer;
-
- var x1:Number = x + radius * Math.cos(startAngle);
- var y1:Number = y + radius * Math.sin(startAngle);
- var x2:Number = x + radius * Math.cos(startAngle + arc);
- var y2:Number = y + radius * Math.sin(startAngle + arc);
-
- var pathString:String = 'M' + x + ' ' + y + ' L' + x1 + ' ' + y1 + ' A' + radius + ' ' + radius +
- ' 0 0 1 ' + x2 + ' ' + y2 + ' z';
-
- graphicsContainer.fill = fill;
- graphicsContainer.stroke = stroke;
- graphicsContainer.drawPath(pathString);
- }
-
- /*
- * Ignored by WedgeItemRenderer
- */
-
- /**
- * @private
- */
- public function get xField():String
- {
- return null;
- }
- public function set xField(value:String):void
- {
- }
-
- /**
- * @private
- */
- public function get yField():String
- {
- return null;
- }
- public function set yField(value:String):void
- {
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BarSeries.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BarSeries.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BarSeries.as
deleted file mode 100644
index b45d077..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BarSeries.as
+++ /dev/null
@@ -1,103 +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.charts.supportClasses
-{
- import mx.core.IFactory;
-
- import org.apache.flex.charts.core.IChartSeries;
-
- /**
- * The BarSeries defines what field is being plotted from
- * the chart's dataProvider. For BarChartSeries, only the xField
- * is used.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class BarSeries implements IChartSeries
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function BarSeries()
- {
- }
-
- private var _xField:String = "x";
-
- /**
- * The name of the field corresponding to the X or horizontal value
- * for an item in the chart.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get xField():String
- {
- return _xField;
- }
- public function set xField(value:String):void
- {
- _xField = value;
- }
-
- private var _yField:String;
-
- /**
- * @private
- */
- public function get yField():String
- {
- return null;
- }
- public function set yField(value:String):void
- {
- // not used
- }
-
- private var _itemRenderer:IFactory;
-
- /**
- * The class or class factory to use as the itemRenderer for each X/Y pair. The
- * itemRenderer class must implement the IChartItemRenderer interface.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get itemRenderer():IFactory
- {
- return _itemRenderer;
- }
- public function set itemRenderer(value:IFactory):void
- {
- _itemRenderer = value;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BoxItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BoxItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BoxItemRenderer.as
deleted file mode 100644
index 1bec3b1..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/BoxItemRenderer.as
+++ /dev/null
@@ -1,254 +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.charts.supportClasses
-{
- import org.apache.flex.charts.core.IChartItemRenderer;
- import org.apache.flex.charts.core.IChartSeries;
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.graphics.IFill;
- import org.apache.flex.core.graphics.IStroke;
- import org.apache.flex.core.graphics.Rect;
- import org.apache.flex.core.graphics.SolidColor;
- import org.apache.flex.html.supportClasses.DataItemRenderer;
-
- /**
- * The BoxItemRenderer displays a colored rectangular area suitable for use as
- * an itemRenderer for a BarChartSeries. This class implements the
- * org.apache.flex.charts.core.IChartItemRenderer
- * interface.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class BoxItemRenderer extends DataItemRenderer implements IChartItemRenderer
- {
- /**
- * constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function BoxItemRenderer()
- {
- super();
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
- }
-
- override public function addBead(bead:IBead):void
- {
- super.addBead(bead);
- }
-
- private var _series:IChartSeries;
-
- /**
- * The series to which this itemRenderer instance belongs. Or, the series
- * being presented.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get series():IChartSeries
- {
- return _series;
- }
- public function set series(value:IChartSeries):void
- {
- _series = value;
- }
-
- private var filledRect:Rect;
-
- private var _yField:String = "y";
-
- /**
- * The name of the field containing the value for the Y axis.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get yField():String
- {
- return _yField;
- }
- public function set yField(value:String):void
- {
- _yField = value;
- }
-
- private var _xField:String = "x";
-
- /**
- * The name of the field containing the value for the X axis.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get xField():String
- {
- return _xField;
- }
- public function set xField(value:String):void
- {
- _xField = value;
- }
-
- private var _fill:IFill;
-
- /**
- * The color used to fill the interior of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get fill():IFill
- {
- return _fill;
- }
- public function set fill(value:IFill):void
- {
- _fill = value;
- }
-
- private var _stroke:IStroke;
-
- /**
- * The outline of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get stroke():IStroke
- {
- return _stroke;
- }
- public function set stroke(value:IStroke):void
- {
- _stroke = value;
- }
-
- /**
- * @copy org.apache.flex.supportClasses.UIItemRendererBase#data
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set data(value:Object):void
- {
- super.data = value;
- drawBar();
- }
-
- /**
- * @copy org.apache.flex.core.UIBase#width
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set width(value:Number):void
- {
- super.width = value;
- drawBar();
- }
-
- /**
- * @copy org.apache.flex.core.UIBase#height
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set height(value:Number):void
- {
- super.height = value;
- drawBar();
- }
-
- /**
- * @private
- */
- protected function drawBar():void
- {
- if ((this.width > 0) && (this.height > 0))
- {
- var needsAdd:Boolean = false;
-
- if (filledRect == null) {
- filledRect = new Rect();
- needsAdd = true;
- }
-
- filledRect.fill = fill;
- filledRect.stroke = stroke;
- filledRect.x = 0;
- filledRect.y = 0;
- filledRect.width = this.width;
- filledRect.height = this.height;
-
- if (needsAdd) {
- addElement(filledRect);
- }
- }
- }
-
- private var hoverFill:SolidColor;
-
- override public function updateRenderer():void
- {
- super.updateRenderer();
-
- if (down||selected||hovered) {
- if (hoverFill == null) {
- hoverFill = new SolidColor();
- hoverFill.color = (fill as SolidColor).color;
- hoverFill.alpha = 0.5;
- }
- filledRect.fill = hoverFill;
- }
- else {
- filledRect.fill = fill;
- }
-
- filledRect.drawRect(filledRect.x, filledRect.y, filledRect.width, filledRect.height);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ColumnSeries.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ColumnSeries.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ColumnSeries.as
deleted file mode 100644
index 58924c6..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ColumnSeries.as
+++ /dev/null
@@ -1,93 +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.charts.supportClasses
-{
- import mx.core.IFactory;
-
- import org.apache.flex.charts.core.IChartSeries;
-
- /**
- * The ColumnSeries defines what field is being plotted from
- * the chart's dataProvider. For ColumnSeries, only the yField
- * is used.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class ColumnSeries implements IChartSeries
- {
- public function ColumnSeries()
- {
- }
-
- /**
- * @private
- */
- public function get xField():String
- {
- return null;
- }
- public function set xField(value:String):void
- {
- // not used
- }
-
- private var _yField:String;
-
- /**
- * The name of the field that provides the Y or vertical value for an
- * item in the chart.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get yField():String
- {
- return _yField;
- }
- public function set yField(value:String):void
- {
- _yField = value;
- }
-
- private var _itemRenderer:IFactory;
-
- /**
- * The class or class factory to use as the itemRenderer for each X/Y pair. The
- * itemRenderer class must implement the IChartItemRenderer interface.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get itemRenderer():IFactory
- {
- return _itemRenderer;
- }
- public function set itemRenderer(value:IFactory):void
- {
- _itemRenderer = value;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ILineSegmentItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ILineSegmentItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ILineSegmentItemRenderer.as
deleted file mode 100644
index a42c1d8..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/ILineSegmentItemRenderer.as
+++ /dev/null
@@ -1,57 +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.charts.supportClasses
-{
- import org.apache.flex.charts.core.IChartItemRenderer;
- import org.apache.flex.core.graphics.IStroke;
-
- /**
- * The ILineSegmentItemRenderer interface must be implemented by any class that
- * will become an line segment itemRenderer for a LineSeries.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public interface ILineSegmentItemRenderer extends IChartItemRenderer
- {
- /**
- * The points that define the vertices of the line segment.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get points():Array;
- function set points(value:Array):void;
-
- /**
- * The characteristics of the line.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get stroke():IStroke;
- function set stroke(value:IStroke):void;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/IWedgeItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/IWedgeItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/IWedgeItemRenderer.as
deleted file mode 100644
index ca3fe08..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/IWedgeItemRenderer.as
+++ /dev/null
@@ -1,113 +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.charts.supportClasses
-{
- import org.apache.flex.charts.core.IChartItemRenderer;
- import org.apache.flex.core.graphics.IFill;
- import org.apache.flex.core.graphics.IStroke;
-
- /**
- * The IWedgeItemRenderer interface must be implemented by any class that
- * is used as an itemRenderer for a PieSeries.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public interface IWedgeItemRenderer extends IChartItemRenderer
- {
- /**
- * The X coordinate of the center point of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get centerX():Number;
- function set centerX(value:Number):void;
-
- /**
- * The Y coordinate of the center of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get centerY():Number;
- function set centerY(value:Number):void;
-
- /**
- * The angle (radians) at which the wedge begins.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get startAngle():Number;
- function set startAngle(value:Number):void;
-
- /**
- * The sweep (radians) of the wedge relative to the startAngle.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get arc():Number;
- function set arc(value:Number):void;
-
- /**
- * The radius of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get radius():Number;
- function set radius(value:Number):void;
-
- /**
- * The color of the wedge.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get fill():IFill;
- function set fill(value:IFill):void;
-
- /**
- * The color of the outline of the wedge.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- function get stroke():IStroke;
- function set stroke(value:IStroke):void;
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSegmentItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSegmentItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSegmentItemRenderer.as
deleted file mode 100644
index 850dc42..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSegmentItemRenderer.as
+++ /dev/null
@@ -1,194 +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.charts.supportClasses
-{
- import org.apache.flex.charts.core.IChartSeries;
- import org.apache.flex.core.graphics.IStroke;
- import org.apache.flex.core.graphics.Path;
- import org.apache.flex.html.supportClasses.DataItemRenderer;
-
- /**
- * The LineSegmentItemRenderer class draws a line between the vertices of a LineSeries.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class LineSegmentItemRenderer extends DataItemRenderer implements ILineSegmentItemRenderer
- {
- public function LineSegmentItemRenderer()
- {
- super();
- }
-
- private var _series:IChartSeries;
-
- /**
- * The series to which this itemRenderer instance belongs. Or, the series
- * being presented.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get series():IChartSeries
- {
- return _series;
- }
- public function set series(value:IChartSeries):void
- {
- _series = value;
- }
-
- private var _points:Array;
-
- /**
- * The points of the vertices.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get points():Array
- {
- return _points;
- }
- public function set points(value:Array):void
- {
- _points = value;
- drawLine();
- }
-
- private var _stroke:IStroke;
-
- public function get stroke():IStroke
- {
- return _stroke;
- }
- public function set stroke(value:IStroke):void
- {
- _stroke = value;
- drawLine();
- }
-
- private var path:Path;
-
- /**
- * @copy org.apache.flex.supportClasses.UIItemRendererBase#data
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- override public function set data(value:Object):void
- {
- super.data = value;
- }
-
- /**
- * The name of the field containing the value for the Y axis. This is not implemented by this class.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get yField():String
- {
- return null;
- }
- public function set yField(value:String):void
- {
- }
-
- /**
- * The name of the field containing the value for the X axis. This is not implemented by this class.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get xField():String
- {
- return null;
- }
- public function set xField(value:String):void
- {
- }
-
- private var _fillColor:uint;
-
- /**
- * The color used to fill the interior of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get fillColor():uint
- {
- return _fillColor;
- }
- public function set fillColor(value:uint):void
- {
- _fillColor = value;
- }
-
- /**
- * @private
- */
- protected function drawLine():void
- {
- var needsAddElement:Boolean = false;
-
- if (points != null)
- {
- if (path == null) {
- path = new Path();
- needsAddElement = true;
- }
-
- path.stroke = stroke;
- path.fill = null;
-
- var pathString:String = "";
-
- for (var i:int=0; i < points.length; i++) {
- var point:Object = points[i];
- if (i == 0) pathString += "M "+point.x+" "+point.y+" ";
- else pathString += "L "+point.x+" "+point.y+" ";
- }
-
- path.x = 0;
- path.y = 0;
- path.data = pathString;
-
- if (needsAddElement) {
- addElement(path);
- }
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSeries.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSeries.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSeries.as
deleted file mode 100644
index b0b98c2..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/LineSeries.as
+++ /dev/null
@@ -1,114 +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.charts.supportClasses
-{
- import mx.core.IFactory;
-
- import org.apache.flex.charts.core.IChartSeries;
-
- /**
- * The LineChartSeries represents a pair of X and Y values to be drawn
- * within a org.apache.flex.charts.LineChart.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class LineSeries implements IChartSeries
- {
- public function LineSeries()
- {
- }
-
- private var _xField:String;
-
- /**
- * The name of the field corresponding to the X or horizontal value
- * for an item in the chart.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get xField():String
- {
- return _xField;
- }
- public function set xField(value:String):void
- {
- _xField = value;
- }
-
- private var _yField:String;
-
- /**
- * The name of the field that provides the Y or vertical value for an
- * item in the chart.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get yField():String
- {
- return _yField;
- }
- public function set yField(value:String):void
- {
- _yField = value;
- }
-
- private var _itemRenderer:IFactory;
-
- /**
- * The class or class factory to use as the itemRenderer for each X/Y pair. The
- * itemRenderer class must implement the IChartItemRenderer interface.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get itemRenderer():IFactory
- {
- return _itemRenderer;
- }
- public function set itemRenderer(value:IFactory):void
- {
- _itemRenderer = value;
- }
-
- private var _lineSegmentRenderer:IFactory;
-
- /**
- * The class or class factory to use to render each segment of the series.
- */
- public function get lineSegmentRenderer():IFactory
- {
- return _lineSegmentRenderer;
- }
- public function set lineSegmentRenderer(value:IFactory):void
- {
- _lineSegmentRenderer = value;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/PieSeries.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/PieSeries.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/PieSeries.as
deleted file mode 100644
index e5e5c96..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/PieSeries.as
+++ /dev/null
@@ -1,85 +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.charts.supportClasses
-{
- import mx.core.IFactory;
-
- import org.apache.flex.charts.core.IChartSeries;
-
- public class PieSeries implements IChartSeries
- {
- public function PieSeries()
- {
- }
-
- private var _dataField:String;
- public function get dataField():String
- {
- return _dataField;
- }
- public function set dataField(value:String):void
- {
- _dataField = value;
- }
-
- private var _itemRenderer:IFactory;
-
- /**
- * The class or class factory to use as the itemRenderer for each X/Y pair. The
- * itemRenderer class must implement the IChartItemRenderer interface.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get itemRenderer():IFactory
- {
- return _itemRenderer;
- }
- public function set itemRenderer(value:IFactory):void
- {
- _itemRenderer = value;
- }
-
- // todo: fillColors - one color for each wedge which will be repeated if necessary
-
- /*
- * Properties ignored for PieChartSeries
- */
-
- public function get xField():String
- {
- return null;
- }
-
- public function set xField(value:String):void
- {
- }
-
- public function get yField():String
- {
- return null;
- }
-
- public function set yField(value:String):void
- {
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/WedgeItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/WedgeItemRenderer.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/WedgeItemRenderer.as
deleted file mode 100644
index ca25fbd..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/supportClasses/WedgeItemRenderer.as
+++ /dev/null
@@ -1,272 +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.charts.supportClasses
-{
- import org.apache.flex.charts.core.IChartSeries;
- import org.apache.flex.core.graphics.IFill;
- import org.apache.flex.core.graphics.IStroke;
- import org.apache.flex.core.graphics.Path;
- import org.apache.flex.html.supportClasses.DataItemRenderer;
-
- /**
- * The WedgeItemRenderer draws a single slide of a PieSeries.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class WedgeItemRenderer extends DataItemRenderer implements IWedgeItemRenderer
- {
- public function WedgeItemRenderer()
- {
- super();
- }
-
- private var _series:IChartSeries;
-
- /**
- * The series to which this itemRenderer instance belongs. Or, the series
- * being presented.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get series():IChartSeries
- {
- return _series;
- }
- public function set series(value:IChartSeries):void
- {
- _series = value;
- }
-
- private var _centerX:Number;
-
- /**
- * The X coordinate of the center of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get centerX():Number
- {
- return _centerX;
- }
- public function set centerX(value:Number):void
- {
- _centerX = value;
- drawWedgeInternal();
- }
-
- private var _centerY:Number;
-
- /**
- * The Y coordinate of the center of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get centerY():Number
- {
- return _centerY;
- }
- public function set centerY(value:Number):void
- {
- _centerY = value;
- drawWedgeInternal();
- }
-
- private var _startAngle:Number;
-
- /**
- * The starting angle (radians) of the wedge.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get startAngle():Number
- {
- return _startAngle;
- }
- public function set startAngle(value:Number):void
- {
- _startAngle = value;
- drawWedgeInternal();
- }
-
- private var _arc:Number;
-
- /**
- * The sweep (radians) of the wedge, relative to the startAngle.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get arc():Number
- {
- return _arc;
- }
- public function set arc(value:Number):void
- {
- _arc = value;
- drawWedgeInternal();
- }
-
- private var _radius:Number;
-
- /**
- * The radius of the pie.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get radius():Number
- {
- return _radius;
- }
- public function set radius(value:Number):void
- {
- _radius = value;
- drawWedgeInternal();
- }
-
- private var _fill:IFill;
-
- /**
- * The color used to fill the interior of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get fill():IFill
- {
- return _fill;
- }
- public function set fill(value:IFill):void
- {
- _fill = value;
- }
-
- private var _stroke:IStroke;
-
- /**
- * The outline of the box.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get stroke():IStroke
- {
- return _stroke;
- }
- public function set stroke(value:IStroke):void
- {
- _stroke = value;
- }
-
- /**
- * @private
- */
- private function drawWedgeInternal():void
- {
- if ( !isNaN(centerX) && !isNaN(centerY) && !isNaN(startAngle) && !isNaN(arc) && !isNaN(radius) ) {
- drawWedge(centerX, centerY, startAngle, arc, radius, radius, false);
- }
- }
-
- /**
- * @private
- *
- * Draw a wedge of a circle
- * @param graphics the graphics object to draw into
- * @param x the x center of the circle
- * @param y the y center of the circle
- * @param startAngle start angle (radians)
- * @param arc sweep angle (radians)
- * @param radius radius of the circle
- * @param yRadius vertical radius (or radius if none given)
- * @param continueFlag if true, uses a moveTo call to start drawing at the start point of the circle; else continues drawing using only lineTo and curveTo
- *
- */
- public function drawWedge(x:Number, y:Number,
- startAngle:Number, arc:Number,
- radius:Number, yRadius:Number = NaN,
- continueFlag:Boolean = false):void
- {
- var x1:Number = x + radius * Math.cos(startAngle);
- var y1:Number = y + radius * Math.sin(startAngle);
- var x2:Number = x + radius * Math.cos(startAngle + arc);
- var y2:Number = y + radius * Math.sin(startAngle + arc);
-
- var pathString:String = 'M' + x + ' ' + y + ' L' + x1 + ' ' + y1 + ' A' + radius + ' ' + radius +
- ' 0 0 1 ' + x2 + ' ' + y2 + ' z';
-
- var path:Path = new Path();
- path.fill = fill;
- path.stroke = stroke;
- path.x = 0;
- path.y = 0;
- path.data = pathString;
- addElement(path);
- }
-
- /*
- * Ignored by WedgeItemRenderer
- */
-
- /**
- * @private
- */
- public function get xField():String
- {
- return null;
- }
- public function set xField(value:String):void
- {
- }
-
- /**
- * @private
- */
- public function get yField():String
- {
- return null;
- }
- public function set yField(value:String):void
- {
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
deleted file mode 100644
index beeffd2..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
+++ /dev/null
@@ -1,328 +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.core
-{
- import org.apache.flex.binding.ConstantBinding;
- import org.apache.flex.binding.GenericBinding;
- import org.apache.flex.binding.PropertyWatcher;
- import org.apache.flex.binding.SimpleBinding;
- import org.apache.flex.binding.WatcherBase;
- import org.apache.flex.core.IBead;
- import org.apache.flex.core.IStrand;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.IEventDispatcher;
-
- /**
- * The ApplicationDataBinding class implements databinding for
- * Application instances. Different classes can have
- * different databinding implementation that optimize for
- * the different lifecycles. For example, an item renderer
- * databinding implementation can wait to execute databindings
- * until the data property is set.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class ApplicationDataBinding extends DataBindingBase implements IBead
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function ApplicationDataBinding()
- {
- super();
- }
-
- private var _strand:IStrand;
-
- /**
- * @copy org.apache.flex.core.IBead#strand
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function set strand(value:IStrand):void
- {
- _strand = value;
- IEventDispatcher(_strand).addEventListener("viewChanged", initCompleteHandler);
- }
-
- private function initCompleteHandler(event:Event):void
- {
- var fieldWatcher:Object;
- var sb:SimpleBinding;
- if (!("_bindings" in _strand))
- return;
- var bindingData:Array = _strand["_bindings"];
- var n:int = bindingData[0];
- var bindings:Array = [];
- var i:int;
- var index:int = 1;
- for (i = 0; i < n; i++)
- {
- var binding:Object = {};
- binding.source = bindingData[index++];
- binding.destFunc = bindingData[index++];
- binding.destination = bindingData[index++];
- bindings.push(binding);
- }
- var watchers:Object = decodeWatcher(bindingData.slice(index));
- for (i = 0; i < n; i++)
- {
- binding = bindings[i];
- if (binding.source is Array)
- {
- if (binding.source[0] in _strand)
- {
- if (binding.source.length == 2 && binding.destination.length == 2)
- {
- // simple component.property binding
- var destObject:Object;
- var destination:IStrand;
- // can be simplebinding or constantbinding
- var compWatcher:Object = watchers.watcherMap[binding.source[0]];
- fieldWatcher = compWatcher.children.watcherMap[binding.source[1]];
- if (fieldWatcher.eventNames is String)
- {
- sb = new SimpleBinding();
- sb.destinationPropertyName = binding.destination[1];
- sb.eventName = fieldWatcher.eventNames as String;
- sb.sourceID = binding.source[0];
- sb.sourcePropertyName = binding.source[1];
- sb.setDocument(_strand);
- destObject = _strand[binding.destination[0]];
- destination = destObject as IStrand;
- if (destination)
- destination.addBead(sb);
- else
- {
- if (destObject)
- {
- sb.destination = destObject;
- _strand.addBead(sb);
- }
- else
- {
- deferredBindings[binding.destination[0]] = sb;
- IEventDispatcher(_strand).addEventListener("valueChange", deferredBindingsHandler);
- }
- }
- }
- else if (fieldWatcher.eventNames == null)
- {
- var cb:ConstantBinding = new ConstantBinding();
- cb.destinationPropertyName = binding.destination[1];
- cb.sourceID = binding.source[0];
- cb.sourcePropertyName = binding.source[1];
- cb.setDocument(_strand);
- destObject = _strand[binding.destination[0]];
- destination = destObject as IStrand;
- if (destination)
- destination.addBead(cb);
- else
- {
- if (destObject)
- {
- cb.destination = destObject;
- _strand.addBead(sb);
- }
- else
- {
- deferredBindings[binding.destination[0]] = sb;
- IEventDispatcher(_strand).addEventListener("valueChange", deferredBindingsHandler);
- }
- }
- }
- }
- }
- }
- else if (binding.source is String)
- {
- fieldWatcher = watchers.watcherMap[binding.source];
- if (fieldWatcher.eventNames is String)
- {
- sb = new SimpleBinding();
- sb.destinationPropertyName = binding.destination[1];
- sb.eventName = fieldWatcher.eventNames as String;
- sb.sourcePropertyName = binding.source;
- sb.setDocument(_strand);
- destObject = _strand[binding.destination[0]];
- destination = destObject as IStrand;
- if (destination)
- destination.addBead(sb);
- else
- {
- if (destObject)
- {
- sb.destination = destObject;
- _strand.addBead(sb);
- }
- else
- {
- deferredBindings[binding.destination[0]] = sb;
- IEventDispatcher(_strand).addEventListener("valueChange", deferredBindingsHandler);
- }
- }
- }
- }
- else
- {
- makeGenericBinding(binding, i, watchers);
- }
- }
- }
-
- private function makeGenericBinding(binding:Object, index:int, watchers:Object):void
- {
- var gb:GenericBinding = new GenericBinding();
- gb.setDocument(_strand);
- gb.destinationData = binding.destination;
- gb.destinationFunction = binding.destFunc;
- gb.source = binding.source;
- setupWatchers(gb, index, watchers.watchers, null);
- }
-
- private function setupWatchers(gb:GenericBinding, index:int, watchers:Array, parentWatcher:WatcherBase):void
- {
- var n:int = watchers.length;
- for (var i:int = 0; i < n; i++)
- {
- var watcher:Object = watchers[i];
- if (watcher.bindings.indexOf(index) != -1)
- {
- var type:String = watcher.type;
- switch (type)
- {
- case "property":
- {
- var pw:PropertyWatcher = new PropertyWatcher(this,
- watcher.propertyName,
- watcher.eventNames,
- watcher.getterFunction);
- watcher.watcher = pw;
- if (parentWatcher)
- pw.parentChanged(parentWatcher.value);
- else
- pw.parentChanged(_strand);
- if (parentWatcher)
- parentWatcher.addChild(pw);
- if (watcher.children == null)
- pw.addBinding(gb);
- break;
- }
- }
- if (watcher.children)
- {
- setupWatchers(gb, index, watcher.children, watcher.watcher);
- }
- }
- }
- }
-
- private function decodeWatcher(bindingData:Array):Object
- {
- var watcherMap:Object = {};
- var watchers:Array = [];
- var n:int = bindingData.length;
- var index:int = 0;
- var watcherData:Object;
- // FalconJX adds an extra null to the data so make sure
- // we have enough data for a complete watcher otherwise
- // say we are done
- while (index < n - 2)
- {
- var watcherIndex:int = bindingData[index++];
- var type:int = bindingData[index++];
- switch (type)
- {
- case 0:
- {
- watcherData = { type: "function" };
- watcherData.functionName = bindingData[index++];
- watcherData.paramFunction = bindingData[index++];
- watcherData.eventNames = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- break;
- }
- case 1:
- {
- watcherData = { type: "static" };
- watcherData.propertyName = bindingData[index++];
- watcherData.eventNames = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- watcherData.getterFunction = bindingData[index++];
- watcherData.parentObj = bindingData[index++];
- watcherMap[watcherData.propertyName] = watcherData;
- break;
- }
- case 2:
- {
- watcherData = { type: "property" };
- watcherData.propertyName = bindingData[index++];
- watcherData.eventNames = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- watcherData.getterFunction = bindingData[index++];
- watcherMap[watcherData.propertyName] = watcherData;
- break;
- }
- case 3:
- {
- watcherData = { type: "xml" };
- watcherData.propertyName = bindingData[index++];
- watcherData.bindings = bindingData[index++];
- watcherMap[watcherData.propertyName] = watcherData;
- break;
- }
- }
- watcherData.children = bindingData[index++];
- if (watcherData.children != null)
- {
- watcherData.children = decodeWatcher(watcherData.children);
- }
- watcherData.index = watcherIndex;
- watchers.push(watcherData);
- }
- return { watchers: watchers, watcherMap: watcherMap };
- }
-
- private var deferredBindings:Object = {};
- private function deferredBindingsHandler(event:Event):void
- {
- for (var p:String in deferredBindings)
- {
- if (_strand[p] != null)
- {
- var destination:IStrand = _strand[p] as IStrand;
- destination.addBead(deferredBindings[p]);
- delete deferredBindings[p];
- }
- }
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72b21f62/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
deleted file mode 100644
index a75ee11..0000000
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
+++ /dev/null
@@ -1,109 +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.core
-{
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
-
- /**
- * The BindableCSSStyles class contains CSS style
- * properties supported by SimpleCSSValuesImpl but
- * dispatch change events when modified
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public class BindableCSSStyles extends EventDispatcher
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function BindableCSSStyles()
- {
- super();
- }
-
-
- [Bindable]
- public var top:*;
- [Bindable]
- public var bottom:*;
- [Bindable]
- public var left:*;
- [Bindable]
- public var right:*;
- [Bindable]
- public var padding:*;
- [Bindable]
- public var paddingLeft:*;
- [Bindable]
- public var paddingRight:*;
- [Bindable]
- public var paddingTop:*;
- [Bindable]
- public var paddingBottom:*;
- [Bindable]
- public var margin:*;
- [Bindable]
- public var marginLeft:*;
- [Bindable]
- public var marginRight:*;
- [Bindable]
- public var marginTop:*;
- [Bindable]
- public var marginBottom:*;
- [Bindable]
- public var horizontalCenter:*;
- [Bindable]
- public var verticalCenter:*;
- [Bindable]
- public var horizontalAlign:*;
- [Bindable]
- public var verticalAlign:*;
- [Bindable]
- public var fontFamily:*;
- [Bindable]
- public var fontSize:*;
- [Bindable]
- public var color:*;
- [Bindable]
- public var fontWeight:*;
- [Bindable]
- public var fontStyle:*;
- [Bindable]
- public var backgroundAlpha:*;
- [Bindable]
- public var backgroundColor:*;
- [Bindable]
- public var backgroundImage:*;
- [Bindable]
- public var borderColor:*;
- [Bindable]
- public var borderStyle:*;
- [Bindable]
- public var borderRadius:*;
- }
-}
\ No newline at end of file