public class ScrollBarLookupWidget extends SysexWidget
ScrollBarWidget,
VertScrollBarWidget,
Serialized FormJPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected int |
base
Base value.
|
protected int |
labelWidth
width of label widget
|
protected String[] |
options
An array of label string for each value
|
protected JSlider |
slider
JSlider widget
|
protected JTextField |
text
JTextField to display value.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
ScrollBarLookupWidget(String label,
Patch patch,
int min,
int max,
int labelWidth,
IParamModel pmodel,
ISender sender,
String[] options)
Constructor for setting up the ScrollBarLookupWidget.
|
ScrollBarLookupWidget(String label,
Patch patch,
int min,
int max,
IParamModel pmodel,
ISender sender,
String[] options)
Constructor for setting up the VertScrollBarLookupWidget.
The width of the label will be determined by the label strings. |
ScrollBarLookupWidget(String label,
Patch patch,
IParamModel pmodel,
ISender sender,
String[] options)
Constructor for setting up the ScrollBarLookupWidget.
The width of the label will be determined by the label strings. The minimum value is set to 0 and the maximum value to the length of the options array. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(ChangeListener l)
Adds a
ChangeListener to the slider. |
void |
changeOptions(String[] o) |
protected int |
constrain(int min,
int val,
int max) |
protected void |
createWidgets()
create Widgets.
|
protected void |
eventListener(ChangeEvent e)
invoked when the slider is moved.
|
protected void |
eventListener(MouseWheelEvent e)
invoked when mouse wheel is moved.
|
protected void |
layoutWidgets()
layout Widgets.
|
void |
setEnabled(boolean e)
Enable/disable the widget.
|
void |
setValue(int v)
Set value, and update widget state.
|
_setLabel, _setSliderNum, getDriver, getInsets, getJLabel, getLabel, getNumFaders, getPatch, getSliderNum, getValue, getValueMax, getValueMin, sendSysex, sendSysex, setFaderValue, setJLabel, setLabel, setMax, setMin, setNumFaders, setSliderNum, setValuegetAccessibleContext, 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, 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, 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, transferFocusUpCycleprotected int base
protected String[] options
protected JTextField text
protected JSlider slider
protected int labelWidth
public ScrollBarLookupWidget(String label, Patch patch, int min, int max, int labelWidth, IParamModel pmodel, ISender sender, String[] options)
label - Label for the Widgetpatch - The patch, which is editedmin - minimum valuemax - maximum valuelabelWidth - width of the label. If the value is negative, the width will
be determined by the label strings.pmodel - a ParamModel instance.sender - sysexSender for transmitting the value at editing the
parameteroptions - array of label string for each value.public ScrollBarLookupWidget(String label, Patch patch, int min, int max, IParamModel pmodel, ISender sender, String[] options)
label - label for the Widgetpatch - the patch, which is editedmin - minimum valuemax - maximum valuepmodel - a ParamModel instance.sender - sysexSender for transmitting the value at editing the
parameteroptions - array of label strings for each value.public ScrollBarLookupWidget(String label, Patch patch, IParamModel pmodel, ISender sender, String[] options)
label - label for the Widgetpatch - the patch, which is editedpmodel - a ParamModel instance.sender - sysexSender for transmitting the value at editing the
parameteroptions - array of label strings for each value.protected void createWidgets()
SysexWidgetcreateWidgets in class SysexWidgetprotected int constrain(int min,
int val,
int max)
protected void eventListener(ChangeEvent e)
protected void eventListener(MouseWheelEvent e)
public void addEventListener(ChangeListener l)
ChangeListener to the slider.protected void layoutWidgets()
SysexWidgetlayoutWidgets in class SysexWidgetpublic void setValue(int v)
SysexWidgetsetValue in class SysexWidgetpublic void setEnabled(boolean e)
SysexWidgetsetEnabled in class SysexWidgetpublic void changeOptions(String[] o)
Copyright © 2014. All Rights Reserved.