This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
new d5a9245 mx.graphics.GradientEntry Added (#159)
d5a9245 is described below
commit d5a92457570b32d995cb950cd2c7478d3c7b1fba
Author: Alina <[email protected]>
AuthorDate: Wed Apr 11 14:02:57 2018 +0500
mx.graphics.GradientEntry Added (#159)
* Added GradientEntry.as
mx.graphics.GradientEntry Added
* Update MXRoyaleClasses for GradientEntry
Update MXRoyaleClasses for GradientEntry
---
.../MXRoyale/src/main/royale/MXRoyaleClasses.as | 7 +-
.../src/main/royale/mx/graphics/GradientEntry.as | 93 ++++++++++++++++++++++
2 files changed, 97 insertions(+), 3 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 010e0f7..183ab6f 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 0000000..361ab93
--- /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><mx:GradientEntry></code> tag inherits all the tag
attributes
+ * of its superclass, and adds the following tag attributes:</p>
+ *
+ * <pre>
+ * <mx:GradientEntry
+ * <b>Properties</b>
+ * alpha="1.0"
+ * color="0x000000"
+ * ratio="NaN"
+ * />
+ * </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();
+
+ }
+
+
+}
+
+}
--
To stop receiving notification emails like this one, please contact
[email protected].