JSampler
v0.8a

org.jsampler
Class Prefs

java.lang.Object
  extended by org.jsampler.Prefs

public class Prefs
extends java.lang.Object

This class represents the preferences of the JSampler package.


Constructor Summary
Prefs()
           
 
Method Summary
static java.lang.String getInterfaceCountry()
          Gets the interface country.
static java.lang.String getInterfaceFont()
          Gets the interface font.
static java.lang.String getInterfaceLanguage()
          Gets the interface language.
static java.lang.String getJSamplerHome()
          Gets the absolute path of JSampler home directory.
static java.lang.String getLSAddress()
          Gets the LinuxSampler address.
static int getLSPort()
          Gets the LinuxSampler port.
static java.lang.String getView()
          Gets the name of the current View.
static boolean setInterfaceCountry(java.lang.String country)
          Sets the interface country.
static boolean setInterfaceFont(java.lang.String font)
          Sets the interface font.
static boolean setInterfaceLanguage(java.lang.String language)
          Sets the interface language.
static boolean setJSamplerHome(java.lang.String home)
          Sets the JSampler home directory.
static void setLSAddress(java.lang.String address)
          Sets the LinuxSampler address.
static void setLSPort(int port)
          Sets the LinuxSampler port number.
static void setView(java.lang.String view)
          Sets the current View of JSampler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prefs

public Prefs()
Method Detail

getView

public static java.lang.String getView()
Gets the name of the current View.

Returns:
the name of the current View.

setView

public static void setView(java.lang.String view)
Sets the current View of JSampler.

Parameters:
view - the name of the new View.

getInterfaceLanguage

public static java.lang.String getInterfaceLanguage()
Gets the interface language.

Returns:
The interface language.

setInterfaceLanguage

public static boolean setInterfaceLanguage(java.lang.String language)
Sets the interface language.

Returns:
true if the interface language has changed and false otherwise.

getInterfaceCountry

public static java.lang.String getInterfaceCountry()
Gets the interface country.

Returns:
The interface country.

setInterfaceCountry

public static boolean setInterfaceCountry(java.lang.String country)
Sets the interface country.

Returns:
true if the interface country has changed and false otherwise.

getInterfaceFont

public static java.lang.String getInterfaceFont()
Gets the interface font.

Returns:
The interface font.

setInterfaceFont

public static boolean setInterfaceFont(java.lang.String font)
Sets the interface font.

Returns:
true if the interface font has changed and false otherwise.

getJSamplerHome

public static java.lang.String getJSamplerHome()
Gets the absolute path of JSampler home directory.

Returns:
The absolute path of JSampler home directory or null if the JSampler home directory is not set.

setJSamplerHome

public static boolean setJSamplerHome(java.lang.String home)
Sets the JSampler home directory.

Parameters:
home - The absolute path of JSampler home directory.
Returns:
true if the JSampler home directory has been changed and false otherwise.

getLSAddress

public static java.lang.String getLSAddress()
Gets the LinuxSampler address.

Returns:
The LinuxSampler address.

setLSAddress

public static void setLSAddress(java.lang.String address)
Sets the LinuxSampler address.

Parameters:
address - The LinuxSampler address.

getLSPort

public static int getLSPort()
Gets the LinuxSampler port.

Returns:
The LinuxSampler port number.

setLSPort

public static void setLSPort(int port)
Sets the LinuxSampler port number. This method das not check the validity of the port number.

Parameters:
port - the port number. Use -1 to reset to default value.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.