public class Settings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
brushPromptDelay
Delay until the setup prompt for the brush drawer is displayed (in
milliseconds).
|
static java.lang.String |
chimeFile
Path to the sound file with the chime sound.
|
static java.lang.String |
colouringFolder
Location of the folder that contains the colouring pages.
|
static java.lang.String |
dataFolder
Location of the main data folder.
|
static java.lang.String |
defaultLayoutFile
Location of the default workspace layout file.
|
static int |
drawerAutoClosingSpeed
The rate at which a drawer should be closed automatically (in pixels per
frame).
|
static int |
engagementPromptDelay
How long can the application be inactive until the first engagement
prompt is displayed (in milliseconds).
|
static int |
engagementPromptRepeatDelay
How long can the application be inactive until the following engagement
prompt is displayed (in milliseconds).
|
static int |
fileBrowserColumns
The number of columns of items in a file browser dialog.
|
static int |
fileBrowserRows
The number of rows of items in a file browser dialog.
|
static java.lang.String |
guiFile
Location of the default GUI layout file.
|
static int |
height
Height of the application.
|
static java.util.Locale |
locale
Locale of the application, used to select an appropriate resource bundle.
|
static int |
paintPromptDelay
Delay until the setup prompt for the paint drawer is displayed (in
milliseconds).
|
static int |
promptTTL
How long should a prompt remain on the screen (in milliseconds).
|
static int |
resetDelay
How long should the reset prompt wait until resetting the application
automatically (in milliseconds).
|
static int |
resetPromptDelay
How long can the application be inactive until the reset prompt is
displayed (in milliseconds).
|
static int |
rotatingContainerOffsetAngle
The angle between neighbouring items in a rotating container.
|
static int |
rotatingContainerOffsetDistance
The distance between circles of items in a rotating container.
|
static java.lang.String |
saveFolder
Location of the save file folder.
|
static boolean |
showDebugInfo
Flag indicating whether or not the debug information should be displayed
on the screen.
|
static boolean |
showPrintDialog
Flag indicating whether or not a dialog should be displayed when
attempting to print a painting.
|
static float |
targetFPS
Target number of frames per second.
|
static java.lang.String |
touchSourse
Source of the touch events.
|
static boolean |
TTSEnabled
Flag indicating whether or not the Text-To-Speech system should be
enabled.
|
static float |
TTSSpeechRate
The rate of speech of the TTS system.
|
static java.lang.String |
TTSVoice
The TTS voice to use.
|
static int |
width
Width of the application.
|
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
static void |
unmarshallSettings(java.lang.String filename)
Retrieve the settings from the provided XML file.
|
public static java.util.Locale locale
public static int width
public static int height
public static float targetFPS
public static java.lang.String touchSourse
public static boolean showPrintDialog
public static java.lang.String dataFolder
public static java.lang.String saveFolder
public static java.lang.String colouringFolder
public static java.lang.String guiFile
public static java.lang.String defaultLayoutFile
public static boolean TTSEnabled
public static java.lang.String TTSVoice
public static float TTSSpeechRate
public static java.lang.String chimeFile
public static int drawerAutoClosingSpeed
public static int rotatingContainerOffsetAngle
public static int rotatingContainerOffsetDistance
public static int fileBrowserColumns
public static int fileBrowserRows
public static boolean showDebugInfo
public static int promptTTL
public static int brushPromptDelay
public static int paintPromptDelay
public static int engagementPromptDelay
public static int engagementPromptRepeatDelay
public static int resetPromptDelay
public static int resetDelay
public static void unmarshallSettings(java.lang.String filename) throws javax.xml.transform.TransformerFactoryConfigurationError, javax.xml.transform.TransformerException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException
filename
- valid path to the XML file with the settings.javax.xml.transform.TransformerFactoryConfigurationError
javax.xml.transform.TransformerException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException