|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
net.sf.jomic.tools.BasicSettings
net.sf.jomic.tools.ImageRenderSettings
net.sf.jomic.common.ComicSheetRenderSettings
net.sf.jomic.common.Settings
public final class Settings
Settings for Jomic. These are collected as Properties, and can be read from or written to a settings file.
read(File)
,
write(File)
,
Serialized FormField Summary | |
---|---|
static int |
MAX_BLUR_RADIUS
|
static int |
MAX_BLUR_THRESHOLD
|
static int |
MIN_BLUR_RADIUS
|
static int |
MIN_BLUR_THRESHOLD
|
Fields inherited from class net.sf.jomic.common.ComicSheetRenderSettings |
---|
ROTATE_ONLY_SINGLE_PORTRAIT_IMAGES, SHOW_TWO_PAGES, SWAP_LEFT_AND_RIGHT_IMAGE |
Fields inherited from class net.sf.jomic.tools.ImageRenderSettings |
---|
DEFAULT_FILL_COLOR, DEFAULT_ROTATION, DEFAULT_SCALE_MODE, FILL_COLOR, MAX_ROTATION, MIN_ROTATION, ROTATION, SCALE_MODE, SELECTION_COLOR |
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
Settings(java.util.Properties defaults)
|
Method Summary | |
---|---|
void |
addRecentFile(java.io.File file,
int page)
|
void |
applyComicWindow(java.awt.Component component)
|
void |
clearRecentFiles()
|
boolean |
getAdjustArchiveSuffix()
|
java.io.File |
getArchiveCache()
|
int |
getArchiveCacheSizeInMb()
Get tile cache size (in mega byte). |
java.lang.String |
getBlurMode()
|
int |
getBlurRadius()
|
int |
getBlurThreshold()
|
java.io.File |
getCacheDir()
Get the base cache directory, where all the caches are stored. |
java.io.File |
getCacheDir(java.lang.String name)
Get the cache directory name in the base cache directory. |
int |
getFew()
|
java.io.File |
getImageIOCache()
|
java.io.File |
getLastCreateComicSourceDir()
|
java.io.File |
getLastCreateComicTargetDir()
|
java.io.File |
getLastExportAllImagesDir()
|
java.io.File |
getLastExportedImageDir()
|
java.lang.String |
getLocale()
|
java.io.File |
getMostRecentFile()
Get the most recently opened file, or null no recent file has ever been opened
(typically when using Jomic the first time after installation). |
int |
getMostRecentPage()
Get the most recently opened file, or null no recent file has ever been opened
(typically when using Jomic the first time after installation). |
boolean |
getOpenInFullScreen()
|
boolean |
getOpenNewComic()
|
int |
getRecentCount()
|
java.util.List |
getRecentFiles()
|
int |
getScrollCount()
|
java.io.File |
getSettingsFile()
Gets the file where the settings are stored. |
boolean |
getShowInfo()
|
boolean |
getShowThumbs()
|
boolean |
getShowToolbar()
|
java.lang.String |
getSortMode()
|
int |
getTileCacheSizeInMb()
Get tile cache size (in mega byte). |
static Settings |
instance()
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
read(java.io.File file)
|
void |
resetComicFrame()
|
void |
setAdjustArchiveSuffix(boolean newAdjustArchiveSuffix)
|
void |
setBlurMode(java.lang.String newBlurMode)
|
void |
setBlurRadius(int newBlurRadius)
|
void |
setBlurThreshold(int newBlurThreshold)
|
void |
setComicWindow(java.awt.Component component)
|
void |
setLastCreateComicSourceDir(java.io.File newSourceDir)
|
void |
setLastCreateComicTargetDir(java.io.File newTargetDir)
|
void |
setLastExportAllImagesDir(java.io.File newDir)
|
void |
setLastExportedImageDir(java.io.File newImageDir)
|
void |
setLocale(java.lang.String newLocale)
|
void |
setMostRecentPage(int newMostRecentPage)
Get the most recently opened file, or null no recent file has ever been opened
(typically when using Jomic the first time after installation). |
void |
setOpenInFullScreen(boolean newOpenInFullScreen)
|
void |
setOpenNewComic(boolean newOpenNewComic)
|
void |
setShowInfo(boolean newShowInfo)
|
void |
setShowThumbs(boolean newShowThumbs)
|
void |
setShowToolbar(boolean newShowToolbar)
|
void |
setUseBlur(boolean newUseBlur)
|
boolean |
useBlur()
|
void |
write(java.io.File settingsFile)
|
Methods inherited from class net.sf.jomic.common.ComicSheetRenderSettings |
---|
getRotateOnlySinglePortraitImages, getSwapLeftAndRightImage, getTwoPageMode, setRotateOnlySinglePortraitImages, setSwapLeftAndRightImage, setTwoPageMode |
Methods inherited from class net.sf.jomic.tools.ImageRenderSettings |
---|
getFillColor, getRotation, getScaleMode, getSelectionColor, rotateLeft, rotateRight, setFillColor, setRotation, setScaleMode, setSelectionColor |
Methods inherited from class java.util.Properties |
---|
list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_BLUR_RADIUS
public static final int MAX_BLUR_THRESHOLD
public static final int MIN_BLUR_RADIUS
public static final int MIN_BLUR_THRESHOLD
Constructor Detail |
---|
public Settings(java.util.Properties defaults)
Method Detail |
---|
public void setAdjustArchiveSuffix(boolean newAdjustArchiveSuffix)
public void setBlurMode(java.lang.String newBlurMode)
public void setBlurRadius(int newBlurRadius)
public void setBlurThreshold(int newBlurThreshold)
public void setComicWindow(java.awt.Component component)
public void setLastCreateComicSourceDir(java.io.File newSourceDir)
public void setLastCreateComicTargetDir(java.io.File newTargetDir)
public void setLastExportAllImagesDir(java.io.File newDir)
public void setLastExportedImageDir(java.io.File newImageDir)
public void setLocale(java.lang.String newLocale)
public void setMostRecentPage(int newMostRecentPage)
null
no recent file has ever been opened
(typically when using Jomic the first time after installation).
public void setOpenInFullScreen(boolean newOpenInFullScreen)
public void setOpenNewComic(boolean newOpenNewComic)
public void setShowInfo(boolean newShowInfo)
public void setShowThumbs(boolean newShowThumbs)
public void setShowToolbar(boolean newShowToolbar)
public void setUseBlur(boolean newUseBlur)
public boolean getAdjustArchiveSuffix()
public java.io.File getArchiveCache() throws java.io.IOException
java.io.IOException
public int getArchiveCacheSizeInMb()
public java.lang.String getBlurMode()
public int getBlurRadius()
public int getBlurThreshold()
public java.io.File getCacheDir(java.lang.String name) throws java.io.FileNotFoundException
name
in the base cache directory. If the directory does
not exist yet, create it.
java.io.FileNotFoundException
public java.io.File getCacheDir() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public int getFew()
public java.io.File getImageIOCache() throws java.io.IOException
java.io.IOException
public java.io.File getLastCreateComicSourceDir()
public java.io.File getLastCreateComicTargetDir()
public java.io.File getLastExportAllImagesDir()
public java.io.File getLastExportedImageDir()
public java.lang.String getLocale()
public java.io.File getMostRecentFile()
null
no recent file has ever been opened
(typically when using Jomic the first time after installation).
public int getMostRecentPage()
null
no recent file has ever been opened
(typically when using Jomic the first time after installation).
public boolean getOpenInFullScreen()
public boolean getOpenNewComic()
public int getRecentCount()
public java.util.List getRecentFiles()
public int getScrollCount()
public java.io.File getSettingsFile()
public boolean getShowInfo()
public boolean getShowThumbs()
public boolean getShowToolbar()
public java.lang.String getSortMode()
public int getTileCacheSizeInMb()
public static Settings instance()
public void addRecentFile(java.io.File file, int page)
public void applyComicWindow(java.awt.Component component)
public void clearRecentFiles()
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public void read(java.io.File file) throws java.io.IOException
java.io.IOException
public void resetComicFrame()
public boolean useBlur()
public void write(java.io.File settingsFile) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |