public class EnvelopeWidget extends SysexWidget
Compatibility Note: EnvelopeNode class was replaced by
EnvelopWidget.Node class.
EnvelopeWidget.Node,
SysexWidget,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
EnvelopeWidget.Node
A data type used by EnvelopeWidget which stores information about a
single node (point) in the Widget.
|
protected static class |
EnvelopeWidget.Param
Data structure for Paramaters.
|
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget.EnvelopeCanvas |
envelopeCanvas
EnvelopeCanvas instance
|
protected EnvelopeWidget.Node[] |
nodes
Array of Nodes provided by constructor
|
protected EnvelopeWidget.Param[] |
params
Array of Params (parameter/variable).
|
protected int |
xpadding
x axis insets (space at the right and left border)
|
protected int |
ypadding
y axis insets (space at the top and bottom border)
|
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 |
|---|
EnvelopeWidget(String label,
Patch patch,
EnvelopeWidget.Node[] options)
xpad and ypad are set to zero. |
EnvelopeWidget(String label,
Patch patch,
EnvelopeWidget.Node[] nodes,
int xpadding,
int ypadding)
Creates a new
SysexWidget instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createWidgets()
create Widgets.
|
protected void |
layoutWidgets()
layout Widgets.
|
void |
setEnabled(boolean e)
Enable/disable the widget.
|
void |
setFaderValue(int fader,
int value)
Set specified by
fader and send System Exclusive message to
a MIDI port. |
void |
setSliderNum(int num)
Set a fader slider number.
|
void |
setValue()
Set value by using
paramModel.get, and update the widget
state. |
_setLabel, _setSliderNum, getDriver, getInsets, getJLabel, getLabel, getNumFaders, getPatch, getSliderNum, getValue, getValueMax, getValueMin, sendSysex, sendSysex, setJLabel, setLabel, setMax, setMin, setNumFaders, 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 EnvelopeWidget.Node[] nodes
protected EnvelopeWidget.Param[] params
protected org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget.EnvelopeCanvas envelopeCanvas
protected int xpadding
protected int ypadding
public EnvelopeWidget(String label, Patch patch, EnvelopeWidget.Node[] nodes, int xpadding, int ypadding)
SysexWidget instance.label - a label text for the sysexWidget.patch - a Patch, which is edited.nodes - an array of Node.xpadding - space at the right and left border.ypadding - space at the top and bottom border.public EnvelopeWidget(String label, Patch patch, EnvelopeWidget.Node[] options)
xpad and ypad are set to zero.protected void createWidgets()
SysexWidgetcreateWidgets in class SysexWidgetprotected void layoutWidgets()
SysexWidgetlayoutWidgets in class SysexWidgetpublic void setSliderNum(int num)
SysexWidget
For a slider
For a button
The tool-tip text is also set.
bank number : 1, 2,..., 8
slider/button number : 1, 2,..., 16num is positive.num is negative.
setSliderNum in class SysexWidgetnum - ((bank number) - 1) * 16 + ((slider/button number) - 1)PatchEditorFramepublic void setFaderValue(int fader,
int value)
fader and send System Exclusive message to
a MIDI port.
Called by PatchEditorFrame.faderMoved(byte, byte). This method is used and must be extended by a SysexWidget with multiple prameters (i.e. numFaders != 1, only EnvelopeWidget now).
setFaderValue in class SysexWidgetfader - fader number.value - value to be set. [0-127]public void setValue()
SysexWidgetparamModel.get, and update the widget
state.setValue in class SysexWidgetpublic void setEnabled(boolean e)
SysexWidgetsetEnabled in class SysexWidgetCopyright © 2014. All Rights Reserved.