xml: added rotary image schema
authorGiWoong Kim <giwoong.kim@samsung.com>
Mon, 22 Dec 2014 10:52:00 +0000 (19:52 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Wed, 29 Apr 2015 13:00:57 +0000 (22:00 +0900)
Change-Id: Ie78a941f09d2c8bb67e4f48919330f76ed41e523
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/jaxb_src/org/tizen/emulator/skin/dbi/DisplayType.java
tizen/src/skin/client/src/org/tizen/emulator/skin/image/ProfileSkinImageRegistry.java
tizen/src/skin/client/xsd/ProfileSpecificSkin-layout.xsd

index 8a37e76..7851bf2 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * XML Binding
  *
- * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (C) 2011 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Contact:
  * GiWoong Kim <giwoong.kim@samsung.com>
@@ -30,7 +30,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2014.12.18 at 11:23:37 AM KST 
+// Generated on: 2014.12.22 at 07:46:39 PM KST 
 //
 
 
@@ -55,6 +55,7 @@ import javax.xml.bind.annotation.XmlType;
  *       &lt;all>
  *         &lt;element name="region" type="{http://www.tizen.org/emulator/skin/dbi}regionType"/>
  *         &lt;element name="maskImage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         &lt;element name="rotaryImage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  *       &lt;/all>
  *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
  *     &lt;/restriction>
@@ -73,6 +74,7 @@ public class DisplayType {
     @XmlElement(required = true)
     protected RegionType region;
     protected String maskImage;
+    protected String rotaryImage;
     @XmlAttribute(name = "id", required = true)
     protected int id;
 
@@ -125,6 +127,30 @@ public class DisplayType {
     }
 
     /**
+     * Gets the value of the rotaryImage property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getRotaryImage() {
+        return rotaryImage;
+    }
+
+    /**
+     * Sets the value of the rotaryImage property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setRotaryImage(String value) {
+        this.rotaryImage = value;
+    }
+
+    /**
      * Gets the value of the id property.
      * 
      */
index c435c42..2bb087b 100644 (file)
@@ -54,7 +54,8 @@ public class ProfileSkinImageRegistry {
        public enum SkinImageType {
                PROFILE_IMAGE_TYPE_NORMAL,
                PROFILE_IMAGE_TYPE_PRESSED,
-               DISPLAY_MASK_IMAGE
+               DISPLAY_MASK_IMAGE,
+               DISPLAY_ROTARY_IMAGE
        }
 
        private Display display;
@@ -125,6 +126,15 @@ public class ProfileSkinImageRegistry {
                                                String displayMaskKey = makeKey(id, imageType);
                                                skinImageMap.put(displayMaskKey,
                                                                new Image(display, skinPath + File.separator + displayMaskImage));
+                                       } else if (SkinImageType.DISPLAY_ROTARY_IMAGE == imageType) {
+                                               String displayRotaryImage = rotation.getDisplay().getRotaryImage();
+                                               if (StringUtil.isEmpty(StringUtil.nvl(displayRotaryImage))) {
+                                                       return null;
+                                               }
+
+                                               String displayRotaryKey = makeKey(id, imageType);
+                                               skinImageMap.put(displayRotaryKey,
+                                                               new Image(display, skinPath + File.separator + displayRotaryImage));
                                        }
 
                                        break;
index 2cf4f9c..2b9f3c0 100644 (file)
@@ -50,6 +50,7 @@ xmlns:dbi="http://www.tizen.org/emulator/skin/dbi" elementFormDefault="qualified
                <all>
                        <element name="region" type="dbi:regionType" minOccurs="1" maxOccurs="1"> </element>
                        <element name="maskImage" type="string" minOccurs="0" maxOccurs="1"> </element>
+                       <element name="rotaryImage" type="string" minOccurs="0" maxOccurs="1"> </element>
                </all>
                <attribute name="id" type="int" use="required"> </attribute>
        </complexType>