as.clynx.gui
Class TabbedSettingsPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by as.clynx.gui.TabbedSettingsPanel
All Implemented Interfaces:
SettingControl, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class TabbedSettingsPanel
extends javax.swing.JPanel
implements SettingControl

The class TabbedSettingsPanel.java is the visible component in wich the parameter can be set. It implements the interface SettingControl which contains all parameter getter. it is passed to the application in GUI mode.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static int ANALYIS
           
static int MUX
           
static int NORM
           
static int NORM_NAL
           
 
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
TabbedSettingsPanel(int style)
          Constructor.
 
Method Summary
 AbstractAnalyser getAnalyser(javax.sound.sampled.AudioFormat format)
          ANALYSER
 int getAnalyserType()
          returns the analyser type.
 int getAttackTimeInMilis()
          returns the attacktime in milisecond.
 float getCompression()
          returns the compressionrate for the compressor.
 int getDistanceChannels()
          returns the number of target channels for the distancemixer.
 float getDurationInSeconds()
          time a track is played before change in seconds.
 float getFadeTimeInSeconds()
          time it takes for the crossfade of two tracks in seconds.
 float getMasterFadeInInSeconds()
          returns the master fadeIn duration in seconds.
 int getMasterVolume()
          returns the master volume.
 AbstractMUX getMultiplexer(IAudioFileCollection list)
          MULTIPLEXER
 int getMuxType()
          returns the mux type.
 INormalizer getNormalizer(IAudioFileCollection collection)
          NORMALIZER
 int getReleaseTimeInMilis()
          returns the releasetime in miliseconds.
 int getTargetChannelNO()
          returns the number of channels for the sequence dynamic mux.
 boolean getThreadLoading()
          SETTING CONTROL
 int getThreadNO()
          returns the number of parallel analysed tracks when threadLoading is enabled.
 int getVolume()
          returns the volume.
 void startGUI()
          sets the GUI to startmode
 void stopGUI()
          sets the GUI to staopmode
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MUX

public static final int MUX
See Also:
Constant Field Values

NORM

public static final int NORM
See Also:
Constant Field Values

ANALYIS

public static final int ANALYIS
See Also:
Constant Field Values

NORM_NAL

public static final int NORM_NAL
See Also:
Constant Field Values
Constructor Detail

TabbedSettingsPanel

public TabbedSettingsPanel(int style)
Constructor. The passed constants define the visible tabs.

Parameters:
style -
Method Detail

startGUI

public void startGUI()
sets the GUI to startmode


stopGUI

public void stopGUI()
sets the GUI to staopmode


getThreadLoading

public boolean getThreadLoading()
SETTING CONTROL

Specified by:
getThreadLoading in interface SettingControl
Returns:
true when threadloading is enabled.

getThreadNO

public int getThreadNO()
Description copied from interface: SettingControl
returns the number of parallel analysed tracks when threadLoading is enabled.

Specified by:
getThreadNO in interface SettingControl
Returns:
the number of parallel analysed tracks when threadLoading is enabled.

getMasterFadeInInSeconds

public float getMasterFadeInInSeconds()
Description copied from interface: SettingControl
returns the master fadeIn duration in seconds.

Specified by:
getMasterFadeInInSeconds in interface SettingControl
Returns:
the master fadeIn duration in seconds.

getMultiplexer

public AbstractMUX getMultiplexer(IAudioFileCollection list)
MULTIPLEXER

Specified by:
getMultiplexer in interface SettingControl
Returns:
the defined mux.

getMuxType

public int getMuxType()
Description copied from interface: SettingControl
returns the mux type.

Specified by:
getMuxType in interface SettingControl
Returns:
the mux type.

getDurationInSeconds

public float getDurationInSeconds()
Description copied from interface: SettingControl
time a track is played before change in seconds.

Specified by:
getDurationInSeconds in interface SettingControl
Returns:
the time a track is played before change in seconds.

getFadeTimeInSeconds

public float getFadeTimeInSeconds()
Description copied from interface: SettingControl
time it takes for the crossfade of two tracks in seconds.

Specified by:
getFadeTimeInSeconds in interface SettingControl
Returns:
the time it takes for the crossfade of two tracks in seconds.

getVolume

public int getVolume()
Description copied from interface: SettingControl
returns the volume.

Specified by:
getVolume in interface SettingControl
Returns:
the volume.

getMasterVolume

public int getMasterVolume()
Description copied from interface: SettingControl
returns the master volume.

Specified by:
getMasterVolume in interface SettingControl
Returns:
the volume.

getTargetChannelNO

public int getTargetChannelNO()
Description copied from interface: SettingControl
returns the number of channels for the sequence dynamic mux.

Specified by:
getTargetChannelNO in interface SettingControl
Returns:
the number of channels for the sequence dynamic mux.

getDistanceChannels

public int getDistanceChannels()
Description copied from interface: SettingControl
returns the number of target channels for the distancemixer.

Specified by:
getDistanceChannels in interface SettingControl
Returns:
the number of target channels for the distancemixer.

getNormalizer

public INormalizer getNormalizer(IAudioFileCollection collection)
NORMALIZER

Specified by:
getNormalizer in interface SettingControl
Returns:
the defined Normalizer.

getAttackTimeInMilis

public int getAttackTimeInMilis()
Description copied from interface: SettingControl
returns the attacktime in milisecond.

Specified by:
getAttackTimeInMilis in interface SettingControl
Returns:
the attacktime in milisecond.

getReleaseTimeInMilis

public int getReleaseTimeInMilis()
Description copied from interface: SettingControl
returns the releasetime in miliseconds.

Specified by:
getReleaseTimeInMilis in interface SettingControl
Returns:
the releasetime in miliseconds.

getCompression

public float getCompression()
Description copied from interface: SettingControl
returns the compressionrate for the compressor.

Specified by:
getCompression in interface SettingControl
Returns:
the compressionrate for the compressor.

getAnalyser

public AbstractAnalyser getAnalyser(javax.sound.sampled.AudioFormat format)
ANALYSER

Specified by:
getAnalyser in interface SettingControl
Returns:
the defined analyser.

getAnalyserType

public int getAnalyserType()
Description copied from interface: SettingControl
returns the analyser type.

Specified by:
getAnalyserType in interface SettingControl
Returns:
the analyser type.