public class InfoView
extends javax.swing.JDialog
This class defines the GUI view for the information about the current state of the program instance. It contains the following types of information:
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
private javax.swing.JTextField |
addKeyBindingFld |
private MidicaTree |
bankChannelTree |
private MidicaTree |
bankTotalTree |
private static int |
COL_WIDTH_DRUMKIT_NAME |
private static int |
COL_WIDTH_DRUMKIT_NUM |
private static int |
COL_WIDTH_INSTR_NAME |
private static int |
COL_WIDTH_INSTR_NUM |
private static int |
COL_WIDTH_MSG_CHANNEL |
private static int |
COL_WIDTH_MSG_LENGTH |
private static int |
COL_WIDTH_MSG_STATUS |
private static int |
COL_WIDTH_MSG_SUMMARY |
private static int |
COL_WIDTH_MSG_TICK |
private static int |
COL_WIDTH_MSG_TRACK |
private static int |
COL_WIDTH_MSG_TYPE |
private static int |
COL_WIDTH_NOTE_ALT |
private static int |
COL_WIDTH_NOTE_NAME |
private static int |
COL_WIDTH_NOTE_NUM |
private static int |
COL_WIDTH_PERC_ID_LONG |
private static int |
COL_WIDTH_PERC_ID_SHORT |
private static int |
COL_WIDTH_PERC_NUM |
private static int |
COL_WIDTH_SB_INSTR_BANK |
private static int |
COL_WIDTH_SB_INSTR_CHANNELS |
private static int |
COL_WIDTH_SB_INSTR_KEYS |
private static int |
COL_WIDTH_SB_INSTR_NAME |
private static int |
COL_WIDTH_SB_INSTR_PROGRAM |
private static int |
COL_WIDTH_SB_RES_CLASS |
private static int |
COL_WIDTH_SB_RES_FORMAT |
private static int |
COL_WIDTH_SB_RES_FRAMES |
private static int |
COL_WIDTH_SB_RES_INDEX |
private static int |
COL_WIDTH_SB_RES_NAME |
private static int |
COL_WIDTH_SB_RES_TYPE |
private static int |
COL_WIDTH_SYNTAX_DESC |
private static int |
COL_WIDTH_SYNTAX_KEYWORD |
private static int |
COL_WIDTH_SYNTAX_NAME |
private static int |
COLLAPSE_EXPAND_HEIGHT |
private static int |
COLLAPSE_EXPAND_WIDTH |
private static java.awt.Dimension |
collapseExpandDim |
private static int |
collapseExpandHeadlineHeight |
private javax.swing.JTabbedPane |
content |
private javax.swing.JTabbedPane |
contentConfig |
private javax.swing.JSplitPane |
contentKeybindings |
private javax.swing.JTabbedPane |
contentMidi |
private javax.swing.JTabbedPane |
contentSoundbank |
private InfoController |
controller |
private static int |
CPL_ABOUT |
private static int |
CPL_KEYBINDING_DESC |
private static int |
CPL_MIDI_INFO |
private static int |
CPL_MSG_DETAILS |
private static int |
CPL_SOUNDBANK_INFO |
private static java.awt.Dimension |
drumkitTableDim |
private java.util.ArrayList<MidicaButton> |
expandCollapseButtons |
static java.lang.String |
FILTER_BTN_SHOW_TREE |
private static int |
FILTER_BUTTON_HEIGHT |
static java.lang.String |
FILTER_CBX_AUTO_SHOW |
static java.lang.String |
FILTER_CBX_CHAN_DEP |
static java.lang.String |
FILTER_CBX_CHAN_INDEP |
static java.lang.String |
FILTER_CBX_CHAN_PREFIX |
static java.lang.String |
FILTER_CBX_LIMIT_TICKS |
static java.lang.String |
FILTER_CBX_LIMIT_TRACKS |
static java.lang.String |
FILTER_CBX_NODE |
static java.lang.String |
FILTER_ICON |
static java.lang.String |
FILTER_LBL_TOTAL |
static java.lang.String |
FILTER_LBL_VISIBLE |
static java.lang.String |
FILTER_TXT_FROM_TICKS |
static java.lang.String |
FILTER_TXT_TO_TICKS |
static java.lang.String |
FILTER_TXT_TRACKS |
private java.util.HashMap<java.lang.String,javax.swing.JComponent> |
filterWidgets |
private static InfoView |
infoView |
private static java.awt.Dimension |
instrTableDim |
private static int |
KEYBINDING_TREE_PREF_HEIGHT |
private static int |
KEYBINDING_TREE_PREF_WIDTH |
private MidicaButton |
keybindingAddBtn |
private javax.swing.JPanel |
keyBindingDetails |
private KeyBindingManager |
keyBindingManager |
private MidicaButton |
keybindingResetGlobBtn |
private javax.swing.JCheckBox |
keybindingResetGlobCbx |
private MidicaButton |
keybindingResetIdBtn |
private javax.swing.JCheckBox |
keybindingResetIdCbx |
private MidicaTree |
keyBindingTree |
private static java.awt.Dimension |
keyBindingTreeDim |
private javax.swing.JTextField |
keybindingTreeFilter |
private static java.lang.String |
logoPath |
private static int |
MAX_HEIGHT_KARAOKE_INFO |
private static int |
MAX_HEIGHT_LYRICS |
private static int |
MAX_HEIGHT_SOUNDBANK_DESC |
private static int |
MSG_DETAILS_PREF_HEIGHT |
private static int |
MSG_DETAILS_PREF_WIDTH |
private static int |
MSG_TABLE_PREF_HEIGHT |
private static int |
MSG_TREE_PREF_HEIGHT |
private static int |
MSG_TREE_PREF_WIDTH |
private javax.swing.JPanel |
msgDetails |
private static java.awt.Dimension |
msgDetailsDim |
private MidicaTable |
msgTable |
private static java.awt.Dimension |
msgTableDim |
private MidicaTree |
msgTree |
private static java.awt.Dimension |
msgTreeDim |
private static java.awt.Dimension |
noteTableDim |
private static java.awt.Dimension |
percTableDim |
private static int |
PWIDTH_ABOUT |
private static int |
PWIDTH_GENERAL_INFO_VALUE |
private static int |
PWIDTH_KEYBINDING_DESC |
private static int |
PWIDTH_MSG_DETAIL_CONTENT |
private static java.awt.Dimension |
sbInstrTableDim |
private static java.awt.Dimension |
sbResourceTableDim |
private static long |
serialVersionUID |
private static java.awt.Dimension |
syntaxTableDim |
private static int |
TABLE_HEIGHT |
private java.util.HashMap<java.lang.String,javax.swing.JComponent> |
tableStringFilterIcons |
private static int |
TICK_RANGE_FILTER_WIDTH |
private static int |
TRACK_RANGE_FILTER_WIDTH |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Modifier | Constructor and Description |
---|---|
private |
InfoView(java.awt.Window owner)
Creates a new info view window and sets the given owner Dialog.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyBindings()
Adds key bindings to the info window.
|
void |
cleanKeyBindingDetails()
Removes all contents from the key binding details area.
|
void |
cleanMsgDetails()
Removes all contents from the message details area.
|
void |
close()
Closes and destroys the info window.
|
private java.awt.Container |
createAboutArea()
Creates the about area containing version, author and general information.
|
private java.awt.Container |
createBankInstrNoteArea()
Creates the area for banks, instruments and notes used by the loaded MIDI sequence.
|
private java.awt.Container |
createBankInstrNoteAreaHalf(boolean isTotal)
Creates the area for banks, instruments and notes used by the loaded MIDI sequence, either in total or per channel.
|
private java.awt.Container |
createConfigArea()
Creates the configuration tab.
|
private java.awt.Container |
createConfiguredBindingsArea(java.lang.String id)
Creates the area with all configured key bindings for a certain action.
|
private java.awt.Container |
createDrumkitArea()
Creates the drumkit area containing the translation table for drumkit IDs.
|
private java.awt.Container |
createInstrumentArea()
Creates the instrument area containing the translation table for instrument IDs.
|
private java.awt.Container |
createKaraokeArea()
Creates the area for karaoke and lyrics information from the loaded MIDI sequence.
|
private java.awt.Container |
createKaraokeGeneralArea(java.util.HashMap<java.lang.String,java.lang.Object> karaokeInfo)
Creates the area for general karaoke information inside of the karaoke and lyrics area.
|
private java.awt.Container |
createKaraokeLyricsArea(java.util.HashMap<java.lang.String,java.lang.Object> karaokeInfo)
Creates the area for lyrics inside of the karaoke and lyrics area.
|
private java.awt.Container |
createKaraokeSkArea(java.util.HashMap<java.lang.String,java.lang.Object> karaokeInfo)
Creates the area for SOFT KARAOKE inside of the karaoke and lyrics area.
|
private java.awt.Container |
createKeyBindingArea()
Creates the key binding area.
|
private java.awt.Container |
createKeyBindingForm()
Creates the form to add a new key binding.
|
private java.awt.Container |
createKeyBindingLeft()
Creates the left side of the key binding area, containing the key binding tree and the collapse/expand buttons.
|
private java.awt.Container |
createKeyBindingRight()
Creates the right side of the key binding area, where the selected key binding ID can be configured.
|
private java.awt.Container |
createMidiSequenceArea()
Creates the MIDI sequence tab.
|
private java.awt.Container |
createMidiSequenceInfoArea()
Creates the area for general MIDI sequence information.
|
private java.awt.Container |
createMsgArea()
Creates the MIDI message area for the message tree, details area and message table.
|
private java.awt.Container |
createMsgDetailsArea()
Creates the MIDI message details area.
|
private java.awt.Container |
createMsgFilterArea(long minTick,
long maxTick)
Creates the message filter area.
|
private java.awt.Container |
createMsgFilterChannelCheckboxes()
Creates the channel checkboxes for the message filter area.
|
private java.awt.Container |
createMsgFilterLine3()
Creates third line of the message filter area.
|
private java.awt.Container |
createMsgTableArea()
Creates the MIDI message table area.
|
private java.awt.Container |
createMsgTreeArea()
Creates the area for the message tree including the collapse-all / expand-all buttons.
|
private java.awt.Container |
createNoteArea()
Creates the note area containing the translation table for note names.
|
private java.awt.Container |
createPercussionArea()
Creates the percussion area containing the translation table for percussion shortcuts.
|
private java.awt.Container |
createSoundbankArea()
Creates the soundbank tab.
|
private java.awt.Container |
createSoundbankInfoArea()
Creates the area for general soundbank information.
|
private java.awt.Container |
createSoundbankInstrumentArea()
Creates the area for instruments and drumkits of the currently loaded soundbank.
|
private java.awt.Container |
createSoundbankResourceArea()
Creates the area for resources of the currently loaded soundbank.
|
private java.awt.Container |
createSyntaxArea()
Creates the syntax area containing the translation table for syntax keywords.
|
private java.awt.Container |
createTreeFilter()
Creates the area containing the key binding tree filter (label and text field).
|
private java.awt.Container |
createTreeHeadline(java.lang.String headline,
java.lang.String btnName)
Creates the headline area for a
MidicaTree , containing a translation and collapse-all / expand-all buttons. |
void |
fillKeyBindingDetails(java.lang.String id,
java.lang.String category)
Fills the details area for a key binding action.
|
void |
fillMsgDetails(IMessageType messageSource)
Fills the details area with the given content.
|
javax.swing.JTextField |
getKeybindingTreeFilter()
Returns the key binding tree filter text field.
|
java.util.HashMap<java.lang.String,javax.swing.JComponent> |
getMsgFilterWidgets()
Returns the widgets for the message filter.
|
MidicaTable |
getMsgTable()
Returns the message table.
|
MidicaTree |
getMsgTree()
Returns the message tree.
|
private void |
init()
Initializes the content of all the tabs inside the info view.
|
void |
resetResetWidgetsForSelectedKeyBindingAction()
Resets the checkbox and button to reset the key bindings on the right side.
|
static void |
showInfoWindow(java.awt.Window owner)
Creates and shows the info view passing the specified owner window to the constructor.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final long serialVersionUID
private static final int COL_WIDTH_NOTE_NUM
private static final int COL_WIDTH_NOTE_NAME
private static final int COL_WIDTH_NOTE_ALT
private static final int COL_WIDTH_PERC_NUM
private static final int COL_WIDTH_PERC_ID_SHORT
private static final int COL_WIDTH_PERC_ID_LONG
private static final int COL_WIDTH_SYNTAX_NAME
private static final int COL_WIDTH_SYNTAX_DESC
private static final int COL_WIDTH_SYNTAX_KEYWORD
private static final int COL_WIDTH_INSTR_NUM
private static final int COL_WIDTH_INSTR_NAME
private static final int COL_WIDTH_DRUMKIT_NUM
private static final int COL_WIDTH_DRUMKIT_NAME
private static final int COL_WIDTH_SB_INSTR_PROGRAM
private static final int COL_WIDTH_SB_INSTR_BANK
private static final int COL_WIDTH_SB_INSTR_NAME
private static final int COL_WIDTH_SB_INSTR_CHANNELS
private static final int COL_WIDTH_SB_INSTR_KEYS
private static final int COL_WIDTH_SB_RES_INDEX
private static final int COL_WIDTH_SB_RES_TYPE
private static final int COL_WIDTH_SB_RES_NAME
private static final int COL_WIDTH_SB_RES_FRAMES
private static final int COL_WIDTH_SB_RES_FORMAT
private static final int COL_WIDTH_SB_RES_CLASS
private static final int COL_WIDTH_MSG_TICK
private static final int COL_WIDTH_MSG_STATUS
private static final int COL_WIDTH_MSG_TRACK
private static final int COL_WIDTH_MSG_CHANNEL
private static final int COL_WIDTH_MSG_LENGTH
private static final int COL_WIDTH_MSG_SUMMARY
private static final int COL_WIDTH_MSG_TYPE
private static final int TABLE_HEIGHT
private static final int MSG_TABLE_PREF_HEIGHT
private static final int COLLAPSE_EXPAND_WIDTH
private static final int COLLAPSE_EXPAND_HEIGHT
private static final int TICK_RANGE_FILTER_WIDTH
private static final int TRACK_RANGE_FILTER_WIDTH
private static final int FILTER_BUTTON_HEIGHT
private static final int MSG_TREE_PREF_WIDTH
private static final int MSG_TREE_PREF_HEIGHT
private static final int MSG_DETAILS_PREF_WIDTH
private static final int MSG_DETAILS_PREF_HEIGHT
private static final int KEYBINDING_TREE_PREF_WIDTH
private static final int KEYBINDING_TREE_PREF_HEIGHT
private static final int MAX_HEIGHT_LYRICS
private static final int CPL_MIDI_INFO
private static final int CPL_SOUNDBANK_INFO
private static final int CPL_MSG_DETAILS
private static final int CPL_ABOUT
private static final int CPL_KEYBINDING_DESC
private static final int PWIDTH_GENERAL_INFO_VALUE
private static final int PWIDTH_MSG_DETAIL_CONTENT
private static final int PWIDTH_ABOUT
private static final int PWIDTH_KEYBINDING_DESC
private static final int MAX_HEIGHT_SOUNDBANK_DESC
private static final int MAX_HEIGHT_KARAOKE_INFO
public static final java.lang.String FILTER_CBX_CHAN_INDEP
public static final java.lang.String FILTER_CBX_CHAN_DEP
public static final java.lang.String FILTER_CBX_CHAN_PREFIX
public static final java.lang.String FILTER_CBX_NODE
public static final java.lang.String FILTER_CBX_LIMIT_TICKS
public static final java.lang.String FILTER_CBX_LIMIT_TRACKS
public static final java.lang.String FILTER_CBX_AUTO_SHOW
public static final java.lang.String FILTER_TXT_FROM_TICKS
public static final java.lang.String FILTER_TXT_TO_TICKS
public static final java.lang.String FILTER_TXT_TRACKS
public static final java.lang.String FILTER_BTN_SHOW_TREE
public static final java.lang.String FILTER_LBL_VISIBLE
public static final java.lang.String FILTER_LBL_TOTAL
public static final java.lang.String FILTER_ICON
private static java.awt.Dimension noteTableDim
private static java.awt.Dimension percTableDim
private static java.awt.Dimension syntaxTableDim
private static java.awt.Dimension instrTableDim
private static java.awt.Dimension drumkitTableDim
private static java.awt.Dimension sbInstrTableDim
private static java.awt.Dimension sbResourceTableDim
private static java.awt.Dimension msgTreeDim
private static java.awt.Dimension keyBindingTreeDim
private static java.awt.Dimension msgDetailsDim
private static java.awt.Dimension msgTableDim
private static java.awt.Dimension collapseExpandDim
private static int collapseExpandHeadlineHeight
private static InfoView infoView
private InfoController controller
private KeyBindingManager keyBindingManager
private javax.swing.JTabbedPane content
private javax.swing.JTabbedPane contentConfig
private javax.swing.JTabbedPane contentSoundbank
private javax.swing.JTabbedPane contentMidi
private javax.swing.JSplitPane contentKeybindings
private MidicaTree bankTotalTree
private MidicaTree bankChannelTree
private MidicaTree keyBindingTree
private javax.swing.JTextField keybindingTreeFilter
private MidicaButton keybindingAddBtn
private javax.swing.JCheckBox keybindingResetIdCbx
private javax.swing.JCheckBox keybindingResetGlobCbx
private MidicaButton keybindingResetIdBtn
private MidicaButton keybindingResetGlobBtn
private MidicaTree msgTree
private javax.swing.JPanel msgDetails
private javax.swing.JPanel keyBindingDetails
private MidicaTable msgTable
private java.util.HashMap<java.lang.String,javax.swing.JComponent> filterWidgets
private javax.swing.JTextField addKeyBindingFld
private java.util.ArrayList<MidicaButton> expandCollapseButtons
private java.util.HashMap<java.lang.String,javax.swing.JComponent> tableStringFilterIcons
private static final java.lang.String logoPath
private InfoView(java.awt.Window owner)
Creates a new info view window and sets the given owner Dialog.
owner
- window to be set as the info view’s ownerprivate void init()
Initializes the content of all the tabs inside the info view.
private java.awt.Container createConfigArea()
Creates the configuration tab. This contains the following sub tabs:
private java.awt.Container createSoundbankArea()
Creates the soundbank tab. This contains the following sub tabs:
private java.awt.Container createMidiSequenceArea()
Creates the MIDI sequence tab. This contains the following sub tabs:
private java.awt.Container createKeyBindingArea()
Creates the key binding area.
private java.awt.Container createNoteArea()
Creates the note area containing the translation table for note names. The table translates between MIDI note values and their configured names.
private java.awt.Container createPercussionArea()
Creates the percussion area containing the translation table for percussion shortcuts. The table translates between MIDI note values for the percussion channel and their configured shortcuts.
private java.awt.Container createSyntaxArea()
Creates the syntax area containing the translation table for syntax keywords.
private java.awt.Container createInstrumentArea()
Creates the instrument area containing the translation table for instrument IDs. The table translates between MIDI program numbers and their configured instrument names.
private java.awt.Container createDrumkitArea()
Creates the drumkit area containing the translation table for drumkit IDs. The table translates between MIDI program numbers and their configured drumkit names.
private java.awt.Container createSoundbankInfoArea()
Creates the area for general soundbank information.
private java.awt.Container createMidiSequenceInfoArea()
Creates the area for general MIDI sequence information.
private java.awt.Container createKaraokeArea()
Creates the area for karaoke and lyrics information from the loaded MIDI sequence.
private java.awt.Container createKaraokeGeneralArea(java.util.HashMap<java.lang.String,java.lang.Object> karaokeInfo)
Creates the area for general karaoke information inside of the karaoke and lyrics area.
karaokeInfo
- karaoke information, extracted from the MIDI sequenceprivate java.awt.Container createKaraokeSkArea(java.util.HashMap<java.lang.String,java.lang.Object> karaokeInfo)
Creates the area for SOFT KARAOKE inside of the karaoke and lyrics area.
karaokeInfo
- karaoke information, extracted from the MIDI sequenceprivate java.awt.Container createKaraokeLyricsArea(java.util.HashMap<java.lang.String,java.lang.Object> karaokeInfo)
Creates the area for lyrics inside of the karaoke and lyrics area.
karaokeInfo
- karaoke information, extracted from the MIDI sequenceprivate java.awt.Container createBankInstrNoteArea()
Creates the area for banks, instruments and notes used by the loaded MIDI sequence.
private java.awt.Container createBankInstrNoteAreaHalf(boolean isTotal)
Creates the area for banks, instruments and notes used by the loaded MIDI sequence, either in total or per channel.
isTotal
- true for creating the total usage tree area. false for the per channel area.private java.awt.Container createKeyBindingLeft()
Creates the left side of the key binding area, containing the key binding tree and the collapse/expand buttons.
private java.awt.Container createTreeFilter()
Creates the area containing the key binding tree filter (label and text field).
public javax.swing.JTextField getKeybindingTreeFilter()
Returns the key binding tree filter text field.
private java.awt.Container createKeyBindingRight()
Creates the right side of the key binding area, where the selected key binding ID can be configured.
private java.awt.Container createTreeHeadline(java.lang.String headline, java.lang.String btnName)
Creates the headline area for a MidicaTree
, containing a translation and collapse-all / expand-all buttons.
headline
- Text to be displayed above the tree.btnName
- Name for the buttons.private java.awt.Container createMsgArea()
Creates the MIDI message area for the message tree, details area and message table.
private java.awt.Container createMsgTreeArea()
Creates the area for the message tree including the collapse-all / expand-all buttons.
private java.awt.Container createMsgDetailsArea()
Creates the MIDI message details area.
private java.awt.Container createMsgTableArea()
Creates the MIDI message table area.
private java.awt.Container createMsgFilterArea(long minTick, long maxTick)
Creates the message filter area.
The given parameters are used to prefill the tick fields.
minTick
- Lowest tick from the sequence or 0 if no sequence is loaded.maxTick
- Highest tick from the sequence or 0 if no sequence is loaded.private java.awt.Container createMsgFilterChannelCheckboxes()
Creates the channel checkboxes for the message filter area.
private java.awt.Container createMsgFilterLine3()
Creates third line of the message filter area.
This line contains the show-in-tree button, the auto-show checkbox and the counts of visible and total messages.
private java.awt.Container createSoundbankInstrumentArea()
Creates the area for instruments and drumkits of the currently loaded soundbank.
private java.awt.Container createSoundbankResourceArea()
Creates the area for resources of the currently loaded soundbank.
private java.awt.Container createAboutArea()
Creates the about area containing version, author and general information.
public java.util.HashMap<java.lang.String,javax.swing.JComponent> getMsgFilterWidgets()
Returns the widgets for the message filter.
public MidicaTable getMsgTable()
Returns the message table.
public MidicaTree getMsgTree()
Returns the message tree.
public static void showInfoWindow(java.awt.Window owner)
Creates and shows the info view passing the specified owner window to the constructor.
If an info view already exists it will be destroyed before. This is done in order to make sure that the newly created info view:
owner
- The GUI window owning the info window.public void cleanMsgDetails()
Removes all contents from the message details area.
public void cleanKeyBindingDetails()
Removes all contents from the key binding details area.
public void fillMsgDetails(IMessageType messageSource)
Fills the details area with the given content. Before calling this method, cleanMsgDetails()
should be called first.
Adjusts the background color according to the click source (message table or message tree)
messageSource
- The selected leaf node or table row object.public void fillKeyBindingDetails(java.lang.String id, java.lang.String category)
Fills the details area for a key binding action. This area contains:
id
- the ID of the key binding actioncategory
- the category description (the window containing the action)public void resetResetWidgetsForSelectedKeyBindingAction()
Resets the checkbox and button to reset the key bindings on the right side.
private java.awt.Container createKeyBindingForm()
Creates the form to add a new key binding.
private java.awt.Container createConfiguredBindingsArea(java.lang.String id)
Creates the area with all configured key bindings for a certain action. Each key binding consists of a description of the key combination and a button to delete this key binding.
id
- the ID of the key binding actionpublic void close()
Closes and destroys the info window.
public void addKeyBindings()
Adds key bindings to the info window.