holoedit.gui
Class SoundPoolGUI

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by holoedit.gui.FloatingWindow
                          extended by holoedit.gui.SoundPoolGUI
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class SoundPoolGUI
extends FloatingWindow
implements java.awt.dnd.DropTargetListener, java.awt.dnd.DragGestureListener

See Also:
Serialized Form

Nested Class Summary
(package private)  class SoundPoolGUI.DataFileImporter
           
(package private)  class SoundPoolGUI.DataTreeSelectionListener
           
(package private)  class SoundPoolGUI.SoundFileImporter
           
(package private)  class SoundPoolGUI.WaveformTreeSelectionListener
           
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  boolean acceptDrag
           
private  boolean choosingfolder
           
private  javax.swing.JMenuItem clearDtMI
           
private  javax.swing.JMenuItem clearSndMI
           
private  java.io.File dataFolder
           
private  DynamicTree dataTree
           
private  javax.swing.JMenu displayDtMI
           
 boolean done
           
 java.util.Vector<java.lang.String> doneAndFineData
           
private  HoloExternalData droppedExternalData
           
 int error
           
 java.lang.String errorFileName
           
private  java.io.File externalDataFolder
           
 boolean fine
           
private  java.awt.Font font
           
private  javax.swing.JMenuItem importDtMI
           
private  javax.swing.JMenuItem importSndMI
           
private  javax.swing.JTextPane info
           
 HoloWaveForm last
           
 HoloExternalData lastXtdt
           
private  Main mainRef
           
private  javax.swing.JPopupMenu popupData
          the popupMenu opened by a right-click on the dataTree
private  javax.swing.JPopupMenu popupSound
          the popupMenu opened by a right-click on the soundTree
private  javax.swing.JMenuItem removeDtMI
           
private  javax.swing.JMenuItem removeSndMI
           
private  java.util.Vector<HoloSDIFdata> sdifDataToDraw
           
private  java.util.Vector<HoloSDIFdata> sdifDataToDrawFromSndTree
           
private  javax.swing.tree.DefaultMutableTreeNode selectedDtNode
           
private  javax.swing.tree.DefaultMutableTreeNode selectedSndNode
           
private  java.io.File soundFolder
           
private  DynamicTree soundTree
           
private  javax.swing.JSplitPane split
           
private  javax.swing.JSplitPane split2
           
private  javax.swing.JSplitPane split3
           
private static java.lang.Boolean supportsDnD
           
private  java.util.Vector<java.io.File> unfound
           
private  javax.swing.JMenuItem updateDtMI
           
private  javax.swing.JMenuItem updateSndMI
           
private  WaveFormRenderer waveView
           
 
Fields inherited from class holoedit.gui.FloatingWindow
fo, oposX, oposY, osizH, osizW, posX, posY, sizH, sizW, visible
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SoundPoolGUI(Main owner)
           
 
Method Summary
 void clear()
           
 void clearDoneAndFineData()
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
           
 void dragExit(java.awt.dnd.DropTargetEvent dte)
           
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
           
 void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
           
 void drop(java.awt.dnd.DropTargetDropEvent dtde)
           
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
           
 void filesDropped(java.io.File[] files)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 int getSplitDivPos()
           
 void importData(java.io.File f, java.lang.String importOptions, boolean verboseError)
           
 void importSound(java.io.File f, boolean verboseError)
           
private  boolean isDragOk(java.awt.dnd.DropTargetDragEvent evt)
          Determine if the dragged data is a file list.
private  void makeDropTarget(java.awt.Component c)
           
 void repaint()
           
 void setSplitDivPos(int i)
           
static boolean supportsDnD()
           
 java.lang.String toString()
           
 void updateDataTree()
           
 void updateSoundTree(javax.swing.tree.DefaultMutableTreeNode toSelec)
           
private  void updateWaveView()
           
 
Methods inherited from class holoedit.gui.FloatingWindow
add, add, close, componentHidden, componentMoved, componentShown, focusLost, open, remove, resetPositionAndSize, setBoxLayout, setLayout, setLayout, setLayout, setLayout, setLocation, setResizable, setSize, setStarred, setVisi, toStatus, unsetLayout, updateMenuBar, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, 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, isOpaque, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setVisible, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

