|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.finalist.jaggenerator.Settings
The Settings class handles the loading and saving of user-settings like the current Window-size, divider-locations, etc.
| Constructor Summary | |
Settings()
|
|
| Method Summary | |
static int |
getHorizontalDividerPosition()
Returns the last-known horizontal divider position. |
static java.awt.Rectangle |
getUserWindowBounds(javax.swing.JFrame frame)
Returns the last-known window bounds. |
static int |
getVerticalDividerPosition()
Returns the last-known vertical divider position. |
static boolean |
isMaximized()
Returns the last-known maximized state. |
static void |
read()
Static method for reading the user-settings |
static void |
setHorizontalDividerPosition(int horizontalDividerPosition)
Sets a new value for the horizontal divider position that will be stored the next time you call write(). |
static void |
setMaximized(boolean maximized)
Sets a new value for the maximized state that will be stored the next time you call write(). |
static void |
setUserWindowBounds(java.awt.Rectangle bounds)
Sets a new value for the window bounds that will be stored the next time you call write(). |
static void |
setVerticalDividerPosition(int verticalDividerPosition)
Sets a new value for the vertical divider position that will be stored the next time you call write(). |
static void |
write()
Static method for writing the user-settings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Settings()
| Method Detail |
public static void read()
public static void write()
public static int getVerticalDividerPosition()
public static void setVerticalDividerPosition(int verticalDividerPosition)
write().
verticalDividerPosition - The value to store for the vertical divider position.public static int getHorizontalDividerPosition()
public static void setHorizontalDividerPosition(int horizontalDividerPosition)
write().
horizontalDividerPosition - The value to store for the horizontal divider position.public static boolean isMaximized()
public static void setMaximized(boolean maximized)
write().
maximized - The value to store for the maximized state.public static java.awt.Rectangle getUserWindowBounds(javax.swing.JFrame frame)
public static void setUserWindowBounds(java.awt.Rectangle bounds)
write().
bounds - The value to store for the window bounds.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||