openpiano.settings
Class MidiTrackSettings

java.lang.Object
  extended by openpiano.settings.MidiTrackSettings

public class MidiTrackSettings
extends Object

Detailed settings for a single track of a MIDI file

Version:
1.0, 07/30/08
Author:
Sascha Westermann

Constructor Summary
MidiTrackSettings(String trackName)
          Constructs a new track setting
MidiTrackSettings(String trackName, int instrument, int volume, Boolean audio, Boolean visual)
          Constructs a new track setting
 
Method Summary
 int getColor()
          Returns the color of the track
 int getInstrument()
          Return the instrument used for the track
 String getTrackName()
          Returns the name of the track
 int getVolume()
          Returns the volume of the track
 Boolean isAudioOn()
          Returns true if audio function is selected
 Boolean isVisualOn()
          Returns true if visual function is selected
 void setAudioOn(Boolean audio)
          Sets the status of the audio function
 void setColor(int color)
          Sets the color of the track
 void setInstrument(int instrument)
          Sets the instrument used for the track
 void setTrackName(String trackName)
          Sets the name of the track
 void setVisualOn(Boolean visual)
          Sets the status of the visual function
 void setVolume(int volume)
          Sets the volume of the track
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiTrackSettings

public MidiTrackSettings(String trackName)
Constructs a new track setting

Parameters:
trackName - the name of the track

MidiTrackSettings

public MidiTrackSettings(String trackName,
                         int instrument,
                         int volume,
                         Boolean audio,
                         Boolean visual)
Constructs a new track setting

Parameters:
trackName - the name of the track
instrument - the instrument used for the track
volume - the volume of the track
audio - true if audio should be played
visual - true if track should be showed
Method Detail

getColor

public int getColor()
Returns the color of the track

Returns:
the color of the track

getTrackName

public String getTrackName()
Returns the name of the track

Returns:
the name of the track

getInstrument

public int getInstrument()
Return the instrument used for the track

Returns:
the instrument used for the track

getVolume

public int getVolume()
Returns the volume of the track

Returns:
the volume of the track

isAudioOn

public Boolean isAudioOn()
Returns true if audio function is selected

Returns:
true if audio function is selected

isVisualOn

public Boolean isVisualOn()
Returns true if visual function is selected

Returns:
true if visual function is selected

setColor

public void setColor(int color)
Sets the color of the track

Parameters:
color - the color of the track

setTrackName

public void setTrackName(String trackName)
Sets the name of the track

Parameters:
trackName - the name of the track

setInstrument

public void setInstrument(int instrument)
Sets the instrument used for the track

Parameters:
instrument - the instrument used for the track

setVolume

public void setVolume(int volume)
Sets the volume of the track

Parameters:
volume - the volume of the track

setAudioOn

public void setAudioOn(Boolean audio)
Sets the status of the audio function

Parameters:
audio - true if audio should be played

setVisualOn

public void setVisualOn(Boolean visual)
Sets the status of the visual function

Parameters:
visual - true if track should be showed