Package eu.bandm.sighkn
Class SequencerPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
eu.bandm.sighkn.SequencerPanel
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
Swing Control for displaying and manipulating the position of one or more
ATTENTION: Currently only HORIZONTAL sliders are used to visualize time progress.
Usage:
Create instance; call modification methods; add/remove Sequencers; call
Selection of input data and output connections must be provided externally.
Extended from music.midi.SequencerPanel <= Extracted from bt midi.Player.
(Editable text field copied from sighkn/FloatSlider)
FIXME text-editieren der zeitposition -> bewirkt sprung
FIXME MuLiLabels
SequencerPanel.AbstractSequencer
, which shall play synchronuously.
Only the pure sequencer run and position control is supported.ATTENTION: Currently only HORIZONTAL sliders are used to visualize time progress.
Usage:
Create instance; call modification methods; add/remove Sequencers; call
reScaleDuration()
after reload of data with new durations. Selection of input data and output connections must be provided externally.
Extended from music.midi.SequencerPanel <= Extracted from bt midi.Player.
(Editable text field copied from sighkn/FloatSlider)
FIXME text-editieren der zeitposition -> bewirkt sprung
FIXME MuLiLabels
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
(package private) static class
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final char
static final String
protected boolean
protected final boolean
protected float
final Action
protected JLabel
protected boolean
protected SequencerPanel.AbstractSequencer
static final int
static final int
static final int
final Action
protected JButton
final Action
protected JButton
protected final DefaultBoundedRangeModel
The model works in milliseconds, encoded as "int".protected final Thread
protected int
protected JButton
protected boolean
protected List<SequencerPanel.AbstractSequencer>
protected int
protected JTextField
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 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
-
Constructor Summary
ConstructorDescriptionSequencerPanel
(@Opt String frameText, boolean fixedZeroStart) SequencerPanel
(@Opt String frameText, boolean fixedZeroStart, boolean hasRewindButton, boolean hasPlayButton, boolean hasPauseButton) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
void
jumpTo
(float msec) static void
static String
millisecondsToMinuteText
(float ms) protected int
millisecondsToModel
(float ms) protected float
modelToMilliseconds
(int mod) void
pause()
void
play()
void
void
set_dynamicDisable
(boolean b) set_labelEditable
(boolean s) void
set_sleepDuration
(int sleepDuration) Set the intervall with which the GUI display is refreshed.set_sliderMoveAllowance
(int i) protected void
protected void
protected void
protected boolean
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, setFont, setForeground, setInheritsPopupMenu, 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, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, firePropertyChange, 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, 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
defaultFrameText
- See Also:
-
sequencers
-
longestDataSequencer
-
highestMaxDuration
protected float highestMaxDuration -
positionThread_sleepDuration
protected int positionThread_sleepDuration -
labelEditable
protected boolean labelEditable -
running
protected boolean running -
sliderMoveAllowance
protected int sliderMoveAllowance -
label_totalDuration
-
textField_currentTime
-
dynamicDisable
protected boolean dynamicDisable -
playButton
-
pauseButton
-
rewindButton
-
positionModel
The model works in milliseconds, encoded as "int". -
fixedZeroStart
protected final boolean fixedZeroStart -
positionThread
-
MOVE_NEVER
public static final int MOVE_NEVER- See Also:
-
MOVE_PAUSED
public static final int MOVE_PAUSED- See Also:
-
MOVE_ALWAYS
public static final int MOVE_ALWAYS- See Also:
-
init
-
play
-
pause
-
CONST_CHAR_MINUTE_SEPARATOR
public static final char CONST_CHAR_MINUTE_SEPARATOR- See Also:
-
-
Constructor Details
-
SequencerPanel
-
SequencerPanel
-
-
Method Details
-
userMayJump
protected boolean userMayJump() -
updateTextField
protected void updateTextField() -
do_updateTextField
protected void do_updateTextField() -
updateTextfieldEditable
protected void updateTextfieldEditable() -
millisecondsToModel
protected int millisecondsToModel(float ms) -
modelToMilliseconds
protected float modelToMilliseconds(int mod) -
set_sleepDuration
public void set_sleepDuration(int sleepDuration) Set the intervall with which the GUI display is refreshed. Is passed directly to aObject#sleep(int)
call. -
set_dynamicDisable
public void set_dynamicDisable(boolean b) -
add_sequencer
-
remove_sequencer
-
set_labelEditable
-
set_sliderMoveAllowance
-
updateDynamicDisable
protected void updateDynamicDisable() -
play
public void play() -
pause
public void pause() -
jumpTo
public void jumpTo(float msec) -
isRunning
public boolean isRunning() -
getPositionModel
-
reScaleDuration
public void reScaleDuration() -
millisecondsToMinuteText
-
minuteTextToMilliseconds
-
main
- Throws:
Exception
-