|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.ApplicationPreferences
public class ApplicationPreferences
This class keeps track of program-wide user preferences.
Constructor Summary | |
---|---|
ApplicationPreferences()
Create a new ApplicationPreferences object, loading the preferences from a file in the default location. |
|
ApplicationPreferences(java.io.InputStream in)
Create a new ApplicationPreferences object, loading the preferences from an InputStream. |
Method Summary | |
---|---|
int |
getDefaultDisplayMode()
Get the default display mode. |
Renderer |
getDefaultRenderer()
Get the default renderer. |
double |
getInteractiveSurfaceError()
Get the interactive surface error. |
boolean |
getKeepBackupFiles()
Get whether to keep backup files. |
java.util.Locale |
getLocale()
Get the locale for displaying text. |
Renderer |
getObjectPreviewRenderer()
Get the object preview renderer. |
static java.io.File |
getPreferencesDirectory()
Get the directory in which preferences files are saved. |
boolean |
getReverseZooming()
Get whether to reverse the direction of scroll wheel zooming. |
Renderer |
getTexturePreviewRenderer()
Get the texture preview renderer. |
int |
getUndoLevels()
Get the number of levels of Undo to support. |
boolean |
getUseCompoundMeshTool()
Get whether to use the compound move/scale/rotate tool as the default for mesh editing. |
boolean |
getUseOpenGL()
Get whether to use OpenGL for interactive rendering. |
void |
savePreferences()
Save any changed preferences to disk. |
void |
setDefaultDisplayMode(int mode)
Set the default display mode. |
void |
setDefaultRenderer(Renderer rend)
Set the default renderer. |
void |
setInteractiveSurfaceError(double tol)
Set the interactive surface error. |
void |
setKeepBackupFiles(boolean keep)
Set whether to keep backup files. |
void |
setLocale(java.util.Locale locale)
Set the locale for displaying text. |
void |
setObjectPreviewRenderer(Renderer rend)
Set the object preview renderer. |
void |
setReverseZooming(boolean reverse)
Set whether to reverse the direction of scroll wheel zooming. |
void |
setTexturePreviewRenderer(Renderer rend)
Set the texture preview renderer. |
void |
setUndoLevels(int levels)
Set the number of levels of Undo to support. |
void |
setUseCompoundMeshTool(boolean use)
Set whether to use the compound move/scale/rotate tool as the default for mesh editing. |
void |
setUseOpenGL(boolean use)
Set whether to use OpenGL for interactive rendering. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationPreferences()
public ApplicationPreferences(java.io.InputStream in)
Method Detail |
---|
public void savePreferences()
public static java.io.File getPreferencesDirectory()
public final Renderer getDefaultRenderer()
public final void setDefaultRenderer(Renderer rend)
public final Renderer getObjectPreviewRenderer()
public final void setObjectPreviewRenderer(Renderer rend)
public final Renderer getTexturePreviewRenderer()
public final void setTexturePreviewRenderer(Renderer rend)
public final int getDefaultDisplayMode()
public final void setDefaultDisplayMode(int mode)
public final double getInteractiveSurfaceError()
public final void setInteractiveSurfaceError(double tol)
public final java.util.Locale getLocale()
public final void setLocale(java.util.Locale locale)
public final int getUndoLevels()
public final void setUndoLevels(int levels)
public final boolean getUseOpenGL()
public final void setUseOpenGL(boolean use)
public final boolean getKeepBackupFiles()
public final void setKeepBackupFiles(boolean keep)
public final boolean getUseCompoundMeshTool()
public final void setUseCompoundMeshTool(boolean use)
public final boolean getReverseZooming()
public final void setReverseZooming(boolean reverse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |