org.gerhardb.jibs.viewer
Class ViewerPreferences

java.lang.Object
  extended by org.gerhardb.jibs.viewer.ViewerPreferences

public class ViewerPreferences
extends java.lang.Object

Wraps the preferences used by the viewer and provides an way of editing the preferences.

Author:
Gerhard Beck

Field Summary
static long serialVersionUID
           
static int START_LAST_VIEWED_DIRECTORY
           
static int START_NO_DIRECTORY
           
static int START_PARTICULAR_DIRECTORY
           
static int VIEW_NO_RESIZE_KEY
           
static int VIEW_NO_RESIZE_SCROLL
           
static int VIEW_RESIZE
           
static int VIEW_THUMBS
           
 
Method Summary
static boolean blowUp()
           
static void clear()
          Clears all preferences, typically for testing a new user.
static boolean continuousShow()
           
static boolean countImageFilesInNodes()
           
static void flush()
           
static boolean getAbsolutePath()
           
static java.io.File getConfigDir()
          Get the config dir.
static java.io.File getConfigDirThumbed()
          Must come before Jibs.getJibsPropFile() test because his could be set to something bogus for read-only thumbdrives.
static int getExifPanelSize()
           
static boolean getGDFullScreen()
           
static java.io.File getKeyChangerFile()
           
static int getListPicturePanelDividerLocation()
           
static int getMaxBlow()
           
static int getSlideFlipDelay()
          Show delay
static int getSorterTileSize()
           
static int getSortOrder()
           
static int getStartType()
           
static int getTreePanelSize()
           
static java.lang.String getUI()
           
static int getView()
           
static javax.swing.Action[] getViewActions(IFrame frame)
           
static boolean immediateShow()
           
static void init()
           
static boolean isAutocopyFilenameEnabled()
           
static boolean isExifPanelShowing()
           
static boolean isFileCountNeeded()
          Do once file conversion item.
static boolean isShowSorterShowing()
           
static void main(java.lang.String[] args)
           
static void makeViewMenu(IFrame frame, javax.swing.JMenu viewMenu)
          Makes a new set for each UI its used on.
static boolean rememberDirectories()
           
static void setAbsolutePath(boolean absolute)
           
static void setAutocopyFilenameEnabled(boolean enabled)
           
static void setBlowUp(boolean blowUp)
           
static void setConfigDir(java.io.File dir)
           
static void setContinuousShow(boolean continuousShow)
           
static void setCountImageFilesInNodes(boolean enabled)
           
static void setExifPanelShowing(boolean enabled)
           
static void setExifPanleSize(int size)
           
static void setGDFullScreen(boolean gdfs)
           
static void setImmediateShow(boolean startShow)
           
static void setListPicturePanelDividerLocation(int size)
           
static void setMaxBlow(int times)
           
static void setRememberDirectories(boolean remember)
           
static void setShowExifWarning(boolean showExifEnabled)
           
static void setShowSorterShowing(boolean view)
           
static void setSlideFlipDelay(int milliseconds)
           
static void setSorterTileSize(int size)
           
static void setSortOrder(int order)
           
static void setStartFullScreen(boolean startFullScreen)
           
static void setStartType(int startType)
           
static void setTreePanleSize(int size)
           
static void setTreeShowAllFileCount(boolean showAllFileCount)
           
static void setTreeShowImageFileCount(boolean showImageFileCount)
           
static void setUI(java.lang.String ui)
           
static void setView(IFrame frame)
           
static void setView(int view)
           
static boolean showExifWarning()
           
static boolean startFullScreen()
           
static boolean treeShowAllFileCount()
           
static boolean treeShowImageFileCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

START_NO_DIRECTORY

public static final int START_NO_DIRECTORY
See Also:
Constant Field Values

START_LAST_VIEWED_DIRECTORY

public static final int START_LAST_VIEWED_DIRECTORY
See Also:
Constant Field Values

START_PARTICULAR_DIRECTORY

public static final int START_PARTICULAR_DIRECTORY
See Also:
Constant Field Values

VIEW_RESIZE

public static final int VIEW_RESIZE
See Also:
Constant Field Values

VIEW_NO_RESIZE_KEY

public static final int VIEW_NO_RESIZE_KEY
See Also:
Constant Field Values

VIEW_THUMBS

public static final int VIEW_THUMBS
See Also:
Constant Field Values

VIEW_NO_RESIZE_SCROLL

public static final int VIEW_NO_RESIZE_SCROLL
See Also:
Constant Field Values
Method Detail

init

public static void init()
Throws:
java.lang.SecurityException

getKeyChangerFile

public static java.io.File getKeyChangerFile()

getConfigDirThumbed

public static java.io.File getConfigDirThumbed()
Must come before Jibs.getJibsPropFile() test because his could be set to something bogus for read-only thumbdrives. Maybe.

Returns:

getConfigDir

public static java.io.File getConfigDir()
Get the config dir. If it does not exist, defaults to for Windows: /user/Application Data/JIBS for Linux: /user home/JIBS. Automatically initializes first time through. This is where properties goes and listing of any read-only media go.

Returns:

setConfigDir

public static void setConfigDir(java.io.File dir)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getAbsolutePath

public static boolean getAbsolutePath()

setAbsolutePath

public static void setAbsolutePath(boolean absolute)

getUI

public static java.lang.String getUI()

setUI

public static void setUI(java.lang.String ui)

getGDFullScreen

public static boolean getGDFullScreen()

setGDFullScreen

public static void setGDFullScreen(boolean gdfs)

getStartType

public static int getStartType()

setStartType

public static void setStartType(int startType)

getListPicturePanelDividerLocation

public static int getListPicturePanelDividerLocation()

setListPicturePanelDividerLocation

public static void setListPicturePanelDividerLocation(int size)

getTreePanelSize

public static int getTreePanelSize()

setExifPanleSize

public static void setExifPanleSize(int size)

getExifPanelSize

public static int getExifPanelSize()

setTreePanleSize

public static void setTreePanleSize(int size)

showExifWarning

public static boolean showExifWarning()

setShowExifWarning

public static void setShowExifWarning(boolean showExifEnabled)

treeShowAllFileCount

public static boolean treeShowAllFileCount()

setTreeShowAllFileCount

public static void setTreeShowAllFileCount(boolean showAllFileCount)

treeShowImageFileCount

public static boolean treeShowImageFileCount()

setTreeShowImageFileCount

public static void setTreeShowImageFileCount(boolean showImageFileCount)

countImageFilesInNodes

public static boolean countImageFilesInNodes()

setCountImageFilesInNodes

public static void setCountImageFilesInNodes(boolean enabled)

rememberDirectories

public static boolean rememberDirectories()

setRememberDirectories

public static void setRememberDirectories(boolean remember)

startFullScreen

public static boolean startFullScreen()

immediateShow

public static boolean immediateShow()

continuousShow

public static boolean continuousShow()

blowUp

public static boolean blowUp()

getMaxBlow

public static int getMaxBlow()

getSlideFlipDelay

public static int getSlideFlipDelay()
Show delay

Returns:
seconds

setStartFullScreen

public static void setStartFullScreen(boolean startFullScreen)

setImmediateShow

public static void setImmediateShow(boolean startShow)

setContinuousShow

public static void setContinuousShow(boolean continuousShow)

setBlowUp

public static void setBlowUp(boolean blowUp)

setMaxBlow

public static void setMaxBlow(int times)

setSlideFlipDelay

public static void setSlideFlipDelay(int milliseconds)

isFileCountNeeded

public static boolean isFileCountNeeded()
Do once file conversion item. Remove in 2010.

Returns:

getSortOrder

public static int getSortOrder()

setSortOrder

public static void setSortOrder(int order)

getSorterTileSize

public static int getSorterTileSize()

setSorterTileSize

public static void setSorterTileSize(int size)

getView

public static int getView()

setView

public static void setView(int view)

isShowSorterShowing

public static boolean isShowSorterShowing()

setShowSorterShowing

public static void setShowSorterShowing(boolean view)

setView

public static void setView(IFrame frame)

getViewActions

public static javax.swing.Action[] getViewActions(IFrame frame)

makeViewMenu

public static void makeViewMenu(IFrame frame,
                                javax.swing.JMenu viewMenu)
Makes a new set for each UI its used on.


clear

public static void clear()
                  throws java.util.prefs.BackingStoreException
Clears all preferences, typically for testing a new user.

Throws:
java.util.prefs.BackingStoreException

isAutocopyFilenameEnabled

public static boolean isAutocopyFilenameEnabled()

setAutocopyFilenameEnabled

public static void setAutocopyFilenameEnabled(boolean enabled)

isExifPanelShowing

public static boolean isExifPanelShowing()

setExifPanelShowing

public static void setExifPanelShowing(boolean enabled)

flush

public static void flush()

main

public static void main(java.lang.String[] args)


Copyright ? 2007 Gerhard Beck. All rights reserved. Subject to GPL.