|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
openpiano.midi.MidiLoaderGUI
public class MidiLoaderGUI
The MidiLoaderGUI class creates a graphical frontend for the MidiLoader
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MidiLoaderGUI(Controller controller,
OpenPiano openPiano,
SlidePanel slidePanel,
Settings settings)
Constructs a new fronted for the MidiLoader |
|
| Method Summary | |
|---|---|
int |
getColor(int track)
Returns the a reasonable color for notes |
int |
getMidiChannel(int track)
Returns the corresponding MIDI channel of a track |
Boolean |
isAwaitNotesChecked()
Returns true if the await notes function is enabled |
void |
resetSettings()
Resets the settings of a MIDI file |
void |
setInstrument(int channel,
int instrument)
Sets the instrument of a channel |
void |
setKeyboardToTrack(int track)
Sets the track the MIDI keyboard plays |
void |
setVolume(int channel,
int volume)
Sets the volume of a channel |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MidiLoaderGUI(Controller controller,
OpenPiano openPiano,
SlidePanel slidePanel,
Settings settings)
controller - the main controller of the applicationopenPiano - the reference to the application windowslidePanel - the panel containing the position slider| Method Detail |
|---|
public int getColor(int track)
the - track to use the color for
public void setKeyboardToTrack(int track)
track - the track the MIDI keyboard playspublic int getMidiChannel(int track)
track - the track
public void setInstrument(int channel,
int instrument)
channel - the channelinstrument - the instrument for the channel
public void setVolume(int channel,
int volume)
channel - the channelvolume - the volume for the channelpublic void resetSettings()
public Boolean isAwaitNotesChecked()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||