/**
 * $Revision: $
 * $Date: $
 *
 * Copyright (C) 2006 Jive Software. All rights reserved.
 *
 * This software is published under the terms of the GNU Lesser Public License (LGPL),
 * a copy of which is included in this distribution.
 */

package org.jivesoftware.sparkimpl.plugin.layout;

public class LayoutSettings {

    private int mainWindowX;
    private int mainWindowY;
    private int mainWindowWidth;
    private int mainWindowHeight;

    private int chatFrameX;
    private int chatFrameY;
    private int chatFrameWidth;
    private int chatFrameHeight;
	private int dividerLocation = -1;

    public int getMainWindowX() {
        return mainWindowX;
    }

    public void setMainWindowX(int mainWindowX) {
        this.mainWindowX = mainWindowX;
    }

    public int getMainWindowY() {
        return mainWindowY;
    }

    public void setMainWindowY(int mainWindowY) {
        this.mainWindowY = mainWindowY;
    }

    public int getMainWindowWidth() {
        return mainWindowWidth;
    }

    public void setMainWindowWidth(int mainWindowWidth) {
        this.mainWindowWidth = mainWindowWidth;
    }

    public int getMainWindowHeight() {
        return mainWindowHeight;
    }

    public void setMainWindowHeight(int mainWindowHeight) {
        this.mainWindowHeight = mainWindowHeight;
    }

    public int getChatFrameX() {
        return chatFrameX;
    }

    public void setChatFrameX(int chatFrameX) {
        this.chatFrameX = chatFrameX;
    }

    public int getChatFrameY() {
        return chatFrameY;
    }

    public void setChatFrameY(int chatFrameY) {
        this.chatFrameY = chatFrameY;
    }

    public int getChatFrameWidth() {
        return chatFrameWidth;
    }

    public void setChatFrameWidth(int chatFrameWidth) {
        this.chatFrameWidth = chatFrameWidth;
    }

    public int getChatFrameHeight() {
        return chatFrameHeight;
    }

    public void setChatFrameHeight(int chatFrameHeight) {
        this.chatFrameHeight = chatFrameHeight;
    }

	public void setSplitPaneDividerLocation(int dividerLocation) {
		this.dividerLocation = dividerLocation;
		
	}

	public int getSplitPaneDividerLocation() {
		return dividerLocation;
	}

	
}

@@ -586,17 +586,20 @@
 eight;%0D%0A
-%09
+    
 private 
@@ -1006,32 +1006,117 @@
 indowWidth() %7B%0D%0A
+        if (mainWindowWidth %3C 200) %7B%0D%0A            mainWindowWidth = 200;%0D%0A        %7D%0D%0A
         return m
@@ -1290,32 +1290,119 @@
 ndowHeight() %7B%0D%0A
+        if (mainWindowHeight %3C 400) %7B%0D%0A            mainWindowHeight = 400;%0D%0A        %7D%0D%0A
         return m
@@ -2271,25 +2271,28 @@
 ;%0D%0A    %7D%0D%0A%0D%0A
-%09
+    
 public void 
@@ -2343,18 +2343,24 @@
 ion) %7B%0D%0A
-%09%09
+        
 this.div
@@ -2396,19 +2396,23 @@
 n;%0D%0A
-%09%09%0D%0A%09
+%0D%0A    
 %7D%0D%0A%0D%0A
-%09
+    
 publ
@@ -2455,10 +2455,16 @@
  %7B%0D%0A
-%09%09
+        
 retu
@@ -2488,15 +2488,17 @@
 n;%0D%0A
-%09
+    
 %7D%0D%0A%0D%0A
-%09
 %0D%0A%7D%0D

Update layout settings.