|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenpiano.settings.MidiTrackSettings
public class MidiTrackSettings
Detailed settings for a single track of a MIDI file
| 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 |
|---|
public MidiTrackSettings(String trackName)
trackName - the name of the track
public MidiTrackSettings(String trackName,
int instrument,
int volume,
Boolean audio,
Boolean visual)
trackName - the name of the trackinstrument - the instrument used for the trackvolume - the volume of the trackaudio - true if audio should be playedvisual - true if track should be showed| Method Detail |
|---|
public int getColor()
public String getTrackName()
public int getInstrument()
public int getVolume()
public Boolean isAudioOn()
public Boolean isVisualOn()
public void setColor(int color)
color - the color of the trackpublic void setTrackName(String trackName)
trackName - the name of the trackpublic void setInstrument(int instrument)
instrument - the instrument used for the trackpublic void setVolume(int volume)
volume - the volume of the trackpublic void setAudioOn(Boolean audio)
audio - true if audio should be playedpublic void setVisualOn(Boolean visual)
visual - true if track should be showed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||