supportsDnD

private static java.lang.Boolean supportsDnD

mainRef

private Main mainRef

soundTree

private DynamicTree soundTree

dataTree

private DynamicTree dataTree

selectedSndNode

private javax.swing.tree.DefaultMutableTreeNode selectedSndNode

selectedDtNode

private javax.swing.tree.DefaultMutableTreeNode selectedDtNode

info

private javax.swing.JTextPane info

popupSound

private javax.swing.JPopupMenu popupSound
the popupMenu opened by a right-click on the soundTree


popupData

private javax.swing.JPopupMenu popupData
the popupMenu opened by a right-click on the dataTree


waveView

private WaveFormRenderer waveView

split

private javax.swing.JSplitPane split

split2

private javax.swing.JSplitPane split2

split3

private javax.swing.JSplitPane split3

font

private java.awt.Font font

importSndMI

private javax.swing.JMenuItem importSndMI

removeSndMI

private javax.swing.JMenuItem removeSndMI

updateSndMI

private javax.swing.JMenuItem updateSndMI

clearSndMI

private javax.swing.JMenuItem clearSndMI

importDtMI

private javax.swing.JMenuItem importDtMI

removeDtMI

private javax.swing.JMenuItem removeDtMI

displayDtMI

private javax.swing.JMenu displayDtMI

updateDtMI

private javax.swing.JMenuItem updateDtMI

clearDtMI

private javax.swing.JMenuItem clearDtMI

fine

public boolean fine

done

public boolean done

error

public int error

errorFileName

public java.lang.String errorFileName

last

public HoloWaveForm last

lastXtdt

public HoloExternalData lastXtdt

unfound

private java.util.Vector<java.io.File> unfound

soundFolder

private java.io.File soundFolder

externalDataFolder

private java.io.File externalDataFolder

dataFolder

private java.io.File dataFolder

choosingfolder

private boolean choosingfolder

acceptDrag

private boolean acceptDrag

droppedExternalData

private HoloExternalData droppedExternalData

sdifDataToDraw

private java.util.Vector<HoloSDIFdata> sdifDataToDraw

sdifDataToDrawFromSndTree

private java.util.Vector<HoloSDIFdata> sdifDataToDrawFromSndTree

doneAndFineData

public java.util.Vector<java.lang.String> doneAndFineData
Constructor Detail

SoundPoolGUI

public SoundPoolGUI(Main owner)
Method Detail

updateSoundTree

public void updateSoundTree(javax.swing.tree.DefaultMutableTreeNode toSelec)
Parameters:
toSelec - Si un noeud particulier doit etre sˇlectionnˇ.

updateDataTree

public void updateDataTree()

clear

public void clear()

repaint

public void repaint()
Overrides:
repaint in class java.awt.Component

makeDropTarget

private void makeDropTarget(java.awt.Component c)

importSound

public void importSound(java.io.File f,
                        boolean verboseError)

importData

public void importData(java.io.File f,
                       java.lang.String importOptions,
                       boolean verboseError)

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener

updateWaveView

private void updateWaveView()

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent dte)
Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

drop

public void drop(java.awt.dnd.DropTargetDropEvent dtde)
Specified by:
drop in interface java.awt.dnd.DropTargetListener

isDragOk

private boolean isDragOk(java.awt.dnd.DropTargetDragEvent evt)
Determine if the dragged data is a file list.


filesDropped

public void filesDropped(java.io.File[] files)

clearDoneAndFineData

public void clearDoneAndFineData()

getSplitDivPos

public int getSplitDivPos()

setSplitDivPos

public void setSplitDivPos(int i)

supportsDnD

public static boolean supportsDnD()

toString

public java.lang.String toString()
Overrides:
toString in class FloatingWindow

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener
Overrides:
componentResized in class FloatingWindow

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener
Overrides:
focusGained in class FloatingWindow