org.artoflife.app
Class UserPreferences
java.lang.Object
|
+--org.artoflife.app.UserPreferences
- public class UserPreferences
- extends java.lang.Object
Singleton for saving and restoring user PREFERENCES using
the java.util.prefs.* API.
- Author:
- Steve Meyfroidt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static UserPreferences getInstance()
- Returns:
- UserPreferences singleton instance
setThumbnailSize
public void setThumbnailSize(java.awt.Dimension size)
- Parameters:
size
- a Dimension with one axis set to 0 and the other
set to the desired size (width or height).
getThumbnailSize
public java.awt.Dimension getThumbnailSize(float heightToWidth)
setImageSize
public void setImageSize(java.awt.Dimension size)
- Parameters:
size
- a Dimension with one axis set to 0 and the other
set to the desired size (width or height).
getImageSize
public java.awt.Dimension getImageSize(float heightToWidth)
setDirectory
public void setDirectory(java.io.File directory)
getDirectory
public java.io.File getDirectory()
Copyright © 2002 the Art Of Life team. All Rights Reserved.