Update layout settings.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9075 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-09-06 22:12:35 +00:00
committed by derek
parent 0a64da8ab8
commit 41925409fc

View File

@ -21,7 +21,7 @@ public class LayoutSettings {
private int chatFrameY; private int chatFrameY;
private int chatFrameWidth; private int chatFrameWidth;
private int chatFrameHeight; private int chatFrameHeight;
private int dividerLocation = -1; private int dividerLocation = -1;
public int getMainWindowX() { public int getMainWindowX() {
return mainWindowX; return mainWindowX;
@ -40,6 +40,9 @@ public class LayoutSettings {
} }
public int getMainWindowWidth() { public int getMainWindowWidth() {
if (mainWindowWidth < 200) {
mainWindowWidth = 200;
}
return mainWindowWidth; return mainWindowWidth;
} }
@ -48,6 +51,9 @@ public class LayoutSettings {
} }
public int getMainWindowHeight() { public int getMainWindowHeight() {
if (mainWindowHeight < 400) {
mainWindowHeight = 400;
}
return mainWindowHeight; return mainWindowHeight;
} }
@ -87,14 +93,14 @@ public class LayoutSettings {
this.chatFrameHeight = chatFrameHeight; this.chatFrameHeight = chatFrameHeight;
} }
public void setSplitPaneDividerLocation(int dividerLocation) { public void setSplitPaneDividerLocation(int dividerLocation) {
this.dividerLocation = dividerLocation; this.dividerLocation = dividerLocation;
} }
public int getSplitPaneDividerLocation() {
return dividerLocation;
}
public int getSplitPaneDividerLocation() {
return dividerLocation;
}
} }