public class SequencerPanel
extends javax.swing.JPanel
SequencerPanel.AbstractSequencer, which shall play synchronuously.
Only the pure sequencer run and position control is supported.reScaleDuration() after reload of data with new durations. | Modifier and Type | Class and Description |
|---|---|
static interface |
SequencerPanel.AbstractSequencer |
static class |
SequencerPanel.MidiWrapper |
(package private) static class |
SequencerPanel.MyAction |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static char |
CONST_CHAR_MINUTE_SEPARATOR |
static java.lang.String |
defaultFrameText |
protected boolean |
dynamicDisable |
protected boolean |
fixedZeroStart |
protected float |
highestMaxDuration |
javax.swing.Action |
init |
protected javax.swing.JLabel |
label_totalDuration |
protected boolean |
labelEditable |
protected SequencerPanel.AbstractSequencer |
longestDataSequencer |
static int |
MOVE_ALWAYS |
static int |
MOVE_NEVER |
static int |
MOVE_PAUSED |
javax.swing.Action |
pause |
protected javax.swing.JButton |
pauseButton |
javax.swing.Action |
play |
protected javax.swing.JButton |
playButton |
protected javax.swing.DefaultBoundedRangeModel |
positionModel
The model works in milliseconds, encoded as "int".
|
protected java.lang.Thread |
positionThread |
protected int |
positionThread_sleepDuration |
protected javax.swing.JButton |
rewindButton |
protected boolean |
running |
protected java.util.List<SequencerPanel.AbstractSequencer> |
sequencers |
protected int |
sliderMoveAllowance |
protected javax.swing.JTextField |
textField_currentTime |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
SequencerPanel(@Opt java.lang.String frameText,
boolean fixedZeroStart) |
SequencerPanel(@Opt java.lang.String frameText,
boolean fixedZeroStart,
boolean hasRewindButton,
boolean hasPlayButton,
boolean hasPauseButton) |
| Modifier and Type | Method and Description |
|---|---|
SequencerPanel |
add_sequencer(SequencerPanel.AbstractSequencer s) |
protected void |
do_updateTextField() |
javax.swing.BoundedRangeModel |
getPositionModel() |
void |
jumpTo(float msec) |
static void |
main(java.lang.String[] args) |
static java.lang.String |
millisecondsToMinuteText(float ms) |
protected int |
millisecondsToModel(float ms) |
static @Opt java.lang.Float |
minuteTextToMilliseconds(java.lang.String t) |
protected float |
modelToMilliseconds(int mod) |
void |
pause() |
void |
play() |
SequencerPanel |
remove_sequencer(SequencerPanel.AbstractSequencer s) |
void |
reScaleDuration() |
void |
set_dynamicDisable(boolean b) |
SequencerPanel |
set_labelEditable(boolean s) |
void |
set_sleepDuration(int sleepDuration)
Set the intervall with which the GUI display is refreshed.
|
SequencerPanel |
set_sliderMoveAllowance(int i) |
protected void |
updateDynamicDisable() |
protected void |
updateTextField() |
protected void |
updateTextfieldEditable() |
protected boolean |
userMayJump() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, updateadd, 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, validateTreeaction, 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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final java.lang.String defaultFrameText
protected java.util.List<SequencerPanel.AbstractSequencer> sequencers
protected SequencerPanel.AbstractSequencer longestDataSequencer
protected float highestMaxDuration
protected int positionThread_sleepDuration
protected boolean labelEditable
protected boolean running
protected int sliderMoveAllowance
protected javax.swing.JLabel label_totalDuration
protected javax.swing.JTextField textField_currentTime
protected boolean dynamicDisable
protected javax.swing.JButton playButton
protected javax.swing.JButton pauseButton
protected javax.swing.JButton rewindButton
protected final javax.swing.DefaultBoundedRangeModel positionModel
protected final boolean fixedZeroStart
protected final java.lang.Thread positionThread
public static final int MOVE_NEVER
public static final int MOVE_PAUSED
public static final int MOVE_ALWAYS
public final javax.swing.Action init
public final javax.swing.Action play
public final javax.swing.Action pause
public static final char CONST_CHAR_MINUTE_SEPARATOR
protected boolean userMayJump()
protected void updateTextField()
protected void do_updateTextField()
protected void updateTextfieldEditable()
protected int millisecondsToModel(float ms)
protected float modelToMilliseconds(int mod)
public void set_sleepDuration(int sleepDuration)
Object#sleep(int) call.public void set_dynamicDisable(boolean b)
public SequencerPanel add_sequencer(SequencerPanel.AbstractSequencer s)
public SequencerPanel remove_sequencer(SequencerPanel.AbstractSequencer s)
public SequencerPanel set_labelEditable(boolean s)
public SequencerPanel set_sliderMoveAllowance(int i)
protected void updateDynamicDisable()
public void play()
public void pause()
public void jumpTo(float msec)
public javax.swing.BoundedRangeModel getPositionModel()
public void reScaleDuration()
public static java.lang.String millisecondsToMinuteText(float ms)
@Opt public static @Opt java.lang.Float minuteTextToMilliseconds(java.lang.String t)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception