package sg.atom.corex.config;

/**
 *
 * @author CuongNguyen
 */
public enum DeviceSettings {
    Phone(800,480), PC(1024,768);

    private DeviceSettings(int width, int height) {
        this.width = width;
        this.height = height;
    }
     
    public int width;
    public int height;
    
}

@@ -87,16 +87,17 @@
 tings %7B%0A
+%0A
     Phon
@@ -102,16 +102,17 @@
 one(800,
+ 
 480), PC
@@ -117,16 +117,17 @@
 PC(1024,
+ 
 768);%0A%0A 
@@ -245,17 +245,41 @@
   %7D%0A    
- 
+public boolean landscape;
 %0A    pub
@@ -316,15 +316,453 @@
 height;%0A
+%0A
     
+public int getWidth() %7B%0A        if (landscape) %7B%0A            return width;%0A        %7D else %7B%0A            return height;%0A        %7D%0A    %7D%0A%0A    public int getHeight() %7B%0A        if (landscape) %7B%0A            return height;%0A        %7D else %7B%0A            return width;%0A        %7D%0A    %7D%0A%0A    public void setLandscape(boolean landscape) %7B%0A        this.landscape = landscape;%0A    %7D%0A%0A    public boolean isLandscape() %7B%0A        return landscape;%0A    %7D%0A
 %0A%7D%0A

Add landscape mode