Harbs closed pull request #159: mx.graphics.GradientEntry Added
URL: https://github.com/apache/royale-asjs/pull/159
 
 
   

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

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

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as 
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 010e0f7c2..183ab6f8c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -28,8 +28,8 @@ package
 internal class MXRoyaleClasses
 {
        import mx.collections.ArrayList; ArrayList;
-    import mx.core.mx_internal; mx_internal;
-    import mx.core.UIComponent; UIComponent;
+  import mx.core.mx_internal; mx_internal;
+  import mx.core.UIComponent; UIComponent;
        import mx.core.Container; Container;
        import mx.core.ScrollPolicy; ScrollPolicy;
        import mx.containers.beads.ApplicationLayout; ApplicationLayout;
@@ -37,6 +37,7 @@ internal class MXRoyaleClasses
        import mx.containers.ControlBar; ControlBar;
        import mx.controls.ToolTip; ToolTip;
        import mx.controls.beads.ToolTipBead; ToolTipBead;
+       import mx.graphics.GradientEntry; GradientEntry;
        import mx.core.EventPriority; EventPriority;
        import mx.core.IFactory; IFactory;
        import mx.collections.CursorBookmark; CursorBookmark;
@@ -64,7 +65,7 @@ internal class MXRoyaleClasses
        import mx.controls.HRule; HRule;
        import mx.events.ListEvent; ListEvent;
        import mx.events.SliderEvent; SliderEvent;
-    import mx.managers.FocusManager; FocusManager;
+  import mx.managers.FocusManager; FocusManager;
        import mx.utils.ArrayUtil; ArrayUtil;
     COMPILE::SWF
     {
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/GradientEntry.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/GradientEntry.as
new file mode 100644
index 000000000..361ab93e5
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/graphics/GradientEntry.as
@@ -0,0 +1,93 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.graphics
+{
+
+
+import org.apache.royale.graphics.GradientEntry;
+/**
+ *  The GradientEntry class defines the objects
+ *  that control a transition as part of a gradient fill. 
+ *  You use this class with the LinearGradient and RadialGradient classes
+ *  to define a gradient fill. 
+ *  
+ *  @mxml
+ *
+ *  <p>The <code>&lt;mx:GradientEntry&gt;</code> tag inherits all the tag 
attributes
+ *  of its superclass, and adds the following tag attributes:</p>
+ *
+ *  <pre>
+ *  &lt;mx:GradientEntry
+ *    <b>Properties</b>
+ *    alpha="1.0"
+ *    color="0x000000"
+ *    ratio="NaN"
+ *  /&gt;
+ *  </pre>
+ *  
+ 
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ */
+public class GradientEntry extends org.apache.royale.graphics.GradientEntry
+{
+/*     include "../core/Version.as";
+ */
+    /* 
//--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    
//--------------------------------------------------------------------------
+
+    *
+     *  Constructor.
+     *
+     *  @param color The color for this gradient entry.
+     *  The default value is 0x000000 (black).
+     *
+     *  @param ratio Where in the graphical element the associated color is 
+     *  sampled at 100%.
+     *  Flex uniformly spaces any GradientEntries
+     *  with missing ratio values.
+     *  The default value is NaN.
+     *
+     *  @param alpha The alpha value for this entry in the gradient. 
+     *  This parameter is optional. The default value is 1.0.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Royale 0.9.3
+    */
+    public function GradientEntry(color:uint = 0x000000,
+                                  ratio:Number = NaN,
+                                  alpha:Number = 1.0)
+    {
+        super();
+
+    }
+
+ 
+}
+
+}


 

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


With regards,
Apache Git Services

Reply via email to