|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.CC
public class CC
This class serves as a 'Control Center' of the application. It also provides some fundamental routines and access to most used objects.
| Method Summary | |
|---|---|
static void |
addReconnectListener(java.awt.event.ActionListener l)
Registers the specified listener to be notified when reconnecting to LinuxSampler. |
static void |
changeJSamplerHome(java.lang.String path)
Changes the JSampler's home directory and moves all files from the old JSampler's home directory to the new one. |
static void |
checkJSamplerHome()
Checks whether the JSampler home directory is specified and exist. |
static void |
cleanExit()
The exit point of the application which ensures clean exit with default exit status 0. |
static void |
cleanExit(int i)
The exit point of the application which ensures clean exit. |
static java.lang.String |
exportInstrMapsToLscpScript()
|
static java.lang.String |
exportSessionToLscpScript()
|
static Client |
getClient()
Gets the Client object that is used to communicate with the backend. |
static InstrumentsDbTreeModel |
getInstrumentsDbTreeModel()
Gets the tree model of the instruments database. |
static java.lang.String |
getJSamplerHome()
Gets the absolute path to the JSampler's home location. |
static java.util.logging.Logger |
getLogger()
Returns the logger to be used for logging events. |
static JSMainFrame |
getMainFrame()
Returns the main window of this application. |
static OrchestraListModel |
getOrchestras()
Returns a list containing all available orchestras. |
static JSProgress |
getProgressIndicator()
Gets the progress indicator of this application. |
static SamplerModel |
getSamplerModel()
Gets the sampler model. |
static TaskQueue |
getTaskQueue()
Returns the task queue to be used for scheduling tasks for execution out of the event-dispatching thread. |
static JSViewConfig |
getViewConfig()
Gets the configuration of the current view. |
protected static void |
initJSampler()
This method does the initial preparation of the application. |
static void |
initSamplerModel()
This method updates the information about the backend state. |
static void |
loadOrchestras()
Loads the orchestras described in <jsampler_home>/orchestras.xml. |
static void |
reconnect()
Reconnects to LinuxSampler. |
static void |
removeReconnectListener(java.awt.event.ActionListener l)
Removes the specified listener. |
static void |
scheduleTask(Task t)
Adds the specified task to the task queue. |
static void |
setJSamplerHome(java.lang.String path)
Sets the location of the JSampler's home. |
static void |
setMainFrame(JSMainFrame mainFrame)
Sets the main window of this application. |
static void |
setProgressIndicator(JSProgress progress)
Sets the progress indicator to be used by this application. |
static void |
setViewConfig(JSViewConfig viewConfig)
Sets the configuration of the current view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.logging.Logger getLogger()
public static TaskQueue getTaskQueue()
public static void scheduleTask(Task t)
public static JSViewConfig getViewConfig()
public static void setViewConfig(JSViewConfig viewConfig)
public static JSMainFrame getMainFrame()
public static void setMainFrame(JSMainFrame mainFrame)
mainFrame - The main window of this application.public static JSProgress getProgressIndicator()
public static void setProgressIndicator(JSProgress progress)
progress - The progress indicator to be used by this application.public static java.lang.String getJSamplerHome()
null if the JSampler's home location is not specified yet.public static void setJSamplerHome(java.lang.String path)
path - The new absolute path to the JSampler's home location.protected static void initJSampler()
public static void checkJSamplerHome()
JSMainFrame.installJSamplerHome()public static void changeJSamplerHome(java.lang.String path)
path - The location of the new JSampler's home directory. If
the last directory in the path doesn't exist, it is created.public static OrchestraListModel getOrchestras()
public static InstrumentsDbTreeModel getInstrumentsDbTreeModel()
null if the backend doesn't have instruments database support.JSViewConfig.getInstrumentsDbSupport()public static void loadOrchestras()
<jsampler_home>/orchestras.xml.
If file with name orchestras.xml.bkp exist in the JSampler's home
directory, this means that the last save has failed. In that case a recovery file
orchestras.xml.rec is created and a recovery procedure
will be initiated.
public static void cleanExit()
cleanExit(int i)public static void cleanExit(int i)
i - The exit status.public static Client getClient()
Client object that is used to communicate with the backend.
Client object that is used to communicate with the backend.public static void addReconnectListener(java.awt.event.ActionListener l)
l - The ActionListener to register.public static void removeReconnectListener(java.awt.event.ActionListener l)
l - The ActionListener to remove.public static SamplerModel getSamplerModel()
public static void reconnect()
public static void initSamplerModel()
public static java.lang.String exportInstrMapsToLscpScript()
public static java.lang.String exportSessionToLscpScript()
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||