Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fluidsynth.api
Class Configuration  view Configuration download Configuration.java

java.lang.Object
  extended byorg.fluidsynth.api.Configuration

public class Configuration
extends java.lang.Object

An object representing a user configuration of the synth.


Field Summary
(package private)  java.util.Map channels
           
private  boolean dirty
           
private  java.io.File file
           
private  org.fluidsynth.api.settings.Settings settings
           
private  boolean settingsMerged
           
(package private)  java.util.Map soundFonts
           
 
Constructor Summary
Configuration()
          No-arg constructor is required in order to be persisted to XML via Castor.
Configuration(org.fluidsynth.api.settings.Settings settings)
          Construct a Configuration with the given settings.
 
Method Summary
 void clearDirty()
          Clear the dirty flag.
 void dirty()
          Sets the dirty flag.
 org.fluidsynth.api.sf2.Channel[] getChannel()
           
 java.io.File getFile()
          Get the file that this Configuration object is persisted in.
 Configuration getModifiedConfiguration()
          Get a version of this configuration suitable for persistence to disk.
 java.lang.String getName()
          Get the display name of this configuration.
 org.fluidsynth.api.settings.Settings getSettings()
          Get the settings associated with this configuration.
 boolean getSettingsMerged()
           
 org.fluidsynth.api.sf2.SoundFont[] getSoundFont()
           
 void insertChannel(org.fluidsynth.api.sf2.Channel channel)
           
 void insertSoundFont(org.fluidsynth.api.sf2.SoundFont soundFont)
           
 boolean isDirty()
          Gets the dirty flag.
 org.fluidsynth.api.sf2.Channel lookupChannel(int channel)
           
 org.fluidsynth.api.sf2.SoundFont lookupSoundFont(int id)
           
 org.fluidsynth.api.sf2.SoundFont lookupSoundFont(java.lang.String path)
           
 void setChannel(org.fluidsynth.api.sf2.Channel[] channels)
           
 void setFile(java.io.File f)
          Set the file that this Configuration object is persisted in.
 void setSettings(org.fluidsynth.api.settings.Settings settings)
          Set the settings associated with this configuration.
(package private)  void setSettingsMerged(boolean merged)
           
 void setSoundFont(org.fluidsynth.api.sf2.SoundFont[] sf2s)
           
 void unloadSoundFont(org.fluidsynth.api.sf2.SoundFont soundFont)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

private org.fluidsynth.api.settings.Settings settings

dirty

private boolean dirty

file

private java.io.File file

settingsMerged

private boolean settingsMerged

soundFonts

java.util.Map soundFonts

channels

java.util.Map channels
Constructor Detail

Configuration

public Configuration()
No-arg constructor is required in order to be persisted to XML via Castor.


Configuration

public Configuration(org.fluidsynth.api.settings.Settings settings)
Construct a Configuration with the given settings.

Method Detail

setFile

public void setFile(java.io.File f)
Set the file that this Configuration object is persisted in.


getFile

public java.io.File getFile()
Get the file that this Configuration object is persisted in.


getName

public java.lang.String getName()
Get the display name of this configuration.


getSettings

public org.fluidsynth.api.settings.Settings getSettings()
Get the settings associated with this configuration.


setSettings

public void setSettings(org.fluidsynth.api.settings.Settings settings)
Set the settings associated with this configuration.


getModifiedConfiguration

public Configuration getModifiedConfiguration()
Get a version of this configuration suitable for persistence to disk.


dirty

public void dirty()
Sets the dirty flag. Dirty configuration are in need of being saved to disk.


clearDirty

public void clearDirty()
Clear the dirty flag.


isDirty

public boolean isDirty()
Gets the dirty flag. Dirty configuration are in need of being saved to disk.


getSettingsMerged

public boolean getSettingsMerged()

setSettingsMerged

void setSettingsMerged(boolean merged)

insertSoundFont

public void insertSoundFont(org.fluidsynth.api.sf2.SoundFont soundFont)

unloadSoundFont

public void unloadSoundFont(org.fluidsynth.api.sf2.SoundFont soundFont)

lookupSoundFont

public org.fluidsynth.api.sf2.SoundFont lookupSoundFont(java.lang.String path)

lookupSoundFont

public org.fluidsynth.api.sf2.SoundFont lookupSoundFont(int id)

setSoundFont

public void setSoundFont(org.fluidsynth.api.sf2.SoundFont[] sf2s)

getSoundFont

public org.fluidsynth.api.sf2.SoundFont[] getSoundFont()

insertChannel

public void insertChannel(org.fluidsynth.api.sf2.Channel channel)

lookupChannel

public org.fluidsynth.api.sf2.Channel lookupChannel(int channel)

setChannel

public void setChannel(org.fluidsynth.api.sf2.Channel[] channels)

getChannel

public org.fluidsynth.api.sf2.Channel[] getChannel()