com.meapsoft.gui
Class MEAPsoftGUIPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.meapsoft.gui.MEAPsoftGUIPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable
Direct Known Subclasses:
ComposerPanel, FeatExtractorPanel, PreferencesPanel, SegmenterPanel, SynthesizerPanel

public abstract class MEAPsoftGUIPanel
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.awt.event.MouseListener

Abstract class that all MEAPsoftGUIPanels must extend. Contains the glue needed to let all of the MEAPsoft subsystems work together in MEAPsoftGUI.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected static java.lang.String audioPlayerName
           
 java.awt.Color color
           
protected static java.lang.String dataBaseName
           
protected static java.lang.String dataDirectory
           
static EDLFile edlFile
           
static FeatFile featFile
           
protected  javax.swing.JLabel helpButton
           
protected  java.lang.String helpURL
           
protected static java.lang.String inputEDLFileName
           
protected static java.lang.String inputFeaturesFileName
           
protected static java.lang.String inputSegmentsFileName
           
protected static java.lang.String inputSoundFileNameFull
           
protected static java.lang.String inputSoundFileNameShort
           
protected static java.lang.String meapsoftDirectory
           
protected static MEAPsoftGUI meapsoftGUI
           
protected static java.lang.String outputEDLFileName
           
protected static java.lang.String outputFeaturesFileName
           
protected static java.lang.String outputSegmentsFileName
           
protected static java.lang.String outputSoundFileNameFull
           
protected static java.lang.String outputSoundFileNameShort
           
static FeatFile segmentFile
           
protected static java.lang.String slash
           
protected  java.lang.String title
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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
MEAPsoftGUIPanel(MEAPsoftGUI msg)
          Create a new MEAPsoftGUIPanel
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
protected static void initEDLFile()
           
protected static void initFeatFile()
           
protected static void initSegmentFile()
          Convenience functions so that we don't have to reference meapsoftGUI from our subclasses.
 void mouseClicked(java.awt.event.MouseEvent arg0)
           
 void mouseEntered(java.awt.event.MouseEvent arg0)
           
 void mouseExited(java.awt.event.MouseEvent arg0)
           
 void mousePressed(java.awt.event.MouseEvent arg0)
           
 void mouseReleased(java.awt.event.MouseEvent arg0)
           
protected static void PlaySoundFile(java.lang.String soundFile)
           
protected static void RefreshGUI()
           
abstract  int run()
          Execute this MEAPsoft component.
protected static void SetInputFileName(java.lang.String[] names)
           
protected static void SetOutputFileName(java.lang.String[] names)
           
protected static void UpdateFileNames()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

color

public java.awt.Color color

meapsoftGUI

protected static MEAPsoftGUI meapsoftGUI

audioPlayerName

protected static java.lang.String audioPlayerName

segmentFile

public static FeatFile segmentFile

featFile

public static FeatFile featFile

edlFile

public static EDLFile edlFile

dataDirectory

protected static java.lang.String dataDirectory

meapsoftDirectory

protected static java.lang.String meapsoftDirectory

slash

protected static java.lang.String slash

dataBaseName

protected static java.lang.String dataBaseName

inputSoundFileNameFull

protected static java.lang.String inputSoundFileNameFull

inputSoundFileNameShort

protected static java.lang.String inputSoundFileNameShort

outputSegmentsFileName

protected static java.lang.String outputSegmentsFileName

inputSegmentsFileName

protected static java.lang.String inputSegmentsFileName

outputFeaturesFileName

protected static java.lang.String outputFeaturesFileName

inputFeaturesFileName

protected static java.lang.String inputFeaturesFileName

outputEDLFileName

protected static java.lang.String outputEDLFileName

inputEDLFileName

protected static java.lang.String inputEDLFileName

outputSoundFileNameFull

protected static java.lang.String outputSoundFileNameFull

outputSoundFileNameShort

protected static java.lang.String outputSoundFileNameShort

helpButton

protected javax.swing.JLabel helpButton

helpURL

protected java.lang.String helpURL

title

protected java.lang.String title
Constructor Detail

MEAPsoftGUIPanel

public MEAPsoftGUIPanel(MEAPsoftGUI msg)
Create a new MEAPsoftGUIPanel

Method Detail

run

public abstract int run()
Execute this MEAPsoft component. Returns a negative number if there was an error, 0 otherwise.


initSegmentFile

protected static void initSegmentFile()
Convenience functions so that we don't have to reference meapsoftGUI from our subclasses. Curse Java's verbosity!


initFeatFile

protected static void initFeatFile()

initEDLFile

protected static void initEDLFile()

UpdateFileNames

protected static void UpdateFileNames()

SetInputFileName

protected static void SetInputFileName(java.lang.String[] names)

SetOutputFileName

protected static void SetOutputFileName(java.lang.String[] names)

RefreshGUI

protected static void RefreshGUI()

PlaySoundFile

protected static void PlaySoundFile(java.lang.String soundFile)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent arg0)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent arg0)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent arg0)
Specified by:
mouseExited in interface java.awt.event.MouseListener