Package ipsk.audio.arr.clip.ui
Class AudioTimeScaleUI
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- ipsk.awt.JScale<java.lang.Long>
-
- ipsk.swing.JAutoScale
-
- ipsk.audio.arr.clip.ui.AudioTimeScaleUI
-
- All Implemented Interfaces:
AudioClipListener,AudioClipUI,TickProvider<java.lang.Long>,ActionProvider,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.swing.SwingConstants
public class AudioTimeScaleUI extends JAutoScale implements AudioClipUI
The default time scale for an audio clip UI container.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
-
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class ipsk.swing.JAutoScale
JAutoScale.Size
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class ipsk.awt.JScale
JScale.Orientation
-
-
Field Summary
-
Fields inherited from class java.awt.Component
accessibleContext, 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
-
Fields inherited from class ipsk.swing.JAutoScale
HORIZONTAL, VERTICAL
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class ipsk.awt.JScale
name, orientation, unit
-
-
Constructor Summary
Constructors Constructor Description AudioTimeScaleUI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActionListener(java.awt.event.ActionListener containerUI)Add an actionlistener to the plugin.java.awt.ComponentasComponent()voidaudioClipChanged(AudioClipChangedEvent event)voidclose()ActionTreeRootgetActionTreeRoot()javax.swing.JComponentgetControlJComponent()javax.swing.JMenu[]getJMenus()LocalizableMessagegetLocalizableName()Get localized name.java.lang.StringgetName()Get name of plugin.javax.swing.JComponent[]getYScales()booleanhasControlDialog()booleanisPreferredFixedHeight()voidpaintComponent(java.awt.Graphics g)voidremoveActionListener(java.awt.event.ActionListener containerUI)Remove an action listener.voidsetAudioSample(AudioClip audiosample)Set the audio sample.voidsetMediaLengthUnit(MediaLengthUnit mediaLengthUnit)Set media length units.voidsetTimeFormat(java.text.Format timeFormat)Set the time format to use.voidsetTimeScaleTickProvider(TickProvider timeScaleTickProvider)Set the provider for time scale ticks.voidshowJControlDialog(java.awt.Component parentComponent)Show a dialog component for plugin controls.-
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class ipsk.swing.JAutoScale
calcMaxLabelSize, doLayout, getBase, getHorizontalPaddingFactor, getLabelFormat, getMinimumSize, getPreferredSize, getScaleBegin, getScaleEnd, getScaleTicks, getVerticalPaddingFactor, main, setBase, setFont, setHorizontalPaddingFactor, setLabelFormat, setOrientation, setScaleBegin, setScaleEnd, setVerticalPaddingFactor
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
-
Methods inherited from class ipsk.awt.JScale
getOrientation, getUnit, setName, setUnit
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AudioClipUIGet name of plugin.- Specified by:
getNamein interfaceAudioClipUI- Overrides:
getNamein classJScale<java.lang.Long>- Returns:
- name
-
getLocalizableName
public LocalizableMessage getLocalizableName()
Description copied from interface:AudioClipUIGet localized name.- Specified by:
getLocalizableNamein interfaceAudioClipUI- Returns:
- localized name
-
setTimeFormat
public void setTimeFormat(java.text.Format timeFormat)
Description copied from interface:AudioClipUISet the time format to use. For example framecount or media timne format ("00:00:00.000")- Specified by:
setTimeFormatin interfaceAudioClipUI
-
paintComponent
public void paintComponent(java.awt.Graphics g)
- Overrides:
paintComponentin classJAutoScale
-
setAudioSample
public void setAudioSample(AudioClip audiosample)
Description copied from interface:AudioClipUISet the audio sample.- Specified by:
setAudioSamplein interfaceAudioClipUI- Parameters:
audiosample- the audiosample or null to clear
-
audioClipChanged
public void audioClipChanged(AudioClipChangedEvent event)
- Specified by:
audioClipChangedin interfaceAudioClipListener
-
addActionListener
public void addActionListener(java.awt.event.ActionListener containerUI)
Description copied from interface:AudioClipUIAdd an actionlistener to the plugin.- Specified by:
addActionListenerin interfaceAudioClipUI
-
removeActionListener
public void removeActionListener(java.awt.event.ActionListener containerUI)
Description copied from interface:AudioClipUIRemove an action listener.- Specified by:
removeActionListenerin interfaceAudioClipUI
-
setTimeScaleTickProvider
public void setTimeScaleTickProvider(TickProvider timeScaleTickProvider)
Description copied from interface:AudioClipUISet the provider for time scale ticks. If there is a time scale in the audio sample GUI, it can provide the time ticks for the other plugins to display vertical time scale lines.- Specified by:
setTimeScaleTickProviderin interfaceAudioClipUI
-
getControlJComponent
public javax.swing.JComponent getControlJComponent()
-
getJMenus
public javax.swing.JMenu[] getJMenus()
-
close
public void close()
- Specified by:
closein interfaceAudioClipUI
-
getYScales
public javax.swing.JComponent[] getYScales()
- Specified by:
getYScalesin interfaceAudioClipUI
-
setMediaLengthUnit
public void setMediaLengthUnit(MediaLengthUnit mediaLengthUnit)
Description copied from interface:AudioClipUISet media length units. (time or frames)- Specified by:
setMediaLengthUnitin interfaceAudioClipUI
-
getActionTreeRoot
public ActionTreeRoot getActionTreeRoot()
- Specified by:
getActionTreeRootin interfaceActionProvider
-
showJControlDialog
public void showJControlDialog(java.awt.Component parentComponent)
Description copied from interface:AudioClipUIShow a dialog component for plugin controls.- Specified by:
showJControlDialogin interfaceAudioClipUI
-
hasControlDialog
public boolean hasControlDialog()
- Specified by:
hasControlDialogin interfaceAudioClipUI
-
isPreferredFixedHeight
public boolean isPreferredFixedHeight()
- Specified by:
isPreferredFixedHeightin interfaceAudioClipUI
-
asComponent
public java.awt.Component asComponent()
- Specified by:
asComponentin interfaceAudioClipUI
-
-