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

Method Summary
 java.io.File getDirectory()
           
 java.awt.Dimension getImageSize(float heightToWidth)
           
static UserPreferences getInstance()
           
 java.awt.Dimension getThumbnailSize(float heightToWidth)
           
 void setDirectory(java.io.File directory)
           
 void setImageSize(java.awt.Dimension size)
           
 void setThumbnailSize(java.awt.Dimension size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()

artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.